/* Disseny i Estils per a "Els millors àlbums de jazz" */

:root {
    --jazz-gold: #f59e0b;
    --jazz-gold-hover: #d97706;
    --jazz-dark: #0f172a;
    --jazz-dark-surface: #1e293b;
    --jazz-text-muted: #64748b;
    --jazz-bg: #f8fafc;
    --jazz-border: #e2e8f0;
}

body.site-body {
    background-color: var(--jazz-bg);
    color: #1e293b;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.jazz-navbar {
    background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
    border-bottom: 2px solid rgba(245, 158, 11, 0.4);
}

.brand-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.brand-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #f8fafc;
}

/* Hero Banner */
.jazz-hero {
    background: linear-gradient(135deg, #090d16 0%, #1e293b 60%, #292524 100%);
    border-radius: 1rem;
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.jazz-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    color: #fbbf24;
    font-weight: 700;
}

/* Rànquing Badges */
.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35);
}

.rank-badge.top-3 {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

/* Taula d'àlbums */
.jazz-table {
    border-collapse: separate;
    border-spacing: 0;
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.jazz-table thead th {
    background-color: #0f172a;
    color: #f8fafc;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1rem;
    border-bottom: 2px solid var(--jazz-gold);
}

.jazz-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.15s ease-in-out;
}

.jazz-table tbody tr:hover td {
    background-color: #f8fafc;
}

.album-thumb {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.375rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    background-color: #e2e8f0;
}

.album-title-cell {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #0f172a;
}

/* Fitxa de Detall */
.detall-card {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--jazz-gold);
}

.detall-titol {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.detall-artista {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: #b45309;
    font-weight: 400;
}

.detall-divider {
    height: 2px;
    background: linear-gradient(to right, rgba(245, 158, 11, 0.5), rgba(226, 232, 240, 0.8), transparent);
    border: none;
    margin: 1.75rem 0;
}

.detall-portada-sticky {
    position: relative;
}

@media (min-width: 992px) {
    .detall-portada-sticky {
        position: sticky;
        top: 90px;
    }
}

.detall-portada {
    border-radius: 1rem;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detall-portada:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 45px -10px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(245, 158, 11, 0.3);
}

.detall-portada-placeholder {
    aspect-ratio: 1 / 1;
    max-width: 380px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 1rem;
}

.portada-card-info {
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.comentari {
    font-family: 'Cormorant Infant', Georgia, serif;
    font-size: 1.25rem;
    line-height: 1.7;
    color: #334155;
    background-color: #fdfaf4;
    border-left: 4px solid #f59e0b;
    border-radius: 0 0.5rem 0.5rem 0;
    padding: 1.5rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.comentari p {
    margin-bottom: 1rem;
}

.comentari p:last-child {
    margin-bottom: 0;
}

.comentari a {
    color: #b45309;
    text-decoration: underline;
}

.comentari a:hover {
    color: #d97706;
}

.interprets-box {
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
}

/* Formularis */
.jazz-form-card {
    border-radius: 1rem;
    overflow: hidden;
}

.jazz-form-card .form-control:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 0.25rem rgba(245, 158, 11, 0.25);
}

/* Footer */
.jazz-footer {
    background-color: #090d16;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    margin-top: auto;
}

.jazz-footer a {
    color: #f59e0b;
    text-decoration: none;
    transition: color 0.15s;
}

.jazz-footer a:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Utilitats */
.no_deco {
    text-decoration: none !important;
}

a {
    text-decoration: none;
}

/* Editor de Text Enriquit (Quill) */
.ql-toolbar.ql-snow {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    background-color: #f8fafc;
    border-color: #cbd5e1;
    font-family: inherit;
}

.ql-container.ql-snow {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    background-color: #ffffff;
    border-color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.7;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.ql-editor {
    min-height: 220px;
    font-family: inherit;
    line-height: 1.7;
}

.ql-editor p {
    margin-bottom: 0.85rem;
}

.ql-snow.ql-toolbar button:hover,
.ql-snow .ql-toolbar button:hover,
.ql-snow.ql-toolbar button:focus,
.ql-snow .ql-toolbar button:focus,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-toolbar button.ql-active {
    color: #d97706;
}

.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow .ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke,
.ql-snow .ql-toolbar button.ql-active .ql-stroke {
    stroke: #d97706;
}