/* ===================================
   RESTAURANT CARD COMPONENT
   =================================== */

.restaurant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.restaurant-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.restaurant-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-gray);
}

.card-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
}

.card-badge.premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
}

.card-badge.featured {
    background: var(--primary-color);
}

.card-content {
    padding: var(--spacing-md);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    margin-bottom: var(--spacing-sm);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.card-cuisine {
    font-size: 0.875rem;
    color: var(--text-light);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.stars {
    color: var(--secondary-color);
    font-size: 1rem;
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.rating-count {
    font-size: 0.75rem;
    color: var(--text-light);
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.feature-icon {
    font-size: 0.875rem;
}

.card-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--bg-gray);
}

.price-range {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.card-cta {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition);
}

.card-cta:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* ===================================
   GUIDE CARD COMPONENT
   =================================== */

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.guide-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.guide-image {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.guide-icon {
    font-size: 4rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.guide-content {
    padding: var(--spacing-md);
}

.guide-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.125rem;
}

.guide-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.guide-count {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===================================
   REVIEW CARD COMPONENT
   =================================== */

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.review-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    font-weight: 700;
}

.review-info h4 {
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.75rem;
    color: var(--text-light);
}

.review-restaurant {
    color: var(--primary-color);
    font-weight: 600;
}

.review-rating {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
}

.review-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.review-highlight {
    background: var(--bg-light);
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-color);
}

.review-highlight-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.review-highlight p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ===================================
   FEATURE ICONS
   =================================== */

.feature-icons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin: var(--spacing-md) 0;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    min-width: 80px;
    text-align: center;
}

.feature-item-icon {
    font-size: 2rem;
}

.feature-item-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===================================
   STATS BAR
   =================================== */

.stats-bar {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-content span {
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===================================
   LOADING & EMPTY STATES
   =================================== */

.loading {
    text-align: center;
    padding: var(--spacing-xxl);
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-gray);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--spacing-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: var(--spacing-xxl);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.3;
}

.empty-state h3 {
    margin-bottom: var(--spacing-sm);
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* ===================================
   BADGES & LABELS
   =================================== */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-premium {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.badge-featured {
    background: var(--primary-color);
    color: white;
}

.badge-new {
    background: var(--accent-color);
    color: white;
}

.badge-verified {
    background: #10B981;
    color: white;
}

/* ===================================
   IMAGE GALLERY
   =================================== */

.image-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xs);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
}

.gallery-main {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.gallery-item {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-gray);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-main {
    height: 100%;
}

.gallery-item:hover {
    opacity: 0.9;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-sm);
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===================================
   TAGS
   =================================== */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    padding: 6px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

.tag.active {
    background: var(--primary-color);
    color: white;
}

/* ===================================
   ALERT & NOTIFICATION
   =================================== */

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.alert-success {
    background: #D1FAE5;
    color: #065F46;
    border-left: 4px solid #10B981;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

.alert-warning {
    background: #FEF3C7;
    color: #92400E;
    border-left: 4px solid #F59E0B;
}

.alert-error {
    background: #FEE2E2;
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

/* ===================================
   CATEGORY RATINGS
   =================================== */

.category-ratings {
    background: white;
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
}

.category-ratings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.category-ratings-header h3 {
    margin: 0;
}

.category-ratings-grid {
    display: grid;
    gap: var(--spacing-md);
}

.category-rating-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.category-rating-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.category-rating-content {
    flex: 1;
    min-width: 0;
}

.category-rating-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xs);
}

.category-rating-label {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.category-rating-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
}

.category-rating-bar-container {
    width: 100%;
    height: 8px;
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.category-rating-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    border-radius: var(--radius-sm);
    transition: width 0.6s ease;
}

.category-rating-description {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* Category rating variations by score */
.category-rating-bar[data-rating="5"],
.category-rating-bar[data-rating="4.9"],
.category-rating-bar[data-rating="4.8"] {
    background: linear-gradient(90deg, #10B981, #059669);
}

.category-rating-bar[data-rating="4.7"],
.category-rating-bar[data-rating="4.6"],
.category-rating-bar[data-rating="4.5"] {
    background: linear-gradient(90deg, #22C55E, #16A34A);
}

.category-rating-bar[data-rating="4.4"],
.category-rating-bar[data-rating="4.3"],
.category-rating-bar[data-rating="4.2"],
.category-rating-bar[data-rating="4.1"],
.category-rating-bar[data-rating="4.0"] {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.category-rating-bar[data-rating^="3"] {
    background: linear-gradient(90deg, #F59E0B, #D97706);
}

.category-rating-bar[data-rating^="2"],
.category-rating-bar[data-rating^="1"] {
    background: linear-gradient(90deg, #EF4444, #DC2626);
}

/* Star rating display */
.category-rating-stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--spacing-xs);
}

.star-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.875rem;
}

.star-filled {
    color: var(--secondary-color);
}

.star-half {
    color: var(--secondary-color);
    opacity: 0.5;
}

.star-empty {
    color: var(--border-color);
}

/* Compact category ratings for cards */
.category-ratings-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
    margin: var(--spacing-sm) 0;
}

.category-rating-compact {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 4px 8px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

.category-rating-compact-icon {
    font-size: 0.875rem;
}

.category-rating-compact-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.category-rating-compact-value {
    margin-left: auto;
    font-weight: 700;
    color: var(--primary-color);
}

/* Review category ratings */
.review-category-ratings {
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.review-category-ratings-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: var(--spacing-xs);
}

.review-category-ratings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xs);
}

.review-category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px;
    font-size: 0.75rem;
}

.review-category-label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-category-value {
    font-weight: 700;
    color: var(--primary-color);
}
