/* matrix/ristorante_dettaglio/dettaglio.css */

/* CSS Variables */
:root {
    --primary-color: #ec7205;
    --primary-hover: #d76500;
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: #95A5A6;
    --border-color: #E8ECEF;
    --bg-white: #FFFFFF;
    --bg-light: #FFFFFF; /* Changed from #F8F9FA to white */
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --shadow-light: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-heavy: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-white); /* Changed to white */
    color: var(--text-primary);
    line-height: 1.6;
    padding-bottom: 120px; /* Space for AI chat */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

/* Main Content */
.main-content {

}

/* 1. Hero Section */
.hero-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;

}

.restaurant-showcase {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.menu-image-container {
    position: relative;
}

.ads_1 {
	max-height: 300px;

}

.menu-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 3px solid var(--border-color);
}

.menu-image:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
}

.menu-image-placeholder {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 48px;
    border: 2px dashed var(--border-color);
}

.restaurant-info {
    display: flex;
    flex-direction: column;
}

.restaurant-name {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.restaurant-location {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.restaurant-meta {
    display: flex;
    flex-direction: column;
}

.cuisine-info {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 500;
}

.rating-display {
    display: flex;
    align-items: center;
}

.rating-stars {
    display: flex;
    gap: 2px;
    font-size: 20px;
}

.star-filled {
    color: #FFD700;
}

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

.rating-score {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-reviews {
    color: var(--text-secondary);
    font-size: 14px;
}

/* 2. CTA Section */
.cta-section {
    text-align: center;
    margin-bottom: 32px;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 20px 48px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: var(--shadow-medium);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.cta-button:hover::before {
    left: 100%;
}

/* 3. Gamification Section */
.gamification-section {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.gamification-header {
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.gamification-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.stat-icon {
    font-size: 32px;
}

.streak-fire {
    animation: flicker 2s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; transform: scale(1.1); }
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.level-item {
    grid-column: span 2;
    justify-content: center;
}

.level-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-medium);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.level-bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); }
.level-silver { background: linear-gradient(135deg, #C0C0C0, #808080); }
.level-gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #333; }
.level-platinum { background: linear-gradient(135deg, #E5E4E2, #BEC2CB); color: #333; }
.level-diamond { background: linear-gradient(135deg, #b9f2ff, #6dd5ed); color: #333; }

/* Progress Bar */
.progress-container {
    height: 20px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bronze { background: linear-gradient(90deg, #CD7F32, #8B4513); }
.progress-silver { background: linear-gradient(90deg, #C0C0C0, #808080); }
.progress-gold { background: linear-gradient(90deg, #FFD700, #FFA500); }
.progress-platinum { background: linear-gradient(90deg, #E5E4E2, #BEC2CB); }
.progress-diamond { background: linear-gradient(90deg, #b9f2ff, #6dd5ed); }

/* Achievements */
.achievements-section {
    text-align: center;
}

.achievements-grid {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.achievement-item {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid var(--border-color);
}

.achievement-item:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-medium);
}

.achievement-item.earned {
    background: #fff3cd;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(236, 114, 5, 0.3);
    animation: achievementGlow 2s infinite;
}

.telefono-box {
    border: 1px solid #ddd;
    border-left: 2px solid #007bff; /* accento colorato a sinistra */
    border-radius: 8px;
    padding: 3px 10px;
    background-color: #f9f9f9;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    margin: 10px 0;
        width: 220px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.telefono-box i {
    color: #007bff;
    font-size: 1.2em;
}

.telefono-box a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.telefono-box a:hover {
    color: #007bff;
    text-decoration: underline;
}

@keyframes achievementGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(236, 114, 5, 0.3); }
    50% { box-shadow: 0 0 30px rgba(236, 114, 5, 0.5); }
}

/* Content Sections */
.content-section {
    margin-bottom: 32px;
}

.content-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out;
    border: 1px solid var(--border-color);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.card-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.card-title i {
    color: var(--primary-color);
    font-size: 24px;
}

.card-content {
    padding: 24px;
}

.landing-breadcrumbs {
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.landing-breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.landing-breadcrumbs li {
    display: flex;
    align-items: center;
    color: #555;
}

.landing-breadcrumbs li a {
    color: #007bff; /* colore link (Bootstrap blue) */
    text-decoration: none;
    transition: color 0.2s;
    font-size: 11px;
}

.landing-breadcrumbs li a:hover {
    color: #0056b3; /* colore on hover */
    text-decoration: underline;
}

.landing-breadcrumbs li::after {
    content: "›";
    margin: 0 8px;
    color: #aaa;
    font-size: 0.85em;
}

.landing-breadcrumbs li:last-child::after {
    content: "";
}

.landing-breadcrumbs li:last-child a {
    color: #333;
    pointer-events: none;
    cursor: default;
    font-weight: bold;
}

/* 4. Menu Preview Card */
.menu-preview-card {
    background: linear-gradient(135deg, #fff, #fafafa);
    border: 2px solid var(--primary-color);
}

.menu-category {
    margin-bottom: 24px;
}

.menu-category:last-of-type {
    margin-bottom: 16px;
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.menu-item:hover {
    background: #fff8f0;
    border-color: var(--primary-color);
    transform: translateX(8px);
    box-shadow: var(--shadow-light);
}

.item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.item-price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 16px;
}

.view-full-menu-container {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.view-full-menu {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
    display: inline-block;
}

.view-full-menu:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* 5. User Dishes Card */
.user-dishes-card {
    background: linear-gradient(135deg, #fff5f5, #fff);
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.dish-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.dish-item:hover {
    background: #fff0f0;
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-medium);
    border-color: var(--primary-color);
}

.dish-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    flex: 1;
}

.dish-star {
    color: var(--primary-color);
    font-size: 18px;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

/* Reviews Card */
.review-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.review-source-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.review-author {
    font-weight: 600;
    flex: 1;
}

.review-rating {
    display: flex;
    gap: 2px;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.view-all-reviews {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Hours Card */
.hours-24 {
    text-align: center;
    padding: 32px;
    color: var(--success-color);
    font-weight: 700;
    font-size: 18px;
}

.hours-24 i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.hours-item:last-child {
    border-bottom: none;
}

.day-name {
    font-weight: 600;
}

.day-hours {
    color: var(--text-secondary);
}

.ai-description-text {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.ai-description-text.collapsed {
    max-height: 3.6em; /* Circa 2 righe con line-height 1.8 */
    position: relative;
}

.ai-description-text.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.5em;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

.ai-description-text.expanded {
    max-height: none;
}

.expand-description-btn {
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    padding: 8px 0;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.expand-description-btn:hover {
    color: #5a67d8;
    transform: translateY(-1px);
}

.expand-description-btn .expand-icon {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.expand-description-btn.expanded .expand-icon {
    transform: rotate(180deg);
}

/* Animazione per il testo */
.typewriter-text {
    display: inline;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: #667eea;
    animation: blink 1s infinite;
    vertical-align: text-bottom;
    margin-left: 2px;
}

/* Photos Card */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

/* Ratings Card */
.main-rating {
    text-align: center;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.score-display {
    margin-bottom: 12px;
}

.score-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
}

.score-max {
    font-size: 24px;
    color: var(--text-secondary);
}

.score-meta {
    color: var(--text-secondary);
    font-size: 14px;
}

.external-ratings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.rating-source {
    display: flex;
    align-items: center;
    gap: 12px;
}

.source-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.source-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.source-name {
    font-weight: 600;
}

.rating-value {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

/* AI Chat Card - NEW SECTION */
.ai-chat-card {
    background: linear-gradient(135deg, #f0f4ff, #fff);
    border: 2px solid #667eea;
}

.ai-questions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.ai-question-item {
    padding: 16px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.ai-question-item:hover {
    box-shadow: var(--shadow-light);
    border-color: #667eea;
}

.ai-question-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ai-question-icon {
    color: #667eea;
    font-size: 20px;
}

.ai-question-text {
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.ai-answer-preview {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
    padding-left: 32px;
}

.ai-answer-icon {
    color: var(--primary-color);
    font-size: 16px;
    margin-top: 2px;
}

.ai-answer-text {
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

.ai-question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-light);
    padding-left: 32px;
}

.ai-question-time {
    font-style: italic;
}

.ai-question-helpful {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--success-color);
}

.ai-ask-section {
    background: #f8faff;
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 24px;
}

.ai-ask-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.ai-ask-form {
    margin-bottom: 16px;
}

.ai-input-wrapper {
    display: flex;
    gap: 12px;
}

.ai-question-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.ai-question-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.ai-submit-button {
    padding: 12px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-submit-button:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.ai-submit-button:active {
    transform: translateY(0);
}

.ai-full-chat-link {
    text-align: center;
}

.ai-chat-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.ai-chat-link:hover {
    text-decoration: underline;
}

/* Floating Action Buttons */
.fab-container {
    position: fixed;
    bottom: 160px; /* Sopra AI chat che è a 120px */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 150; /* Sopra AI chat che è z-index 100 */
    align-items: flex-end; /* Allinea a destra */
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.fab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.fab:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.fab:hover::before {
    width: 100%;
    height: 100%;
}

.fab:active {
    transform: scale(0.95);
}

.fab-share {
    background: var(--primary-color);
}

.fab-photo {
    background: #6C5CE7;
}

/* Ensure all FABs in container have consistent spacing */
.fab-container .fab {
    margin: 0; /* Reset any default margins */
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 1000;
    pointer-events: none;
}

.notification {
    background: var(--text-primary);
    color: white;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    max-width: 320px;
    box-shadow: var(--shadow-heavy);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-icon {
    font-size: 24px;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 14px;
    opacity: 0.9;
}

.notification.success {
    background: var(--success-color);
}

.notification.achievement {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.notification.combo {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* Combo Indicator */
.combo-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--text-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.combo-indicator.active {
    opacity: 1;
}

.combo-indicator.fire {
    background: var(--gradient-primary);
    animation: fireMode 0.5s ease-in-out infinite alternate;
}

@keyframes fireMode {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Clickable Elements */
.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable:hover {
    transform: translateY(-1px);
}

/* Points Floater Animation */
.points-floater {
    position: fixed;
    z-index: 10001;
    pointer-events: none;
    text-align: center;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(0.8);
    }
    25% {
        opacity: 1;
        transform: translateX(-50%) translateY(-20px) scale(1.2);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) translateY(-40px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-80px) scale(1);
    }
}

.points-main {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    line-height: 1;
    margin-bottom: 4px;
}

.points-combo {
    font-size: 18px;
    color: var(--warning-color);
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* AI Discovery Section - NEW */
.ai-discovery-section {
    margin-bottom: 32px;
    text-align: center;
}

.ai-discovery-container {
    max-width: 800px;
    margin: 0 auto;
}

.discover-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 32px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-medium);
    position: relative;
    width:95%;
    overflow: hidden;
}

.discover-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.discover-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.discover-button:hover::before {
    left: 100%;
}

.discover-button:active {
    transform: translateY(0);
}

.discover-button .spinner {
    display: none;
}

.ai-description-container {
    margin-top: 24px;
    animation: slideInUp 0.6s ease-out;
}

.ai-description-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-light);
    border: 2px solid #667eea;
    overflow: hidden;
}

.ai-description-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-description-header i {
    font-size: 24px;
}

.ai-description-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.ai-description-content {
    padding: 24px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    text-align: left;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Keep two column layout on mobile */
    .restaurant-showcase {
        grid-template-columns: 100px 1fr;
        gap: 16px;
    }
    
    .menu-image {
        height: 130px;
    }
    
    .restaurant-name {
        font-size: 24px;
    }
    
    .restaurant-location {
        font-size: 14px;
    }
    
    .rating-score {
        font-size: 18px;
    }
    
    .cta-button {
        padding: 5px 32px;
        font-size: 24px;
        width: 95%;
    }
    
    .gamification-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .level-item {
        grid-column: span 2;
    }
    
    .achievements-grid {
        gap: 12px;
    }
    
    .achievement-item {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dishes-grid {
        grid-template-columns: 1fr;
    }
    
    /* AI Chat mobile adjustments */
    .ai-input-wrapper {
        flex-direction: column;
    }
    
    .ai-submit-button {
        width: 100%;
        justify-content: center;
    }
    
    .ai-question-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .fab-container {
        bottom: 110px; /* Più spazio su mobile per AI chat */
        right: 16px;
    }
    
    .fab {
        width: 52px;
        height: 52px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    /* Keep two column layout even on small screens */
    .restaurant-showcase {
        grid-template-columns: 80px 1fr;
        gap: 12px;
    }
    
    .menu-image {
        height: 130px;
    }
    
    .restaurant-name {
        font-size: 20px;
    }
    
    .hero-section,
    .gamification-section {
        padding: 20px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .stat-item {
        padding: 12px;
        gap: 8px;
    }
    
    .stat-icon {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    /* AI Chat extra small mobile */
    .ai-ask-section {
        padding: 16px;
    }
    
    .ai-question-header,
    .ai-answer-preview {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .ai-answer-preview {
        padding-left: 0;
    }
    
    .ai-question-meta {
        padding-left: 0;
    }
}