/* ========================================
   ALYA CAFE - RESPONSIVE CSS
   ======================================== */

/* Mobile First Approach */

/* Tablet - 768px and up */
@media (max-width: 1023px) {
    :root {
        --fs-h1: 40px;
        --fs-h2: 32px;
        --fs-h3: 22px;
        --section-padding: 60px;
    }

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

    /* Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--spacing-xl);
        transition: left 0.4s ease;
        z-index: 999;
    }

    .nav__menu--active {
        left: 0;
    }

    .nav__link {
        color: var(--color-white);
        font-size: 24px;
    }

    .nav__toggle {
        display: flex;
    }

    /* Hero */
    .hero__title {
        font-size: 42px;
    }

    .hero__subtitle {
        font-size: 18px;
    }

    .hero__logo {
        width: 180px;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero__buttons .btn {
        width: 100%;
    }

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

    .about__image img {
        height: 400px;
    }

    /* Featured Products */
    .featured__grid {
        grid-template-columns: 1fr;
    }

    /* Instagram Embed - Responsive ayarları Instagram tarafından otomatik yapılır */

    /* Quick Contact */
    .quick-contact__grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    /* Menu Layout */
    .menu-layout {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .menu-sidebar {
        position: static;
        padding: var(--spacing-md);
    }

    .menu-nav {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }

    .menu-nav__link {
        padding: 12px 14px;
        font-size: 14px;
    }

    .menu-subcategory {
        padding: var(--spacing-md);
    }

    .menu-subcategory__title {
        font-size: 22px;
    }

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

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-info-items-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .page-header__title {
        font-size: 40px;
        letter-spacing: -0.5px;
    }

    .page-header__subtitle {
        font-size: 18px;
    }
}

/* Mobile - 767px and below */
@media (max-width: 767px) {
    :root {
        --fs-h1: 32px;
        --fs-h2: 28px;
        --fs-h3: 20px;
        --fs-body: 14px;
        --fs-small: 12px;
        --section-padding: 40px;
        --spacing-lg: 24px;
        --spacing-xl: 32px;
        --spacing-xxl: 48px;
    }

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

    /* Header */
    .nav__logo img {
        height: 50px;
    }

    .header--scrolled .nav__logo img {
        height: 45px;
    }

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

    .hero__title {
        font-size: 32px;
        margin-bottom: var(--spacing-md);
    }

    .hero__subtitle {
        font-size: 16px;
        margin-bottom: var(--spacing-lg);
    }

    .hero__logo {
        width: 140px;
        margin-bottom: var(--spacing-md);
    }

    .hero__scroll-indicator {
        bottom: 30px;
    }

    .hero__scroll-indicator span {
        width: 20px;
        height: 34px;
    }

    .hero__scroll-indicator span::before {
        width: 3px;
        height: 6px;
    }

    /* Buttons */
    .btn {
        padding: 12px 24px;
        font-size: var(--fs-body);
    }

    .btn--small {
        padding: 8px 16px;
        font-size: var(--fs-small);
    }

    /* About */
    .about__image img {
        height: 300px;
    }

    .about__content {
        padding: 0;
    }

    .about__text {
        font-size: 16px;
    }

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

    /* Card */
    .card__image {
        height: 200px;
    }

    .card__title {
        font-size: 20px;
    }

    /* Featured Products */
    .featured__grid {
        gap: var(--spacing-md);
    }

    /* Instagram Embed - Responsive ayarları Instagram tarafından otomatik yapılır */

    /* Quick Contact */
    .quick-contact__item {
        padding: var(--spacing-md);
    }

    .quick-contact__icon {
        width: 60px;
        height: 60px;
    }

    .quick-contact__icon svg {
        width: 28px;
        height: 28px;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

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

    .footer__logo {
        width: 100px;
    }

    .footer__title {
        font-size: 18px;
    }

    /* Page Header */
    .page-header {
        padding: 100px 0 40px;
    }

    .page-header__title {
        font-size: 36px;
        letter-spacing: -0.5px;
    }

    .page-header__title::after {
        width: 60px;
        height: 3px;
    }

    .page-header__subtitle {
        font-size: 18px;
    }

    /* Menu */
    .menu-search {
        margin-bottom: var(--spacing-md);
    }

    .menu-search__input {
        padding: 12px 40px 12px 16px;
        font-size: 14px;
    }

    .menu-sidebar {
        padding: var(--spacing-md);
    }

    .menu-nav {
        grid-template-columns: 1fr;
    }

    .menu-nav__link {
        padding: 12px 14px;
        font-size: 14px;
    }

    .menu-category__title {
        font-size: 32px;
    }

    .menu-subcategory {
        padding: var(--spacing-md);
    }

    .menu-subcategory__title {
        font-size: 20px;
    }

    .menu-subcategory__title::before {
        font-size: 22px;
    }

    .menu-item {
        padding: 14px 16px;
        font-size: var(--fs-small);
    }

    .menu-item__name {
        font-size: 14px;
    }

    .menu-item__price {
        font-size: 17px;
        padding: 3px 6px;
    }

    .menu-item--popular::after {
        font-size: 10px;
        padding: 4px 10px;
        top: -8px;
        right: 16px;
    }

    .menu-item:hover {
        transform: translateX(4px) scale(1.005);
    }

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

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

    .filter-buttons {
        gap: var(--spacing-xs);
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: var(--fs-small);
    }

    .lightbox__close {
        top: 10px;
        right: 10px;
        font-size: 36px;
        width: 40px;
        height: 40px;
    }

    .lightbox__arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .lightbox__arrow--prev {
        left: 10px;
    }

    .lightbox__arrow--next {
        right: 10px;
    }

    .lightbox__caption {
        font-size: 16px;
    }

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

    .contact-form__title,
    .contact-info__title {
        font-size: 24px;
    }

    .form-input,
    .form-textarea {
        padding: 10px 14px;
        font-size: var(--fs-small);
    }

    .contact-info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .map-container iframe {
        height: 300px !important;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    :root {
        --fs-h1: 28px;
        --fs-h2: 24px;
        --fs-h3: 18px;
    }

    .hero__title {
        font-size: 26px;
    }

    .hero__subtitle {
        font-size: 14px;
    }

    .hero__logo {
        width: 110px;
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .hero__scroll-indicator span {
        width: 18px;
        height: 30px;
    }

    .page-header__title {
        font-size: 28px;
    }

    .menu-category__title {
        font-size: 24px;
    }

    .about__image img {
        height: 250px;
    }

    .card__image {
        height: 180px;
    }
}

/* Landscape Phones */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        min-height: 450px;
    }

    .hero__title {
        font-size: 24px;
    }

    .hero__subtitle {
        font-size: 14px;
        margin-bottom: var(--spacing-md);
    }

    .hero__logo {
        width: 100px;
        margin-bottom: var(--spacing-sm);
    }

    .hero__scroll-indicator {
        display: none;
    }

    .nav__menu {
        flex-direction: row;
        flex-wrap: wrap;
        padding: var(--spacing-xl);
        overflow-y: auto;
    }

    .nav__link {
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .header,
    .whatsapp-float,
    .hero__scroll-indicator,
    .hero__background,
    .lightbox,
    .filter-buttons,
    .contact-form-wrapper {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-xl) 0;
        background: var(--color-bg-alt) !important;
    }

    .hero__content {
        color: var(--color-primary) !important;
    }

    .hero__title {
        color: var(--color-primary) !important;
        text-shadow: none !important;
    }

    .section {
        page-break-inside: avoid;
    }

    a {
        text-decoration: underline;
    }

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

/* 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;
        scroll-behavior: auto !important;
    }

    .hero__gradient-animated,
    .hero__pattern,
    .hero__logo,
    .hero__content,
    .hero__scroll-indicator {
        animation: none !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #000000;
        --color-text: #000000;
        --color-text-light: #333333;
    }

    .btn--primary,
    .btn--secondary {
        border-width: 3px;
    }

    .nav__link,
    .menu-item,
    .card {
        border: 2px solid var(--color-border);
    }
}

/* Dark Mode Support (Optional for future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here in the future */
}

