/**
 * Yelp AI Business Display - Frontend Styles
 * All classes prefixed with "blk-yelp-" to prevent theme conflicts
 */

/* ==========================================================================
   CSS Reset & Isolation
   ========================================================================== */

.blk-yelp-display,
.blk-yelp-display * {
	box-sizing: border-box !important;
	margin: 0;
	padding: 0;
}

.blk-yelp-display {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
	color: #333 !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.blk-yelp-hidden {
	display: none !important;
}

.blk-yelp-filtered {
	display: none !important;
}

/* ==========================================================================
   Table Layout - Common Styles
   ========================================================================== */

.blk-yelp-table .blk-yelp-header {
	margin-bottom: 30px !important;
}

.blk-yelp-table .blk-yelp-title {
	font-size: 32px !important;
	font-weight: 600 !important;
	margin-bottom: 10px !important;
	line-height: 1.2 !important;
}

.blk-yelp-table .blk-yelp-description {
	font-size: 16px !important;
	margin-bottom: 20px !important;
	opacity: 0.8 !important;
}

.blk-yelp-category-filters {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	margin-top: 20px !important;
}

.blk-yelp-filter-btn {
	padding: 10px 20px !important;
	border: none !important;
	border-radius: 25px !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	background: transparent !important;
	outline: none !important;
}

.blk-yelp-table-container {
	overflow-x: auto !important;
	margin: 20px 0 !important;
	border-radius: 8px !important;
}

.blk-yelp-businesses-table {
	width: 100% !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
}

.blk-yelp-businesses-table thead th {
	padding: 15px !important;
	text-align: left !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	border-bottom: 2px solid !important;
}

.blk-yelp-businesses-table tbody td {
	padding: 20px 15px !important;
	border-bottom: 1px solid !important;
	vertical-align: middle !important;
}

.blk-yelp-business-name-cell {
	display: flex !important;
	align-items: center !important;
	gap: 15px !important;
}

.blk-yelp-business-thumb {
	width: 60px !important;
	height: 60px !important;
	border-radius: 8px !important;
	object-fit: cover !important;
	flex-shrink: 0 !important;
}

.blk-yelp-business-info {
	flex: 1 !important;
}

.blk-yelp-business-name {
	font-size: 16px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 5px !important;
	transition: opacity 0.2s !important;
}

.blk-yelp-business-name:hover {
	opacity: 0.7 !important;
}

.blk-yelp-external-icon {
	font-size: 12px !important;
	opacity: 0.5 !important;
}

.blk-yelp-business-address {
	font-size: 13px !important;
	margin-top: 4px !important;
	opacity: 0.7 !important;
}

.blk-yelp-category-badge {
	display: inline-block !important;
	padding: 6px 12px !important;
	border-radius: 4px !important;
	font-size: 13px !important;
	font-weight: 500 !important;
}

.blk-yelp-rating {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
}

.blk-yelp-rating-stars {
	display: inline-flex !important;
	gap: 2px !important;
}

.blk-yelp-star {
	font-size: 18px !important;
	line-height: 1 !important;
}

.blk-yelp-star-full {
	color: #d32323 !important;
}

.blk-yelp-star-half {
	color: #d32323 !important;
	opacity: 0.5 !important;
}

.blk-yelp-star-empty {
	color: #ccc !important;
}

.blk-yelp-rating-value {
	font-size: 14px !important;
	font-weight: 600 !important;
}

.blk-yelp-logo-inline {
	height: 16px !important;
	width: auto !important;
	vertical-align: middle !important;
	margin-left: 5px !important;
}

.blk-yelp-load-more-container {
	text-align: center !important;
	margin-top: 30px !important;
}

.blk-yelp-load-more-btn {
	padding: 12px 40px !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	outline: none !important;
}

.blk-yelp-no-results {
	text-align: center !important;
	padding: 40px 20px !important;
	font-size: 16px !important;
	opacity: 0.7 !important;
}

/* ==========================================================================
   Table Layout - Light Theme
   ========================================================================== */

.blk-yelp-table.blk-yelp-theme-light {
	background: #fff !important;
	color: #333 !important;
}

.blk-yelp-table.blk-yelp-theme-light .blk-yelp-title {
	color: #333 !important;
}

.blk-yelp-table.blk-yelp-theme-light .blk-yelp-description {
	color: #666 !important;
}

.blk-yelp-table.blk-yelp-theme-light .blk-yelp-filter-btn {
	background: #f0f0f0 !important;
	color: #333 !important;
}

.blk-yelp-table.blk-yelp-theme-light .blk-yelp-filter-btn.blk-yelp-active,
.blk-yelp-table.blk-yelp-theme-light .blk-yelp-filter-btn:hover {
	background: #666 !important;
	color: #fff !important;
}

.blk-yelp-table.blk-yelp-theme-light .blk-yelp-businesses-table thead th {
	color: #666 !important;
	border-bottom-color: #e0e0e0 !important;
}

.blk-yelp-table.blk-yelp-theme-light .blk-yelp-businesses-table tbody td {
	color: #333 !important;
	border-bottom-color: #f0f0f0 !important;
}

.blk-yelp-table.blk-yelp-theme-light .blk-yelp-business-name {
	color: #1a73e8 !important;
}

.blk-yelp-table.blk-yelp-theme-light .blk-yelp-category-badge {
	background: #333 !important;
	color: #fff !important;
}

.blk-yelp-table.blk-yelp-theme-light .blk-yelp-load-more-btn {
	background: #000 !important;
	color: #fff !important;
}

.blk-yelp-table.blk-yelp-theme-light .blk-yelp-load-more-btn:hover {
	background: #333 !important;
}

/* ==========================================================================
   Table Layout - Dark Theme
   ========================================================================== */

.blk-yelp-table.blk-yelp-theme-dark {
	color: #fff !important;
}

.blk-yelp-table.blk-yelp-theme-dark .blk-yelp-title {
	color: #fff !important;
}

.blk-yelp-table.blk-yelp-theme-dark .blk-yelp-description {
	color: #ccc !important;
}

.blk-yelp-table.blk-yelp-theme-dark .blk-yelp-filter-btn {
	background: #333 !important;
	color: #fff !important;
}

.blk-yelp-table.blk-yelp-theme-dark .blk-yelp-filter-btn.blk-yelp-active,
.blk-yelp-table.blk-yelp-theme-dark .blk-yelp-filter-btn:hover {
	background: #666 !important;
	color: #fff !important;
}

.blk-yelp-table.blk-yelp-theme-dark .blk-yelp-businesses-table thead th {
	color: #999 !important;
	border-bottom-color: #333 !important;
}

.blk-yelp-table.blk-yelp-theme-dark .blk-yelp-businesses-table tbody td {
	color: #fff !important;
	border-bottom-color: #2a2a2a !important;
}

.blk-yelp-table.blk-yelp-theme-dark .blk-yelp-business-name {
	color: #8ab4f8 !important;
}

.blk-yelp-table.blk-yelp-theme-dark .blk-yelp-category-badge {
	background: #444 !important;
	color: #fff !important;
}

.blk-yelp-table.blk-yelp-theme-dark .blk-yelp-load-more-btn {
	background: #fff !important;
	color: #000 !important;
}

.blk-yelp-table.blk-yelp-theme-dark .blk-yelp-load-more-btn:hover {
	background: #ccc !important;
}

/* ==========================================================================
   Carousel Layout - Common Styles
   ========================================================================== */

.blk-yelp-carousel .blk-yelp-carousel-header {
	text-align: center !important;
	margin-bottom: 40px !important;
}

.blk-yelp-carousel .blk-yelp-carousel-title {
	font-size: 48px !important;
	font-weight: 300 !important;
	letter-spacing: 2px !important;
	margin-bottom: 15px !important;
	text-transform: uppercase !important;
}

.blk-yelp-carousel .blk-yelp-carousel-description {
	font-size: 16px !important;
	margin-bottom: 30px !important;
	opacity: 0.9 !important;
}

.blk-yelp-category-icons {
	display: flex !important;
	justify-content: center !important;
	flex-wrap: wrap !important;
	gap: 15px !important;
	margin-top: 30px !important;
}

.blk-yelp-category-icon {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 8px !important;
	padding: 15px 20px !important;
	border: none !important;
	background: transparent !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	border-radius: 8px !important;
	outline: none !important;
}

.blk-yelp-category-icon .blk-yelp-icon {
	font-size: 32px !important;
	line-height: 1 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.blk-yelp-category-icon .blk-yelp-icon svg {
	width: 32px !important;
	height: 32px !important;
	display: block !important;
}

.blk-yelp-category-icon .blk-yelp-category-label {
	font-size: 11px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.blk-yelp-carousel-container {
	position: relative !important;
	padding: 0 60px !important;
}

.blk-yelp-carousel-track-wrapper {
	overflow: hidden !important;
	border-radius: 8px !important;
}

.blk-yelp-carousel-track {
	display: flex !important;
	gap: 20px !important;
	transition: transform 0.5s ease !important;
}

.blk-yelp-carousel-card {
	flex: 0 0 auto !important;
	width: 320px !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	position: relative !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
	transition: transform 0.3s ease !important;
}

.blk-yelp-carousel-card:hover {
	transform: translateY(-5px) !important;
}

.blk-yelp-share-btn {
	position: absolute !important;
	top: 15px !important;
	right: 15px !important;
	padding: 8px 16px !important;
	background: rgba(0, 0, 0, 0.7) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 4px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	letter-spacing: 1px !important;
	cursor: pointer !important;
	z-index: 10 !important;
	transition: background 0.3s !important;
	outline: none !important;
}

.blk-yelp-share-btn:hover {
	background: rgba(0, 0, 0, 0.9) !important;
}

.blk-yelp-card-image {
	width: 100% !important;
	height: 240px !important;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
}

.blk-yelp-no-image {
	width: 100% !important;
	height: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	background: #f0f0f0 !important;
	color: #999 !important;
	font-size: 14px !important;
}

.blk-yelp-card-content {
	padding: 20px !important;
}

.blk-yelp-card-title {
	font-size: 18px !important;
	font-weight: 600 !important;
	margin-bottom: 12px !important;
	line-height: 1.3 !important;
}

.blk-yelp-card-title a {
	text-decoration: none !important;
	transition: opacity 0.2s !important;
}

.blk-yelp-card-title a:hover {
	opacity: 0.7 !important;
}

.blk-yelp-card-rating {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
	margin-bottom: 8px !important;
}

.blk-yelp-card-reviews {
	font-size: 14px !important;
	margin-bottom: 15px !important;
	opacity: 0.8 !important;
}

.blk-yelp-card-footer {
	display: flex !important;
	justify-content: flex-end !important;
	padding-top: 10px !important;
	border-top: 1px solid !important;
}

.blk-yelp-card-footer .blk-yelp-logo {
	height: 20px !important;
	width: auto !important;
}

.blk-yelp-carousel-nav {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 50px !important;
	height: 50px !important;
	border: none !important;
	border-radius: 50% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	z-index: 10 !important;
	outline: none !important;
}

.blk-yelp-nav-prev {
	left: 0 !important;
}

.blk-yelp-nav-next {
	right: 0 !important;
}

.blk-yelp-carousel-nav:disabled {
	opacity: 0.3 !important;
	cursor: not-allowed !important;
}

/* ==========================================================================
   Carousel Layout - Light Theme
   ========================================================================== */

.blk-yelp-carousel.blk-yelp-theme-light {
	background: #fff !important;
	color: #333 !important;
}

.blk-yelp-carousel.blk-yelp-theme-light .blk-yelp-carousel-title {
	color: #333 !important;
}

.blk-yelp-carousel.blk-yelp-theme-light .blk-yelp-carousel-description {
	color: #666 !important;
}

.blk-yelp-carousel.blk-yelp-theme-light .blk-yelp-category-icon {
	color: #333 !important;
}

.blk-yelp-carousel.blk-yelp-theme-light .blk-yelp-category-icon.blk-yelp-active,
.blk-yelp-carousel.blk-yelp-theme-light .blk-yelp-category-icon:hover {
	background: #f0f0f0 !important;
}

.blk-yelp-carousel.blk-yelp-theme-light .blk-yelp-carousel-card {
	background: #fff !important;
}

.blk-yelp-carousel.blk-yelp-theme-light .blk-yelp-card-title a {
	color: #333 !important;
}

.blk-yelp-carousel.blk-yelp-theme-light .blk-yelp-card-footer {
	border-top-color: #f0f0f0 !important;
}

.blk-yelp-carousel.blk-yelp-theme-light .blk-yelp-carousel-nav {
	background: rgba(255, 255, 255, 0.9) !important;
	color: #333 !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.blk-yelp-carousel.blk-yelp-theme-light .blk-yelp-carousel-nav:hover:not(:disabled) {
	background: #fff !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   Carousel Layout - Dark Theme
   ========================================================================== */

.blk-yelp-carousel.blk-yelp-theme-dark {
	color: #fff !important;
}

.blk-yelp-carousel.blk-yelp-theme-dark .blk-yelp-carousel-title {
	color: #fff !important;
}

.blk-yelp-carousel.blk-yelp-theme-dark .blk-yelp-carousel-description {
	color: #ccc !important;
}

.blk-yelp-carousel.blk-yelp-theme-dark .blk-yelp-category-icon {
	color: #fff !important;
}

.blk-yelp-carousel.blk-yelp-theme-dark .blk-yelp-category-icon.blk-yelp-active,
.blk-yelp-carousel.blk-yelp-theme-dark .blk-yelp-category-icon:hover {
	background: #333 !important;
}

.blk-yelp-carousel.blk-yelp-theme-dark .blk-yelp-carousel-card {
	background: #2a2a2a !important;
}

.blk-yelp-carousel.blk-yelp-theme-dark .blk-yelp-card-title a {
	color: #fff !important;
}

.blk-yelp-carousel.blk-yelp-theme-dark .blk-yelp-card-footer {
	border-top-color: #333 !important;
}

.blk-yelp-carousel.blk-yelp-theme-dark .blk-yelp-carousel-nav {
	background: rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
}

.blk-yelp-carousel.blk-yelp-theme-dark .blk-yelp-carousel-nav:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
	.blk-yelp-display {
		padding: 0 !important;
	}
	
	.blk-yelp-table .blk-yelp-title,
	.blk-yelp-carousel .blk-yelp-carousel-title {
		font-size: 24px !important;
	}
	
	.blk-yelp-carousel-container {
		padding: 0 40px !important;
	}
	
	.blk-yelp-carousel-card {
		width: 280px !important;
	}
	
	.blk-yelp-carousel-nav {
		width: 40px !important;
		height: 40px !important;
	}
	
	.blk-yelp-category-filters,
	.blk-yelp-category-icons {
		justify-content: center !important;
	}
}
