/* =========================================
   1. GENEL AYARLAR VE DEĞİŞKENLER
   ========================================= */
:root {
    --afk-deep: #16343f ;
    --afk-dark: #204d59;
    --afk-mid: #2596be;
    --afk-light: #4893a6; 

    --text-white: #ffffff;
    --nav-text: #4a5568;
    --nav-hover: #2596be; 

    --hamburger-color: #204d59;
}

/* --- Temel HTML/Body Ayarları (REM Dönüşümü) --- */
html {
    font-size: 0.875rem; /* 14px varsayılan */
    position: relative;
    min-height: 100%;
}

@media (min-width: 48rem) { /* 768px ve üzeri */
    html {
        font-size: 1rem; /* 16px varsayılan */
    }
}

body {
    padding-top: 5rem; /* ~80px (Navbar yüksekliği) */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
/* ==========================================================================
   2. BOOTSTRAP OVERRIDES (Buton, Form, Tipografi)
   ========================================================================== */

/* Focus (Tıklama) Efektleri - Canlı Turkuaz Gölge */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem var(--afk-mid);
    border-color: var(--afk-mid);
}

/* Form Placeholder Hizalamaları */
.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: #6c757d;
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* --- Renk Sınıfları Override --- */
.bg-primary {
    background-color: var(--afk-dark) !important;
}

.text-primary {
    color: var(--afk-dark) !important;
}

/* --- Buton Stilleri --- */
.btn-primary {
    background-color: var(--afk-dark);
    border-color: var(--afk-dark);
    transition: all 0.3s ease;
}

    .btn-primary:hover,
    .btn-primary:active,
    .btn-primary:focus {
        background-color: var(--afk-mid) !important; /* Hoverda canlı tona dön */
        border-color: var(--afk-mid) !important;
        transform: translateY(-2px); /* Hafif yukarı kalkma */
    }

.btn-outline-primary {
    color: var(--afk-dark);
    border-color: var(--afk-dark);
}

    .btn-outline-primary:hover {
        background-color: var(--afk-dark);
        border-color: var(--afk-dark);
        color: #fff;
    }

/* ==========================================================================
   3. NAVBAR (Menü) & GLASSMORPHISM
   ========================================================================== */
#mainNav {
    background: rgba(255, 255, 255, 0.92); /* Hafif şeffaf beyaz */
    backdrop-filter: blur(0.625rem); /* 10px bulanıklık */
    -webkit-backdrop-filter: blur(0.625rem);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 0.25rem 1.875rem rgba(0, 0, 0, 0.03);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
}

    /* Logo Alanı */
    #mainNav .navbar-brand {
        font-weight: 700;
        color: var(--afk-dark);
        letter-spacing: -0.03rem;
        display: flex;
        align-items: center;
    }

    #mainNav .logo-img {
        transition: transform 0.3s ease;
    }

    #mainNav .navbar-brand:hover .logo-img {
        transform: scale(1.05);
    }

    /* Menü Linkleri */
    #mainNav .nav-link {
        color: var(--nav-text);
        font-weight: 500;
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
        transition: color 0.2s ease;
    }

        #mainNav .nav-link:hover,
        #mainNav .nav-link.active {
            color: var(--nav-hover); /* Canlı Turkuaz */
        }

/* ==========================================================================
   4. HAMBURGER MENÜ (Animasyonlu)
   ========================================================================== */
.navbar-toggler {
    border: none;
    padding: 0;
    width: 1.875rem; /* 30px */
    height: 1.5rem; /* 24px */
    position: relative;
    outline: none !important;
    box-shadow: none !important;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 0.1875rem; /* 3px */
    background-color: var(--hamburger-color);
    border-radius: 0.1875rem;
    position: absolute;
    transition: all 0.3s ease-in-out;
}

    .hamburger-icon span:nth-child(1) {
        top: 0;
    }

    .hamburger-icon span:nth-child(2) {
        top: 0.625rem;
    }
    /* 10px */
    .hamburger-icon span:nth-child(3) {
        top: 1.25rem;
    }
/* 20px */

/* Açılma Animasyonu (X şekli) */
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    top: 0.625rem;
    transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    top: 0.625rem;
    transform: rotate(-45deg);
}

/* ==========================================================================
   5. DROPDOWN VE MOBİL NAVİGASYON
   ========================================================================== */
.dropdown-menu {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.1);
    margin-top: 0.625rem !important;
    animation: slideUp 0.3s ease;
}

.dropdown-item {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    color: var(--nav-text);
}

    .dropdown-item:hover {
        background-color: var(--afk-mid);
        color: #fff;
    }

/* Mobil Ekranlar (991px altı) */
@media (max-width: 62rem) {
    .navbar-collapse {
        background: #fff;
        padding: 1.25rem;
        margin-top: 0.9375rem;
        border-radius: 0.75rem;
        box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.08);
        text-align: center;
    }

    .dropdown-menu {
        box-shadow: none;
        border: 1px solid #eee;
        background-color: #f9f9f9;
        text-align: center;
    }

    #mainNav .nav-link {
        padding: 0.75rem 0;
        font-size: 1.1rem;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(0.625rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   6. HEADER & HERO BÖLÜMÜ (Keskin Gradyan)
   ========================================================================== */
.hero-section {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

/* KESKİN GEÇİŞLİ GRADYAN */
/* HTML'de class="hero-gradient" olarak kullanın */
.hero-gradient {
    background: linear-gradient( 135deg, var(--afk-deep) 0%, /* En koyu başla */
    var(--afk-dark) 45%, /* Ortaya kadar koyu gel */
    var(--afk-light) 100% /* Sonunda iyice açıl */
    ) !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    z-index: 2;
    position: relative;
}

/* Eski class desteği (eğer kullanılıyorsa) */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--afk-deep) 0%, var(--afk-light) 100%);
}

/* ==========================================================================
   7. DİĞER BİLEŞENLER (Footer, Slider, Tablar)
   ========================================================================== */

/* Footer */
.footer-custom {
    background-color: var(--afk-deep);
    color: var(--text-white);
    padding: 1.25rem 0;
    margin-top: auto; /* Sticky footer için */
}

    .footer-custom a {
        color: #ddd;
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer-custom a:hover {
            color: var(--afk-mid);
        }

/* Anasayfa Tab Butonları */
#urunTabList button:hover {
    transform: translateY(-0.3125rem);
    background-color: #fff;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.1);
}

#urunTabList button.active {
    background-color: var(--afk-dark) !important;
    color: #fff !important;
    transform: scale(1.05);
}

    #urunTabList button.active i {
        color: #fff !important;
    }

/* İndirme Sayfası Kartları */
.search-item .card {
    text-align: center;
}

.search-item .btn {
    width: 50% !important;
    padding: 0.4rem 0.5rem !important;
    font-size: 0.9rem !important;
    margin: 0.5rem auto 0 auto;
    display: inline-flex;
}

/* Resim Kutuları ve Oranlar */
.download-logo-box {
    height: 10rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.5rem;
}

.reference-logo-box {
    height: 6rem;
    display: flex;  
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.5rem;
}
.download-ratio-img {
    aspect-ratio: 2/1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;

}
.reference-ratio-img {
    height: 5rem;
    aspect-ratio: 3/2;
    object-fit: contain;
    width: auto;
}

.product-ratio-box {
    width: 12em;
    aspect-ratio: 1/1;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.product-ratio-img {
    object-fit: cover;
    max-width: 80%;
    max-height: 80%;
    padding: 20px;
}

.about-ratio-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    object-position: center;
    border-radius: 0.5rem;
}

.slider-ratio-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
}

/* Referans Kartları */
.reference-card {
    transition: transform 0.3s;
}

    .reference-card:hover {
        transform: translateY(-0.3125rem);
        box-shadow: 0 0.625rem 1.25rem rgba(0,0,0,0.1) !important;
    }

.grayscale-img {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s;
}

.reference-card:hover .grayscale-img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Slider Okları */
.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0.8;
    z-index: 10;
    cursor: pointer;
}

@media (max-width: 48rem) {
    .carousel-control-prev, .carousel-control-next {
        width: 15%;
    }

    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(0.3125rem);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    background-size: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--afk-mid);
    transform: scale(1.1);
}

/* ==========================================================================
   8. ALPEMIX CANLI DESTEK ÖZELLEŞTİRME
   ========================================================================== */
/* Alpemix varsayılan MAVİ rengini bizim --afk-dark rengine çevirir */

#apx_chat_btn,
div[id^="apx_"],
.apx_chat_btn_container {
    background-color: #16343f !important;
    border-color: #16343f !important;
    background-image: none !important;
}

    #apx_chat_btn img,
    div[id^="apx_"] img {
        filter: brightness(0) invert(1) !important;
    }

#apx_win_header,
div[id*="header"],
.apx_win_title {
    background-color: #16343f !important;
}

#apx_chat_btn:hover,
div[id^="apx_"]:hover {
    background-color: #204d59 !important;
    cursor: pointer !important;
}