/* ============================================
   ENGELSIZ YASAM - CUSTOM CSS (Minimal)
   ============================================ */

/* === GLOBAL === */
.auth-gradient {
    background: linear-gradient(135deg, #7a1350 0%, #ff4fa2 40%, #ffb347 100%);
}

[v-cloak] {
    display: none !important;
}

:root {
    --kids-primary: #b41e8e;
}
a.text-primary {
    color: #0b5ed7 !important;
}

.text-muted {
    color: #616161 !important;
}

/* === PRELOADER === */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    background-color: #f4f6f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade {
    opacity: 0;
    visibility: hidden;
}

.animation__shake {
    animation: shake 1.5s infinite;
}

@keyframes shake {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }
    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }
    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }
    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }
    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }
    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }
    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }
    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }
    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }
    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }
    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

/* === DASHBOARD - Hero === */
.kids-hero-card {
    background: linear-gradient(120deg, #9c1a6e, #e91e63, #ff9800);
}

@keyframes kids-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}
.kids-icon-bounce {
    animation: kids-bounce 2s infinite;
}

/* === DASHBOARD - Özet Kartları (Sadece gradient + overlay) === */
.kids-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(
            circle at 10% 20%,
            #fff 0,
            transparent 50%
        ),
        radial-gradient(circle at 80% 0%, #fff 0, transparent 55%),
        radial-gradient(circle at 0% 100%, #fff 0, transparent 45%);
    pointer-events: none;
}

/* Koyu gradient renkler */
.kids-card-sun {
    background: linear-gradient(135deg, #f57c00, #ef6c00, #e65100);
}
.kids-card-forest {
    background: linear-gradient(135deg, #43a047, #388e3c, #2e7d32);
}
.kids-card-ocean {
    background: linear-gradient(135deg, #00acc1, #0097a7, #00838f);
}
.kids-card-candy {
    background: linear-gradient(135deg, #ec407a, #e91e63, #c2185b);
}

/* === DASHBOARD - Hızlı Erişim Hover === */
.kids-quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12) !important;
}

/* İkon wrapper renkleri */
.icon-bg-pink {
    background: #fce4ec;
    color: var(--kids-primary);
}
.icon-bg-sun {
    background: #fff3cd;
    color: #e65100;
}
.icon-bg-ocean {
    background: #e0f7fa;
    color: #00838f;
}
.icon-bg-forest {
    background: #e8f5e9;
    color: #2e7d32;
}
.icon-bg-purple {
    background: #ede7f6;
    color: #5e35b1;
}
.icon-bg-soft {
    background: #f3e5f5;
    color: var(--kids-primary);
}

/* Duyuru ikon renkleri */
.icon-bg-blue {
    background: #e3f2fd;
    color: #1565c0;
}
.icon-bg-green {
    background: #e8f5e9;
    color: #2e7d32;
}
.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.icon-badge--sm {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
}

/* Badge renkleri */
.kids-badge-sunshine {
    background: #ffca28;
    color: #5d4200;
}
.kids-badge-ocean {
    background: #4dd0e1;
    color: #004d5a;
}
.kids-badge-candy {
    background: #f48fb1;
    color: #6a1039;
}

/* ============================================
   KİTAP & MASAL KÖŞESİ
   ============================================ */
.bg-books-page {
    background: radial-gradient(
        circle at top left,
        #ffe8f0 0,
        #fff3d8 30%,
        #e9f1ff 70%,
        #fff 100%
    );
}

.books-title {
    font-size: clamp(1.9rem, 2.6vw, 2.4rem);
    letter-spacing: 0.03em;
}

.books-hero-card {
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #6a4cff, #e91e9a);
    min-height: 190px;
    box-shadow: 0 14px 35px rgba(75, 72, 150, 0.4);
}

.hero-circle {
    position: absolute;
    border-radius: 999px;
    opacity: 0.5;
}
.hero-circle-1 {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.25);
    top: -25px;
    left: -15px;
}
.hero-circle-2 {
    width: 80px;
    height: 80px;
    background: rgba(255, 236, 175, 0.9);
    bottom: -10px;
    right: 20px;
}
.hero-circle-3 {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    top: 20px;
    right: 80px;
}

.book-card {
    border-radius: 1.5rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(62, 80, 150, 0.22);
}

.book-ribbon {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    z-index: 1;
}

.book-img-wrapper {
    border-radius: 1rem;
    overflow: hidden;
    background: #f4f4ff;
}
.book-img {
    max-height: 190px;
    object-fit: cover;
    transition: transform 0.25s ease;
}
.book-card:hover .book-img {
    transform: scale(1.05);
}
.book-desc {
    line-height: 1.4;
    max-height: 3.6em;
    overflow: hidden;
}

.bg-soft-purple {
    background: #efe9ff;
    color: #433793;
}
.bg-soft-green {
    background: #e5f7e8;
    color: #1f7b3e;
}
.bg-soft-blue {
    background: #e3f0ff;
    color: #245d9b;
}

/* SIDEBAR LOGO — Bootstrap-friendly utility class */
.sidebar-logo {
    max-height: 128px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ============================================
   MASAL OKUMA SAYFASI
   ============================================ */
#flipbook-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}
#flipbook {
    width: 100%;
    height: 70vh;
}

.book-stage {
    background: #f8f9fa;
    background-image: radial-gradient(#dee2e6 1px, transparent 1px);
    background-size: 20px 20px;
    min-height: 55vh;
}

.start-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 10;
}

@keyframes float-anim {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
.float-animation {
    animation: float-anim 2s ease-in-out infinite;
}

@keyframes pulse-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 193, 7, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}
.pulse-effect {
    animation: pulse-anim 2s infinite;
}

/* === MOBİL === */
@media (max-width: 768px) {
    .books-title {
        font-size: 1.7rem;
    }
    .books-hero-card {
        min-height: 170px;
    }
    .book-img {
        max-height: 170px;
    }
}
@media (max-width: 576px) {
    #flipbook {
        height: 55vh;
    }
}
@media (prefers-reduced-motion: reduce) {
    .book-card,
    .book-img {
        transition: none;
    }
    .kids-icon-bounce,
    .float-animation,
    .pulse-effect {
        animation: none;
    }
}

/* === CALENDAR (minimal) === */
.bg-calendar-page {
    background: radial-gradient(
            circle at 10% 0%,
            rgba(255, 193, 7, 0.2),
            transparent 55%
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(13, 202, 240, 0.18),
            transparent 50%
        ),
        radial-gradient(
            circle at 25% 90%,
            rgba(220, 53, 69, 0.16),
            transparent 55%
        ),
        radial-gradient(
            circle at 60% 60%,
            rgba(111, 66, 193, 0.14),
            transparent 55%
        ),
        #ffffff;
}

/* Takvim tablo düzeni */
.table-calendar {
    table-layout: fixed;
}
.calendar-cell {
    min-height: 128px;
}

/* Etkinlik ikon kutusu */
.cal-ic {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
}

/* Küçük hover */
.cal-event-btn {
    white-space: normal;
    transition: transform 0.12s ease, filter 0.12s ease;
}
.cal-event-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

@media (max-width: 576px) {
    .calendar-cell {
        min-height: 98px;
    }
    .cal-ic {
        width: 44px;
        height: 44px;
    }
    .table-calendar {
        min-width: 840px;
    }
    .cal-event-btn {
        font-size: 0.78rem;
    }
}

/* ============================================
   MASAL OKUMA ODASI - UI POLISH (Bootstrap-first)
   (No inline styles, minimal additions)
   ============================================ */
.read-ic {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.read-progress {
    height: 10px;
    max-width: 340px;
}

.read-clickable {
    cursor: pointer;
    user-select: none;
}

@media (max-width: 576px) {
    .read-ic {
        width: 44px;
        height: 44px;
    }
}

/* Utility (used on reading stage) */
.border-dashed {
    border-style: dashed !important;
}

/* ============================================
   EĞİTMENLER SAYFASI (Minimal)
   ============================================ */

/* Sayfa arka planı - Bootstrap karşılığı yok */
.bg-trainers-page {
    background: radial-gradient(
            circle at 10% 0%,
            rgba(255, 193, 7, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(13, 202, 240, 0.16),
            transparent 50%
        ),
        radial-gradient(
            circle at 15% 85%,
            rgba(220, 53, 69, 0.14),
            transparent 55%
        ),
        radial-gradient(
            circle at 70% 70%,
            rgba(111, 66, 193, 0.12),
            transparent 55%
        ),
        #ffffff;
}

/* Kart hover efekti - Bootstrap karşılığı yok */
.teacher-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.teacher-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}

/* Profil fotoğrafı boyutu (responsive) */
.teacher-photo {
    width: 72px;
    height: 72px;
}
@media (max-width: 576px) {
    .teacher-photo {
        width: 60px;
        height: 60px;
    }
}
a.text-primary {
    color: #0b5ed7 !important;
}

.text-muted {
    color: #616161 !important;
}

.bg-info {
    background-color: #087990 !important;
    color: #fff !important;
}

.badge.bg-info {
    color: #ffffff !important;
}
.min-vh-75 {
    min-height: 75vh !important;
}

.bg-opacity-25 {
    --bs-bg-opacity: 0.25;
}