/* 1. DEĞİŞKENLER VE GLOBAL AYARLAR */
:root {
    --barbo-yellow: #FFCC00;
    --barbo-orange: #FF8C00;
    --barbo-white: #FFFFFF;
    --barbo-dark: #333333;
    --barbo-bg: #FFFDF5; /* Göz yormayan krem arka plan */
    --barbo-shadow: 0 6px 15px rgba(0,0,0,0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Mobilde tıklama gölgesini siler */
}

body {
    font-family: 'Fredoka', sans-serif !important;
    background-color: var(--barbo-bg);
    overflow-x: hidden;
    color: var(--barbo-dark);
    line-height: 1.4;
}

/* 2. ÜST BAŞLIK (HEADER) */
.app-header {
    height: 70px; /* Biraz daha geniş ve ferah */
    background: linear-gradient(135deg, var(--barbo-yellow), var(--barbo-orange));
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.logo { height: 65px; }

#user-status {
    background: var(--barbo-white);
    color: var(--barbo-orange);
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 800;
    font-size: 16px; /* Çocuklar için net okunur */
    box-shadow: 0 4px 0px #E6B800; /* Çizgi film tarzı derinlik */
}

/* 3. KARAKTER ŞERİDİ (BÖLÜMLER) */
#character-filter-section {
    display: none;
    padding: 25px 5px;
    background: #FFF9E6;
    border-bottom: 4px solid var(--barbo-yellow);
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: 70px;
}

#character-filter-section::-webkit-scrollbar { display: none; }

.char-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 95px; /* Daha geniş dokunma alanı */
    margin: 0 8px;
    cursor: pointer;
    vertical-align: top;
}

.char-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--barbo-yellow);
    background: radial-gradient(circle, #FFEB3B, #FFC107); /* İkon arkası sarı parıltı */
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: var(--barbo-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.char-circle img { 
    width: 90%; 
    height: 90%; 
    object-fit: contain; 
}

.char-card span {
    font-family: 'Fredoka', sans-serif;
    font-size: 18px; /* Büyük ve net isimler */
    font-weight: 800;
    color: var(--barbo-orange);
    text-shadow: 1px 1px 0px white;
}

.char-card:active .char-circle {
    transform: scale(1.1) rotate(5deg);
}

/* 4. VİDEO LİSTESİ (GRID) */
#app-content {
    padding: 90px 15px 110px 15px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.video-card {
    background: #FFF9E6;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--barbo-shadow);
    border: 3px solid transparent;
    transition: 0.3s;
}

.video-card:active { 
    border-color: var(--barbo-orange); 
    transform: scale(0.96); 
}

.thumbnail-container { position: relative; width: 100%; aspect-ratio: 16/9; }
.thumbnail-container img { width: 100%; height: 100%; object-fit: cover; }

.premium-badge {
    position: absolute;
    top: 8px; right: 8px;
    background: #FFD700;
    color: #8B4513;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.video-info { padding: 12px; text-align: center; }
.video-info h3 { 
    font-size: 18px; /* Bölüm isimleri daha büyük */
    color: var(--barbo-dark);
    font-weight: 700;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

/* 5. ALT NAVİGASYON (FOOTER NAV) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 75px; /* Daha büyük butonlar için genişletildi */
    background: var(--barbo-white);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 5px solid var(--barbo-yellow);
    z-index: 2000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.08);
}

.bottom-nav div {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 800;
    font-size: 20px; /* Menü yazıları büyütüldü */
    gap: 5px;
}

.nav-icon { font-size: 32px; }

/* Menü Renkleri */
.nav-home { color: #FF5722; }
.nav-cats { color: #FFC107; }
.nav-profile { color: #4CAF50; }

/* 6. BUTONLAR VE MESAJLAR */
.btn-pay {
    width: 100%;
    background: linear-gradient(135deg, #FFCC00, #FF8C00);
    color: white;
    padding: 20px;
    border: none;
    border-radius: 20px;
    font-weight: 900;
    font-size: 20px; /* Ödeme butonu "bas bana" diyor */
    cursor: pointer;
    box-shadow: 0 6px 0px #CC7000;
    margin-bottom: 10px;
}

.info-box {
    border-radius: 18px;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

/* 7. PRELOADER */
.paw-icon {
    font-size: 100px;
    color: var(--barbo-orange);
    animation: rotatePaw 1.5s infinite ease-in-out;
}

@keyframes rotatePaw {
    0% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(15deg); }
    100% { transform: scale(1); }
}

.preloader-hidden { 
    opacity: 0; 
    visibility: hidden; 
    display: none !important; /* Bunu eklediğinden emin ol */
    transition: 0.5s; 
}