/* QR Code Ordering - Hero Section Styles */

/* QR Hero Section - Extends hero.css styles */
.hero.qr-hero-section {
    background: linear-gradient(135deg, #2C5F41 0%, #1a3d2e 100%);
    /* Inherit margin and padding from hero.css */
}

.hero.qr-hero-section::before {
    /* Override grid pattern for QR theme */
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="qr-grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23qr-grid)"/></svg>');
    opacity: 0.3;
}

.hero-content.qr-hero-container {
    /* Extend hero-content styles */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-container.qr-hero-content {
    /* QR-specific content styling */
    text-align: left;
    max-width: none;
}

.qr-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.qr-breadcrumb a {
    color: white;
    text-decoration: none;
}

.qr-breadcrumb a:hover {
    text-decoration: underline;
}

.qr-breadcrumb span {
    margin: 0 10px;
    opacity: 0.6;
}

.qr-hero-title {
    font-family: 'DegularVariable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.qr-hero-subtitle {
    font-family: 'DegularVariable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 90%;
}

.qr-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4CAF50;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* QR Hero Visual */
.qr-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.qr-demo-container {
    display: flex;
    gap: 40px;
    align-items: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.menu-preview {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.menu-header h3 {
    font-family: 'DegularVariable', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1.2rem;
    color: #2C5F41;
    margin: 0;
}

.table-number {
    background: #4CAF50;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.menu-items {
    flex: 1;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.menu-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    border: 2px solid #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.food-icon {
    font-size: 24px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.2));
}

.menu-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border: 2px solid #e0e0e0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item img:not([src]), 
.menu-item img[src=""], 
.menu-item img[src="#"] {
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%);
    border: 2px solid #4CAF50;
}

.menu-item img:not([src])::after, 
.menu-item img[src=""]::after, 
.menu-item img[src="#"]::after {
    content: '🍽️';
    font-size: 20px;
    color: white;
}

.item-details {
    flex: 1;
}

.item-details h4 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: #333;
}

.item-details p {
    font-size: 0.8rem;
    color: #666;
    margin: 0 0 5px 0;
}

.price {
    font-weight: 600;
    color: #4CAF50;
}

.order-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.order-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.qr-code-display {
    text-align: center;
}

.qr-code {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qr-pattern {
    width: 80px;
    height: 80px;
}

.qr-pattern rect {
    fill: #000;
    animation: qr-pulse 2s ease-in-out infinite alternate;
}

@keyframes qr-pulse {
    0% { opacity: 1; }
    100% { opacity: 0.7; }
}

.qr-code-display p {
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Hero animations */
.qr-hero-content {
    animation: slideInUp 0.8s ease-out;
}

.qr-hero-visual {
    animation: slideInRight 0.8s ease-out 0.2s both;
}

/* QR Code Animation */
@keyframes qrPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.qr-code {
    animation: qrPulse 2s ease-in-out infinite;
}

/* Phone Screen Animation */
@keyframes screenGlow {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }
    50% {
        box-shadow: 0 20px 40px rgba(76, 175, 80, 0.3);
    }
}

.phone-mockup {
    animation: screenGlow 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .qr-hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .qr-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .qr-demo-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .qr-hero-title {
        font-size: 2.5rem;
    }
    
    .qr-hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .qr-hero-title {
        font-size: 2rem;
    }
    
    .qr-hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
}
