/* Responsive CSS - Hayal Kahvesi Denizli */

/* Tablet (768px ve altı) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    /* Header */
    .header-content {
        padding: 0.75rem 0;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--background-color);
        box-shadow: var(--box-shadow-lg);
        transition: var(--transition);
        z-index: 1001;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-menu {
        flex-direction: column;
        padding: 2rem 1rem;
        gap: 1rem;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        border-radius: var(--border-radius);
        transition: var(--transition);
    }
    
    .nav-link:hover {
        background: rgba(239, 124, 0, 0.1);
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Mobile Menu Toggle */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .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, -6px);
    }
    
    /* Language Switcher */
.language-switcher {
    display: none;
}

/* Page Header Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 2.5rem 0 1.5rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
    
    .page-header .page-subtitle {
        font-size: 1rem;
    }
    
    .page-header .page-description {
        font-size: 0.9rem;
    }
    
    .page-header-content {
        padding: 0 1rem;
    }
    
    .page-header .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 0.3rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 2rem 0 1rem;
    }
    
    .page-header h1 {
        font-size: 1.8rem;
    }
    
    .page-header .page-subtitle {
        font-size: 0.9rem;
    }
    
    .page-header .page-description {
        font-size: 0.8rem;
    }
    
    .page-header .breadcrumb {
        font-size: 0.8rem;
    }
}
    
    /* Theme Toggle */
    .theme-toggle {
        margin-left: 0.5rem;
        font-size: 1rem;
    }
    
    /* Hero Section */
    .hero {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Events Grid */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Form */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
}

/* Mobile (480px ve altı) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    /* Header */
    .logo h1 {
        font-size: 1.3rem;
    }
    
    /* Hero */
    .hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Event Cards */
    .event-content {
        padding: 1rem;
    }
    
    .event-title {
        font-size: 1.1rem;
    }
    
    .event-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Section Titles */
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .section-title p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

/* Large Desktop (1200px üstü) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero p {
        font-size: 1.3rem;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .section-title h2 {
        font-size: 3rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        min-height: 300px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .event-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .back-to-top,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    .event-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .btn {
        border: 1px solid var(--text-color);
        background: none;
        color: var(--text-color);
    }
}

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

/* Dark Mode Support - Now handled by JavaScript theme toggle */
@media (prefers-color-scheme: dark) {
    /* System preference is now handled by the theme toggle system */
}

/* Focus Styles for Accessibility */
.nav-link:focus,
.btn:focus,
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: var(--border-radius);
    z-index: 10000;
}

.skip-link:focus {
    top: 6px;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.dark {
    background: rgba(0, 0, 0, 0.9);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

::-moz-selection {
    background: var(--primary-color);
    color: white;
} 