/* ===== Responsive / Duyarlı Tasarım ===== */

/* Large Desktop */
@media (max-width: 1200px) {
    .guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .guide-card.large {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .guide-card.large .guide-image {
        height: 160px;
    }
    
    .guide-card.large .guide-content h3 {
        font-size: var(--font-size-base);
    }
    
    .destinations-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .campaigns-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    .destinations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .hero {
        min-height: auto;
        padding-bottom: var(--spacing-2xl);
    }
}

/* Mobile Landscape / Small Tablet */
@media (max-width: 768px) {
    :root {
        --header-height: var(--header-height-mobile);
    }
    
    /* Header mobil iyileştirmeler */
    .header {
        padding: 0;
    }
    
    .nav {
        padding: 0 var(--spacing-sm);
    }
    
    .nav-links, 
    .nav-actions .search-box,
    .btn-notification {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: var(--radius);
        transition: var(--transition);
    }
    
    .mobile-menu-btn:active {
        background: var(--gray-100);
    }
    
    /* Hero mobil - çok kompakt */
    .hero {
        padding-top: calc(var(--header-height-mobile) + var(--spacing-md));
        padding-bottom: var(--spacing-md);
    }
    
    .hero h1 {
        font-size: 1.375rem;
        margin-bottom: 0.375rem;
    }
    
    .hero p {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .hero-cta .btn-primary {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    /* Filters Section Mobil */
    .filters-section {
        top: var(--header-height-mobile);
        padding: var(--spacing-md) 0;
    }
    
    .filters-section .container {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: stretch;
    }
    
    .filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: var(--spacing-sm);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin: 0 calc(-1 * var(--spacing-md));
        padding: 0 var(--spacing-md) var(--spacing-sm);
    }
    
    .filters::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        flex-shrink: 0;
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    
    .sort-options {
        width: 100%;
    }
    
    .sort-options select {
        width: 100%;
        padding: 0.75rem 1rem;
    }
    
    /* Deals Grid Mobil */
    .deals-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .campaigns-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .guides-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Newsletter Mobil */
    .newsletter-section {
        padding: var(--spacing-xl) 0;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
    }
    
    .newsletter-text h2 {
        font-size: 1.375rem;
        justify-content: center;
    }
    
    .newsletter-text p {
        font-size: 0.9375rem;
    }
    
    .newsletter-form {
        width: 100%;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .newsletter-form input {
        width: 100%;
        text-align: center;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    .form-note {
        justify-content: center;
    }
    
    /* Destinations Mobil */
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .destination-card {
        aspect-ratio: 1;
        border-radius: var(--radius-md);
    }
    
    .destination-overlay h3 {
        font-size: 1rem;
    }
    
    .destination-overlay p {
        font-size: 0.8125rem;
    }
    
    /* Footer Mobil */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
    }
    
    .footer-brand {
        order: 1;
    }
    
    .footer-links {
        order: 2;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links ul {
        align-items: center;
    }
    
    .footer-bottom {
        padding-top: var(--spacing-lg);
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    /* Section headers */
    section {
        padding: var(--spacing-xl) 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .section-header p {
        font-size: 0.875rem;
    }
}

/* Mobile Portrait - Küçük Ekranlar */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Hero mobil - minimal */
    .hero {
        padding-top: calc(var(--header-height-mobile) + var(--spacing-sm));
        padding-bottom: var(--spacing-sm);
    }
    
    .hero h1 {
        font-size: 1.25rem;
    }
    
    .hero p {
        font-size: 0.8125rem;
    }
    
    .hero-cta .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 1.125rem;
    }
    
    /* Destinations tek sütun */
    .destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .destination-card {
        aspect-ratio: 4/3;
    }
    
    /* Deal cards daha kompakt */
    .deal-card-top {
        padding: 1rem;
    }
    
    .deal-card-bottom {
        padding: 0.875rem 1rem 1rem;
    }
    
    .deal-route .city-from,
    .deal-route .city-to {
        font-size: 1.125rem;
    }
    
    .deal-price {
        font-size: 1.125rem;
    }
    
    .deal-price-box {
        padding: 0.375rem 0.5rem;
    }
    
    /* Campaign cards */
    .campaign-card {
        margin-bottom: var(--spacing-sm);
    }
    
    .campaign-content {
        padding: var(--spacing-md);
    }
    
    .campaign-content h3 {
        font-size: 1rem;
    }
    
    /* Guide cards */
    .guide-content {
        padding: var(--spacing-md);
    }
    
    .guide-content h3 {
        font-size: 1rem;
    }
    
    /* Footer daha kompakt */
    .footer-brand p {
        font-size: 0.8125rem;
    }
    
    .footer-links h4 {
        font-size: 0.9375rem;
        margin-bottom: var(--spacing-md);
    }
    
    .footer-links a {
        font-size: 0.8125rem;
    }
    
    .footer-bottom p {
        font-size: 0.75rem;
    }
}

/* Extra Small Screens - 360px altı */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.375rem;
    }
    
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .destinations-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 1.125rem;
    }
}

/* ===== Mobile Menu Responsive ===== */
@media (max-width: 768px) {
    .mobile-menu {
        max-width: 100%;
    }
    
    .back-to-top {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        width: 44px;
        height: 44px;
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    /* Touch-friendly tap targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .filter-btn {
        min-height: 44px;
    }
    
    .nav-links a,
    .footer-links a {
        padding: 0.5rem 0;
    }
    
    /* Remove hover effects that don't work well on touch */
    .deal-card:hover,
    .campaign-card:hover,
    .guide-card:hover,
    .destination-card:hover {
        transform: none;
    }
    
    /* Active states for touch feedback */
    .btn:active {
        transform: scale(0.98);
    }
    
    .deal-card:active {
        transform: scale(0.99);
    }
    
    .filter-btn:active {
        transform: scale(0.95);
    }
}

/* ===== Safe Area Insets for Notched Devices ===== */
@supports (padding: max(0px)) {
    .mobile-menu {
        padding-bottom: max(var(--spacing-lg), env(safe-area-inset-bottom));
    }
    
    .footer {
        padding-bottom: max(var(--spacing-xl), env(safe-area-inset-bottom));
    }
    
    .back-to-top {
        bottom: max(var(--spacing-lg), calc(var(--spacing-lg) + env(safe-area-inset-bottom)));
    }
}

/* ===== Landscape Orientation on Mobile ===== */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--header-height-mobile) + var(--spacing-md)) 0 var(--spacing-lg);
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
    }
    
    .hero-badge {
        margin-bottom: var(--spacing-sm);
    }
}

/* ===== Print Styles / Yazdırma Stilleri ===== */
@media print {
    .header,
    .footer,
    .ad-slot,
    .back-to-top,
    .cookie-consent,
    .mobile-menu,
    .mobile-overlay,
    .filters-section,
    .newsletter-section,
    .hero-decoration {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero {
        padding-top: var(--spacing-xl);
        background: white;
        color: black;
    }
    
    .hero h1 {
        color: black;
    }
    
    .deal-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
}

/* ===== Reduced Motion / Azaltılmış Hareket ===== */
@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;
    }
    
    .hero::before,
    .hero::after,
    .hero-decoration {
        animation: none;
    }
}

/* ===== High Contrast Mode / Yüksek Kontrast Modu ===== */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000FF;
        --secondary: #FF0000;
        --gray-600: #000000;
    }
    
    .deal-card,
    .campaign-card,
    .guide-card {
        border: 2px solid var(--dark);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
}

/* ===== Dark Mode Support / Karanlık Mod Desteği ===== */
@media (prefers-color-scheme: dark) {
    /* Dark mode stilleri gelecekte eklenebilir */
}
