/* ═══════════════════════════════════════════════════════════════════
   ANET A.Ş. — custom.css
   Tailwind CDN'in karşılayamadığı özel stiller
   ═══════════════════════════════════════════════════════════════════ */

/* ── Temel ──────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    background-color: #ffffff;
}

/* ── Özel Kaydırma Çubuğu ───────────────────────────────────────── */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #e31837; }

/* ── ANET Logo Yazı Efekti ──────────────────────────────────────── */
.anet-logo-text {
    font-family: 'Arial Black', Impact, sans-serif;
    -webkit-text-stroke: 1.5px #e2e8f0;
    text-shadow: 2px 2px 0px #ffffff, 3px 3px 0px #cbd5e1;
    letter-spacing: -1.5px;
}

/* Footer logo: gölge olmadan beyaz versiyonu */
.anet-logo-text-footer {
    font-family: 'Arial Black', Impact, sans-serif;
    letter-spacing: -1.5px;
}

/* ── Kırmızı Düğme ──────────────────────────────────────────────── */
.btn-red {
    background-color: #e31837;
    color: #ffffff;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-red:hover {
    background-color: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(227, 24, 55, 0.4);
}

/* ── Hero Gradient Overlay ──────────────────────────────────────── */
.hero-gradient {
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.9) 0%,
        rgba(15, 23, 42, 0.6) 50%,
        rgba(227, 24, 55, 0.1) 100%
    );
}

/* ── Hero Slider ────────────────────────────────────────────────── */
.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}
.hero-slide img {
    transform: scale(1.05);
    transition: transform 6s ease-out;
}
.hero-slide.active img {
    transform: scale(1);
}

/* ── Slider Alt Noktaları ───────────────────────────────────────── */
.slider-dot {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.slider-dot.active {
    background-color: #e31837;
    width: 2.5rem; /* w-10 */
}

/* ── Slider Ok Düğmeleri ────────────────────────────────────────── */
.slider-btn {
    transition: background-color 0.3s ease, border-color 0.3s ease,
                color 0.3s ease, transform 0.3s ease;
}
.slider-btn:hover {
    background-color: #e31837;
    border-color: #e31837;
    color: #ffffff;
    transform: scale(1.1);
}
/* WCAG 2.4.7: Klavye odağında buton görünür hâle gelsin */
#prevSlide:focus-visible,
#nextSlide:focus-visible {
    opacity: 1;
}

/* ── Tesis Kartları ─────────────────────────────────────────────── */
.service-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow  0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(227, 24, 55, 0.12);
    border-color: rgba(227, 24, 55, 0.2);
}
.service-card img {
    transition: transform 0.7s ease;
}
.service-card:hover img {
    transform: scale(1.05);
}

/* ── Erişilebilirlik: Klavye Odak Göstergesi ────────────────────── */
:focus-visible {
    outline: 3px solid #e31837;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Ana İçeriğe Geç Bağlantısı (Skip Navigation) ───────────────── */
/* Varsayılan olarak görünmez — sadece klavye odağında belirginleşir */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    background: #e31837;
    color: #ffffff;
    font-weight: 800;
    font-size: .875rem;
    padding: .625rem 1.25rem;
    border-radius: 0 0 .75rem .75rem;
    text-decoration: none;
    transition: top .15s ease;
}
.skip-link:focus {
    top: 0;
    outline: 3px solid #0f172a;
    outline-offset: 2px;
}

/* ── main landmark: odaklandığında outline olmasın ───────────────── */
main:focus {
    outline: none;
}

/* ── Ekran Okuyucu için Gizli Metin ─────────────────────────────── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Harekete Duyarlı Kullanıcılar (vestibüler bozukluk vs.) ─────── */
/* WCAG 2.3.3 — animasyonları durdur */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-slide,
    .hero-slide img {
        transition: none !important;
    }
    .service-card,
    .news-card img,
    .btn-red {
        transition: none !important;
        transform: none !important;
    }
}

/* ── Windows Yüksek Kontrast (Forced Colors) ────────────────────── */
@media (forced-colors: active) {
    .btn-red,
    .slider-btn {
        forced-color-adjust: none;
        background-color: ButtonText;
        color: ButtonFace;
        border: 2px solid ButtonText;
    }
    .skip-link {
        forced-color-adjust: none;
        background-color: Highlight;
        color: HighlightText;
    }
    :focus-visible {
        outline: 3px solid Highlight;
    }
    .hero-gradient {
        background: rgba(0,0,0,.7) !important;
    }
    .slider-dot.active {
        background-color: Highlight !important;
    }
}

/* ── Animasyon: Yukarıdan Fade ──────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ── Haberler Kart Hover ────────────────────────────────────────── */
.news-card img {
    transition: transform 0.5s ease;
}
.news-card:hover img {
    transform: scale(1.05);
}

/* ── Print Stilleri ─────────────────────────────────────────────── */
@media print {
    nav, footer, .hero-gradient, #prevSlide, #nextSlide, #sliderDots {
        display: none !important;
    }
    body { background: #fff; color: #000; }
}
