/* ==========================================================================
   Klima Starter — Responsive Stilleri
   Tüm breakpoint'ler ve responsive düzeltmeleri
   ========================================================================== */

/* ==========================================================================
   1. Tablet (1024px ve altı)
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 2.75rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
        --container-padding: 1.25rem;
    }

    /* news-grid responsive — defined in _news.css */

    .section {
        padding: var(--spacing-3xl) 0;
    }
}

/* ==========================================================================
   2. Tablet Portre (768px ve altı)
   ========================================================================== */
@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.25rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --container-padding: 1rem;
    }

    h1 {
        font-size: var(--font-size-4xl);
    }

    h2 {
        font-size: var(--font-size-3xl);
    }

    h3 {
        font-size: var(--font-size-2xl);
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-2xl);
    }

    .section-header__title {
        font-size: var(--font-size-3xl);
    }

    .section-header__desc {
        font-size: var(--font-size-base);
    }

    .btn--lg {
        padding: 0.875rem 1.5rem;
        font-size: var(--font-size-sm);
    }

    .page-header {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
}

/* ==========================================================================
   3. Mobil (576px ve altı)
   ========================================================================== */
@media (max-width: 576px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.5rem;
        --font-size-3xl: 1.375rem;
        --container-padding: 0.875rem;
    }

    /* news-grid responsive — defined in _news.css */

    .section {
        padding: var(--spacing-xl) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-xl);
    }

    .section-header__tag::before,
    .section-header__tag::after {
        width: 20px;
    }

    .btn {
        padding: 0.625rem 1.25rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form .search-submit {
        width: 100%;
    }

    .pagination .nav-links {
        gap: 4px;
    }

    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: var(--font-size-xs);
    }
}

/* ==========================================================================
   4. Küçük Mobil (400px ve altı)
   ========================================================================== */
@media (max-width: 400px) {
    :root {
        --font-size-5xl: 1.75rem;
        --font-size-4xl: 1.375rem;
        --container-padding: 0.75rem;
    }

    /* news-card responsive — defined in _news.css */
}

/* ==========================================================================
   5. Print Stiller
   ========================================================================== */
@media print {

    .top-bar,
    .site-header__toggle,
    .site-header__cta,
    .mobile-cta-bar,
    .mobile-menu {
        display: none !important;
    }

    .site-header {
        position: static;
        box-shadow: none;
        border-bottom: 1px solid #ccc;
    }

    .site-footer {
        background: none;
        color: #333;
        border-top: 1px solid #ccc;
    }

    body {
        font-size: 12pt;
        color: #000;
    }
}

/* ==========================================================================
   6. Reduced Motion (Erişilebilirlik)
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .news-card:hover {
        transform: none;
    }

    .news-card:hover .news-card__media img {
        transform: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   7. Focus Visible (Erişilebilirlik)
   ========================================================================== */
:focus-visible {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
    outline: none;
}