/**
 * Histórias da Nina - Estilos Públicos
 * Visual: infantil premium, acolhedor, responsivo
 */

:root {
    --navy: #1a1a2e;
    --navy-light: #252545;
    --lilac: #a78bfa;
    --lilac-soft: #ede9fe;
    --warm: #f4a261;
    --warm-soft: #fde68a;
    --cream: #fff8f0;
    --text: #2d2d44;
    --text-light: #6b7280;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: rgba(26, 26, 46, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff !important;
}

.brand-icon {
    font-size: 1.6rem;
}

.nav-link {
    font-weight: 500;
    color: rgba(255,255,255,0.8) !important;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--warm) !important;
}

.search-input {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 12px 0 0 12px;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.btn-search {
    background: var(--warm);
    border: none;
    color: var(--navy);
    border-radius: 0 12px 12px 0;
    font-weight: 600;
}

.btn-search:hover {
    background: var(--warm-soft);
}

/* Hero */
.hero {
    padding: 4rem 1rem 3rem;
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero .lead {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

/* Main */
main {
    flex: 1;
    background: var(--cream);
    border-radius: 24px 24px 0 0;
    margin-top: -1rem;
    padding-top: 3rem;
}

main h2 {
    color: var(--navy);
    font-weight: 700;
}

/* Story Cards */
.story-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    border: none;
    overflow: hidden;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 26, 46, 0.12);
}

.story-card .card-body {
    padding: 1.5rem;
}

.category-badge {
    display: inline-block;
    background: var(--lilac-soft);
    color: var(--lilac);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.story-card .card-title {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.4;
}

.story-card .card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.btn-card {
    background: var(--navy);
    color: #fff;
    border-radius: 12px;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-card:hover {
    background: var(--lilac);
    color: #fff;
}

/* Story Article */
.story-article {
    background: #fff;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(26, 26, 46, 0.08);
}

.story-title {
    color: var(--navy);
    font-weight: 800;
    font-size: 2rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.story-meta .badge {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    margin-right: 0.5rem;
}

.audio-player {
    background: var(--lilac-soft);
    border-radius: 16px;
    padding: 1rem;
}

.audio-player audio {
    border-radius: 12px;
}

.story-content {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text);
}

.story-content p {
    margin-bottom: 1.5rem;
}

.alert-warning-soft {
    background: var(--warm-soft);
    border: none;
    border-radius: 16px;
    color: var(--navy);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.6);
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 0.25rem;
    color: #fff;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero .lead {
        font-size: 1rem;
    }
    .story-article {
        padding: 1.5rem;
    }
    .story-title {
        font-size: 1.5rem;
    }
    .story-content {
        font-size: 1rem;
    }
}
