/* ===================================================
   Radio Chocolat — Custom Styles
   Paleta: Chocolate escuro + Dourado
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

/* ─── CSS Variables ─────────────────────────────── */
:root {
    --bg-dark: #1a0800;
    --bg-surface: #2a0e00;
    --bg-card: #321200;
    --bg-navbar: #1a0800ee;
    --primary: #3d1a00;
    --gold: #c8832a;
    --gold-light: #f0b040;
    --gold-glow: #f0b04044;
    --text-primary: #fff8f0;
    --text-muted: #c8a882;
    --border-color: #5a3010;
    --player-bg: #0f0400;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

/* ─── Base ──────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Lora', serif;
    color: var(--text-primary);
}

a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color .2s;
}

a:hover {
    color: #fff;
}

/* ─── Player Bar ─────────────────────────────────── */
#player-bar {
    background: var(--player-bg);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1050;
    box-shadow: 0 4px 20px rgba(200, 131, 42, 0.3);
}

#player-bar iframe {
    display: block;
    width: 100%;
    border: none;
}

/* ─── Navbar ─────────────────────────────────────── */
.navbar-chocolat {
    background: var(--bg-navbar);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: .6rem 1rem;
}

.navbar-chocolat .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gold-light) !important;
}

.navbar-chocolat .navbar-brand img {
    height: 192px;
    width: 192px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid var(--gold);
}

.navbar-chocolat .nav-link {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: .9rem;
    padding: .4rem .85rem !important;
    border-radius: 6px;
    transition: all .2s;
}

.navbar-chocolat .nav-link:hover,
.navbar-chocolat .nav-link.active {
    color: var(--gold-light) !important;
    background: rgba(200, 131, 42, 0.12);
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c8832a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ─── Hero ───────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, #1a0800 0%, #3d1a00 50%, #1a0800 100%);
    position: relative;
    overflow: hidden;
    padding: 3rem 0 2.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 60%, rgba(200, 131, 42, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    overflow: hidden;
    line-height: 0;
}

.hero-waves svg {
    width: 100%;
    height: 60px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gold-light);
    text-shadow: 0 0 30px rgba(240, 176, 64, 0.4);
    margin-bottom: .25rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: .04em;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(200, 131, 42, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    padding: .3rem .75rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e74c3c;
    animation: pulse-dot 1.4s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .4;
        transform: scale(0.7);
    }
}

/* ─── Section Titles ─────────────────────────────── */
.section-title {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border-color);
}

.section-title .icon {
    font-size: 1.4rem;
}

/* ─── News Cards ─────────────────────────────────── */
.news-section {
    padding: 2.5rem 0;
}

.news-section+.news-section {
    border-top: 1px solid var(--border-color);
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(200, 131, 42, 0.25);
    border-color: var(--gold);
}

.news-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: var(--bg-surface);
}

.news-card-img-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--bg-surface), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--gold);
    opacity: .5;
}

.news-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    font-size: .72rem;
    color: var(--text-muted);
    margin-bottom: .4rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
}

.news-card-meta .source-badge {
    background: rgba(200, 131, 42, 0.18);
    color: var(--gold-light);
    padding: .1rem .45rem;
    border-radius: 4px;
    font-weight: 600;
}

.news-card-title {
    font-family: 'Lora', serif;
    font-size: .95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: .5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-desc {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: .75rem;
}

.news-card-link {
    font-size: .78rem;
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .2s, gap .2s;
    margin-top: auto;
}

.news-card-link:hover {
    color: var(--gold-light);
    gap: 8px;
}

/* ─── News Loading / Error States ────────────────── */
.news-loading,
.news-error {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: .95rem;
}

.news-loading .spinner-border {
    color: var(--gold);
    width: 2rem;
    height: 2rem;
}

.news-refresh-info {
    font-size: .75rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: .5rem;
    opacity: .7;
}

/* ─── Music Style Banner ─────────────────────────── */
.style-banner {
    background: linear-gradient(90deg, var(--bg-surface), var(--primary), var(--bg-surface));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.style-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(200, 131, 42, 0.04) 10px,
            rgba(200, 131, 42, 0.04) 20px);
}

.style-banner h3 {
    color: var(--gold-light);
    font-size: 1.1rem;
    margin-bottom: .5rem;
    position: relative;
}

.style-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    position: relative;
}

.style-tag {
    background: rgba(200, 131, 42, 0.15);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    padding: .3rem .75rem;
    border-radius: 20px;
    font-size: .78rem;
    font-weight: 500;
    transition: background .2s;
}

.style-tag:hover {
    background: rgba(200, 131, 42, 0.3);
}

/* ─── About / Sidebar ────────────────────────────── */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.sidebar-card h4 {
    color: var(--gold-light);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border-color);
}

/* ─── Footer ─────────────────────────────────────── */
#footer {
    background: var(--player-bg);
    border-top: 2px solid var(--gold);
    padding: 2.5rem 0 1rem;
    margin-top: 3rem;
}

#footer .footer-logo {
    height: 56px;
    margin-bottom: .5rem;
}

#footer .footer-brand {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    color: var(--gold-light);
    font-weight: 700;
}

#footer .footer-tagline {
    font-size: .82rem;
    color: var(--text-muted);
    font-style: italic;
}

#footer h6 {
    color: var(--gold);
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .75rem;
}

#footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer ul li {
    margin-bottom: .4rem;
}

#footer ul li a {
    color: var(--text-muted);
    font-size: .85rem;
    transition: color .2s;
}

#footer ul li a:hover {
    color: var(--gold-light);
}

.footer-divider {
    border-color: var(--border-color);
    opacity: 1;
    margin: 1.5rem 0 1rem;
}

.footer-bottom {
    font-size: .78rem;
    color: var(--text-muted);
    text-align: center;
}

.footer-bottom a {
    color: var(--gold);
}

/* ─── Scrollbar ──────────────────────────────────── */
::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ─── Utilities ──────────────────────────────────── */
.text-gold {
    color: var(--gold-light) !important;
}

.bg-dark-surface {
    background: var(--bg-surface);
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    #player-bar iframe {
        height: 140px !important;
    }

    .news-section {
        padding: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .navbar-chocolat .navbar-brand {
        font-size: 1rem;
    }

    .navbar-chocolat .navbar-brand img {
        height: 152px;
        width: 152px;
    }
}