/* ========================================
   PRANZO RESTAURANT - RESPONSIVE STYLES
   ======================================== */

/* ========== TABLET (MAX-WIDTH: 1024PX) ========== */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .about-preview-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .menu-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* ========== MOBILE (MAX-WIDTH: 768PX) ========== */
@media screen and (max-width: 768px) {
    /* Typography */
    html {
        font-size: 14px;
    }
    
    /* Top Bar */
    .top-bar {
        display: none;
    }
    
    /* Navigation */
    .nav-wrapper {
        position: relative;
    }
    
    .logo img {
        height: 50px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--bg-white);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        margin-bottom: var(--spacing-sm);
    }
    
    .nav-menu a {
        display: block;
        padding: var(--spacing-sm);
        border-radius: var(--radius-md);
    }
    
    .nav-menu a:hover,
    .nav-menu a.active {
        background-color: var(--bg-light);
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1000;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .order-now-btn {
        padding: 8px 15px;
        font-size: 0.875rem;
    }
    
    /* Hero Section */
    .hero {
        height: 450px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Menu Items */
    .menu-items-grid {
        grid-template-columns: 1fr;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    /* Scroll to Top */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ========== SMALL MOBILE (MAX-WIDTH: 480PX) ========== */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: var(--spacing-md);
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .about-preview-content h2 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .menu-item-card {
        margin-bottom: var(--spacing-md);
    }
    
    .menu-item-image {
        height: 200px;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .btn-large {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .testimonial-card {
        padding: var(--spacing-md);
    }
    
    .footer {
        padding: var(--spacing-lg) 0 var(--spacing-sm);
    }
}

/* ========== NOTIFICATION STYLES ========== */
.notification {
    position: fixed;
    top: 100px;
    right: -400px;
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 10000;
    max-width: 350px;
    transition: right 0.3s ease;
}

.notification.show {
    right: 20px;
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-success i {
    color: var(--success-color);
    font-size: 1.5rem;
}

.notification-error {
    border-left: 4px solid var(--accent-color);
}

.notification-error i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.notification-info {
    border-left: 4px solid var(--primary-color);
}

.notification-info i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

@media screen and (max-width: 480px) {
    .notification {
        left: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
    
    .notification.show {
        right: 10px;
    }
}

/* ========== LOADING SPINNER ========== */
.spinner {
    border: 3px solid var(--bg-light);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========== PRINT STYLES ========== */
@media print {
    .header,
    .footer,
    .scroll-to-top,
    .notification,
    .btn-add-cart,
    .cta-section {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .menu-item-card {
        page-break-inside: avoid;
    }
}

/* ========== ACCESSIBILITY ========== */
/* Focus styles for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10001;
}

.skip-to-main:focus {
    top: 0;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --text-dark: #000;
        --bg-white: #fff;
        --border-color: #000;
    }
}
