/* ============================================
   UNSER CAFÉ - Responsive Stylesheet
   Mobile-first responsive design
   ============================================ */

/* ============================================
   Tablet Devices (max-width: 1024px)
   ============================================ */

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

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

/* ============================================
   Mobile Devices (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: var(--spacing-lg) 0;
        gap: var(--spacing-md);
        transition: var(--transition-normal);
        box-shadow: var(--shadow-lg);
    }

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

    .nav-toggle {
        display: flex;
    }

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

    .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;
    }

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

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

    /* Typography */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

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

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

    /* Menu */
    .menu-categories {
        gap: var(--spacing-md);
    }

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

    .price {
        margin-top: var(--spacing-xs);
    }

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

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

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

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

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

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

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Lightbox */
    .lightbox-nav {
        padding: 0.75rem;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        width: 40px;
        height: 40px;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* ============================================
   Small Mobile Devices (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Navigation */
    .nav-container {
        padding: 0.75rem var(--spacing-sm);
    }

    .nav-logo {
        font-size: 1.25rem;
    }

    /* Hero */
    .hero-title {
        font-size: 2.25rem;
    }

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

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

    .scroll-indicator {
        bottom: 1rem;
    }

    /* Sections */
    section {
        padding: var(--spacing-md) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-md);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    /* About */
    .about-text p {
        font-size: 1rem;
    }

    .feature-item {
        padding: var(--spacing-sm);
    }

    .feature-item i {
        font-size: 2.5rem;
    }

    .feature-item h3 {
        font-size: 1.125rem;
    }

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

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

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

    .price {
        font-size: 1rem;
    }

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

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

    .gallery-item {
        border-radius: var(--radius-sm);
    }

    .gallery-overlay i {
        font-size: 2rem;
    }

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

    .rating-number {
        font-size: 2.5rem;
    }

    .stars {
        font-size: 1.25rem;
    }

    .review-count {
        font-size: 0.875rem;
    }

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

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

    .reviewer-info h4 {
        font-size: 1rem;
    }

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

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

    .info-card i {
        font-size: 1.75rem;
    }

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

    .location-map iframe {
        height: 300px;
    }

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

    .contact-item {
        gap: var(--spacing-sm);
    }

    .contact-item i {
        font-size: 1.25rem;
    }

    .social-icons {
        gap: var(--spacing-sm);
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
    }

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

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

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

    .footer-section p,
    .footer-section ul li {
        font-size: 0.925rem;
    }

    /* Lightbox */
    .lightbox-image {
        max-width: 95%;
    }

    .lightbox-nav {
        padding: 0.5rem;
        font-size: 1.25rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 1.75rem;
        width: 35px;
        height: 35px;
    }
}

/* ============================================
   Large Desktop (min-width: 1440px)
   ============================================ */

@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

    .hero {
        min-height: 700px;
    }

    section {
        padding: calc(var(--spacing-xl) * 1.2) 0;
    }

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

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

/* ============================================
   4K & Ultra Wide Displays (min-width: 2560px)
   ============================================ */

@media (min-width: 2560px) {
    .container {
        max-width: 1800px;
    }

    html {
        font-size: 18px;
    }

    .hero {
        min-height: 900px;
    }

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

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .contact-form-wrapper,
    .footer-social,
    .back-to-top,
    .lightbox,
    .gallery-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }

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

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Dark Mode Support (Optional)
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if needed */
    /* Currently using light theme only to match café aesthetic */
}
