/* Critical Above-the-Fold styles moved from _optimized_head.html inline block */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #1e293b;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img {
    max-width: 100%;
    height: auto;
    background-color: #f8f9fa;
    transition: opacity 0.3s ease-in-out;
    content-visibility: auto;
}

video {
    background-color: #000;
    max-width: 100%;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #8ecae6;
    border-radius: 50%;
    animation: critical-head-spin 1s linear infinite;
}

@keyframes critical-head-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: critical-head-loading 1.5s infinite;
}

@keyframes critical-head-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==================================================================
   SKIP-TO-CONTENT — Erişilebilirlik (WCAG 2.4.1)
   Klavye/ekran okuyucu kullanıcıları Tab ile direkt ana içeriğe atlayabilir.
   Görsel olarak gizli, Tab'a basınca görünür.
   ================================================================== */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2147483647;
    padding: 12px 24px;
    background: #23313b;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow-soft, 0 12px 36px rgba(15, 23, 42, 0.03));
    transition: top 0.2s ease;
    white-space: nowrap;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid #8ecae6;
    outline-offset: 2px;
    color: #fff;
    text-decoration: none;
}

@media (prefers-color-scheme: dark) and (min-width: 99999px) {
    .skip-to-content {
        background: #e2e8f0;
        color: #23313b;
    }
    .skip-to-content:focus {
        color: #23313b;
    }
}

/* Erişilebilirlik: Hareket hassasiyeti olan kullanıcılar için animasyonları devre dışı bırak */
@media (prefers-reduced-motion: reduce) {
    img {
        transition: none;
    }
    .loading-spinner {
        animation: none;
    }
    .skeleton {
        animation: none;
        background: #e5e7eb;
    }
}
