/* ==========================================
   CAFE THRON - RESPONSIVE STYLES
   Mobile-first responsive design
   ========================================== */

/* ========== TABLET (768px and below) ========== */
@media screen and (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    .nav-link {
        display: block;
        padding: var(--spacing-sm);
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Hero */
    .hero {
        min-height: 500px;
        background-attachment: scroll;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .hero-buttons .btn {
        width: 100%;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-image {
        order: -1;
    }

    /* Features */
    .features {
        grid-template-columns: 1fr;
    }

    /* Menu */
    .menu-items {
        gap: var(--spacing-sm);
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: var(--spacing-xs);
    }

    /* Lightbox */
    .lightbox img {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .rating-summary {
        margin-bottom: var(--spacing-md);
    }

    .score {
        font-size: 3rem;
    }

    .stars {
        font-size: 1.5rem;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .contact-map {
        order: 2;
    }

    .contact-info {
        order: 1;
    }

    .contact-map iframe {
        height: 350px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

/* ========== MOBILE (480px and below) ========== */
@media screen and (max-width: 480px) {
    /* Typography */
    :root {
        font-size: 14px;
    }

    /* Spacing */
    section {
        padding: var(--spacing-lg) 0;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Navigation */
    .nav-brand h2 {
        font-size: 1.5rem;
    }

    /* Hero */
    .hero {
        min-height: 450px;
    }

    .hero-content {
        padding: var(--spacing-sm);
    }

    .hero-title {
        letter-spacing: 1px;
    }

    /* Buttons */
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: var(--spacing-md);
    }

    .title-underline {
        width: 60px;
    }

    /* About */
    .about-text p {
        margin-bottom: var(--spacing-sm);
    }

    /* Features */
    .feature-card {
        padding: var(--spacing-sm);
    }

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

    /* Menu */
    .menu-category {
        padding: var(--spacing-sm);
    }

    .featured-badge {
        top: -10px;
        right: 10px;
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
    }

    .category-title {
        font-size: 1.3rem;
    }

    .item-header h4 {
        font-size: 1rem;
    }

    .price {
        font-size: 1rem;
    }

    .item-description {
        font-size: 0.85rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .gallery-item {
        aspect-ratio: 16/9;
    }

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

    /* Reviews */
    .rating-score {
        padding: var(--spacing-sm);
    }

    .score {
        font-size: 2.5rem;
    }

    .stars {
        font-size: 1.2rem;
    }

    .review-card {
        padding: var(--spacing-sm);
    }

    .review-header {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .author-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .review-text {
        font-size: 0.9rem;
    }

    /* Contact */
    .info-card {
        padding: var(--spacing-sm);
    }

    .info-icon {
        font-size: 2rem;
    }

    .info-card h3 {
        font-size: 1.1rem;
    }

    .contact-form-wrapper {
        padding: var(--spacing-sm);
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-md) 0 var(--spacing-sm);
    }

    .footer-section {
        margin-bottom: var(--spacing-sm);
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .footer-section p {
        font-size: 0.9rem;
    }

    .footer-credits {
        font-size: 0.8rem;
    }
}

/* ========== LARGE DESKTOP (1400px and above) ========== */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .hero-content {
        max-width: 1000px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========== LANDSCAPE MOBILE ========== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero-content {
        padding: var(--spacing-sm);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .nav-toggle,
    .lightbox,
    .contact-form,
    .footer-bottom {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 200px;
        page-break-after: always;
    }

    section {
        page-break-inside: avoid;
    }

    .gallery-item,
    .review-card,
    .feature-card {
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ========== HIGH CONTRAST MODE ========== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #333;
        --text-dark: #000;
        --bg-light: #fff;
    }

    .btn {
        border: 2px solid currentColor;
    }

    .feature-card,
    .menu-category,
    .review-card {
        border: 2px solid var(--text-dark);
    }
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-light: #1a1a1a;
        --text-dark: #f5f5f5;
        --bg-dark: #0a0a0a;
    }

    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }

    .about,
    .gallery,
    .contact {
        background: var(--bg-dark);
    }

    .menu,
    .reviews {
        background: var(--bg-light);
    }

    .feature-card,
    .menu-category,
    .review-card,
    .info-card,
    .contact-form-wrapper {
        background: #2a2a2a;
    }

    .menu-category.featured {
        background: linear-gradient(135deg, #2a2015 0%, #2a2a2a 100%);
    }

    .form-group input,
    .form-group textarea {
        background: #333;
        color: #f5f5f5;
        border-color: #555;
    }

    .rating-score {
        background: #2a2a2a;
    }
}
