/* Modern Theme for Mor Elma Kütüphane - iOS/Android UYUMLU */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Poppins:wght@400;600;700&display=swap');

:root {
    --primary-color: #6C5DD3;
    --primary-dark: #5044a8;
    --secondary-color: #FFA4C8;
    --accent-color: #FF754C;
    --bg-light: #F9FAFB;
    --bg-dark: #1E1E2E;
    --navbar-bg: #2D1B4E;
    /* Mor tonu navbar */
    --text-dark: #2D3436;
    --text-light: #FFFFFF;
    --gold-color: #F59E0B;
    --gold-dark: #D97706;
    --gradient-gold: linear-gradient(135deg, #F59E0B, #FBBF24);
    --gradient-purple: linear-gradient(135deg, #6C5DD3, #8B5CF6);
}

/* ==================== iOS/SAFARI UYUMLULUK ==================== */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
}

/* ==================== STORYTEL TARZI NAVBAR ==================== */
.bg-dark {
    background-color: var(--navbar-bg) !important;
}

/* Navbar container - Storytel tarzı */
.w-100.bg-dark {
    background: linear-gradient(180deg, var(--navbar-bg) 0%, #1E1E2E 100%) !important;
    border-bottom: 1px solid rgba(108, 93, 211, 0.3) !important;
}

.navLink {
    color: var(--text-light) !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    padding: 8px 0 !important;
    position: relative;
}

/* Hover efekti - altı çizgi yok, renk değişimi */
.navLink:hover {
    color: var(--gold-color) !important;
    text-decoration: none !important;
}

/* ==================== ALTIN ÜYE OL BUTONU ==================== */
.btn-primary .navLink,
.btn-primary a,
.btn-primary a:hover,
.btn a {
    color: #1E1E2E !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

.btn-primary {
    background: var(--gradient-gold) !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FBBF24, #FCD34D) !important;
    transform: translateY(-2px) scale(1.03) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5) !important;
}

/* ==================== CAROUSEL - %40 YAVAŞLATILDI ==================== */
.scroll {
    overflow: hidden !important;
    width: 100% !important;
    display: block !important;
    background: white;
}

.animate-area {
    white-space: nowrap !important;
    overflow: hidden !important;
    padding: 30px 0 !important;
    width: 100% !important;
    display: block !important;
}

.animate-content,
.animate-content2 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 40px !important;
    width: max-content !important;
    min-width: 200% !important;
}

/* Animasyon hızı 60s -> 100s (yaklaşık %40 yavaş) */
.animate-content {
    animation: scrollLeft 100s linear infinite !important;
}

.animate-content2 {
    animation: scrollRight 100s linear infinite !important;
}

.animate-content a,
.animate-content2 a {
    display: block !important;
    flex: 0 0 auto !important;
    text-decoration: none !important;
    width: 180px !important;
}

.animate-item {
    width: 100% !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.4s ease !important;
}

.kayarImg {
    height: 240px !important;
    width: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.animate-item:hover {
    transform: translateY(-10px) scale(1.05) !important;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@-webkit-keyframes scrollLeft {
    0% {
        -webkit-transform: translateX(0);
    }

    100% {
        -webkit-transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

@-webkit-keyframes scrollRight {
    0% {
        -webkit-transform: translateX(-50%);
    }

    100% {
        -webkit-transform: translateX(0);
    }
}

/* ==================== 3 KUTU TASARIMI ==================== */
.box {
    background: var(--bg-dark) !important;
    border-radius: 20px !important;
    padding: 30px !important;
    height: auto !important;
    min-height: 220px !important;
    margin-bottom: 20px !important;
    transition: all 0.4s ease !important;
    position: relative !important;
    overflow: hidden !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.box:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(108, 93, 211, 0.3) !important;
}

/* Başlık - Büyük ve Ortalı */
.box .ust,
.box .display-6 {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: white !important;
    margin-bottom: 20px !important;
    text-align: center !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

/* Alt içerik - Masaüstünde hover'da görünür */
.box .alt {
    color: #e0e0e0 !important;
    font-size: 0.9rem !important;
    line-height: 1.7 !important;
    opacity: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: all 0.4s ease !important;
    text-align: center !important;
    padding: 0 10px !important;
}

/* Masaüstü: Hover'da içerik görünür */
.box:hover .alt {
    opacity: 1 !important;
    max-height: 200px !important;
}

/* Mobil: Tıklama ile açılır (active class ile) */
.box.active .alt {
    opacity: 1 !important;
    max-height: 200px !important;
}

/* Plus ikonu - Her zaman görünür, tıklanabilir */
.homePlus {
    transition: all 0.3s ease !important;
    color: var(--gold-color) !important;
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    z-index: 10 !important;
    cursor: pointer !important;
    font-size: 1.5rem !important;
}

/* Hover ve active durumunda + ikonu dönüşümü */
.box:hover .homePlus {
    transform: rotate(45deg) scale(1.2) !important;
    color: var(--secondary-color) !important;
}

/* Mobilde active olunca X'e dönüşür */
.box.active .homePlus {
    transform: rotate(45deg) scale(1.2) !important;
    color: #FF6B6B !important;
}

/* ==================== EDİTÖRÜN SEÇTİKLERİ ==================== */
#kitapCarousel {
    text-align: center;
}

/* Başlık ortalama */
.container-fluid h4.fs-1,
.bg-dark h4 {
    text-align: center !important;
    width: 100% !important;
}

/* ==================== ABONE PAKETLERİ HOVER ==================== */
.col-md-4 .bg-dark.rounded-3,
.col-sm-6 .bg-dark.rounded-3 {
    transition: all 0.4s ease !important;
    border: 2px solid transparent !important;
}

.col-md-4 .bg-dark.rounded-3:hover,
.col-sm-6 .bg-dark.rounded-3:hover {
    border-color: var(--primary-color) !important;
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(108, 93, 211, 0.4) !important;
}

.col-md-4 .btn-outline-light:hover,
.col-sm-6 .btn-outline-light:hover {
    background: var(--gradient-purple) !important;
    border-color: transparent !important;
    transform: scale(1.05) !important;
}

/* ==================== FOOTER ==================== */
footer {
    background-color: var(--bg-dark) !important;
}

footer h5 {
    color: var(--secondary-color) !important;
    margin-bottom: 20px !important;
}

footer a {
    color: #adb5bd !important;
    line-height: 2 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* ==================== MOBİL UYUMLULUK ==================== */
@media (max-width: 768px) {

    /* Mobilde içerik gizli - tıklayınca açılır */
    .box .alt {
        opacity: 0 !important;
        max-height: 0 !important;
        font-size: 0.85rem !important;
    }

    /* Tıklandığında açılır */
    .box.active .alt {
        opacity: 1 !important;
        max-height: 200px !important;
    }

    .box .ust,
    .box .display-6 {
        font-size: 1.4rem !important;
    }

    .container-fluid h4.fs-1 {
        font-size: 1.5rem !important;
    }

    /* Navbar mobil */
    .navLink {
        font-size: 0.9rem !important;
    }

    /* Mobilde hover efektini devre dışı bırak - sadece tıklama çalışsın */
    .box:hover .alt {
        opacity: 0 !important;
        max-height: 0 !important;
    }

    /* Sadece active olunca açılsın */
    .box.active .alt {
        opacity: 1 !important;
        max-height: 200px !important;
    }
}

/* ==================== TÜM BUTONLARIN ALT ÇİZGİSİ KALDIRILDI ==================== */
.btn a,
.btn a:hover,
.btn a:focus,
.btn a:active,
.btn a:visited,
button a,
button a:hover,
.btn-primary a,
.btn-primary a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* Genel link altı çizgi kaldırma */
a.navLink,
a.navLink:hover,
.container a,
.container a:hover {
    text-decoration: none !important;
}