/* Salsografía Styles - Enciclopedia de la Salsa */
:root {
    --sg-primary: #a82020;
    --sg-primary-hover: #8e1a1a;
    --sg-secondary: #c98b2c;
    --sg-dark: #1b1c1e;
    --sg-light: #f8f9fa;
    --sg-border: #e9ecef;
    --sg-text-muted: #6c757d;
    --sg-card-bg: #ffffff;
    --sg-badge-bg: #fdf2e9;
    --sg-badge-text: #b05309;
}

body, .salsografia-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sg-hero {
    background: linear-gradient(135deg, #1c1d21 0%, #301818 50%, #4a1515 100%);
    color: #ffffff;
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.sg-hero::after {
    content: "♪ ♫ ♩ ♬";
    position: absolute;
    right: 20px;
    bottom: -20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    line-height: 1;
}

.sg-hero-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.sg-hero-slogan {
    font-size: 1.25rem;
    color: #e2c07c;
    font-weight: 400;
    margin-bottom: 1.75rem;
}

.sg-search-box {
    max-width: 650px;
    position: relative;
}

.sg-search-input {
    height: 52px;
    font-size: 1.05rem;
    border-radius: 26px !important;
    padding-left: 20px;
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.sg-search-btn {
    border-radius: 26px !important;
    padding-left: 24px;
    padding-right: 24px;
    font-weight: 600;
}

.sg-stat-card {
    background: #ffffff;
    border: 1px solid var(--sg-border);
    border-radius: 10px;
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}

.sg-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.sg-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--sg-primary);
    line-height: 1.1;
}

.sg-stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--sg-text-muted);
    letter-spacing: 0.5px;
}

.sg-card {
    background: #ffffff;
    border: 1px solid var(--sg-border);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.sg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.sg-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #23272b;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    overflow: hidden;
}

.sg-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sg-card:hover .sg-card-img {
    transform: scale(1.04);
}

.sg-card-body {
    padding: 1.25rem;
}

.sg-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--sg-dark);
}

.sg-card-subtitle {
    font-size: 0.9rem;
    color: var(--sg-text-muted);
    margin-bottom: 0.5rem;
}

.sg-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    background-color: #f1f3f5;
    color: #495057;
    text-decoration: none;
    margin-right: 4px;
    margin-bottom: 4px;
    transition: background-color 0.15s ease;
}

.sg-badge:hover {
    background-color: #e9ecef;
    color: #212529;
}

.sg-badge-genre {
    background-color: #e8f4fd;
    color: #1864ab;
}

.sg-badge-genre:hover {
    background-color: #d0ebff;
    color: #1864ab;
}

.sg-badge-role {
    background-color: #fff4e6;
    color: #d9480f;
}

.sg-badge-instrument {
    background-color: #ebfbee;
    color: #2b8a3e;
}

.sg-nav-tabs {
    border-bottom: 2px solid var(--sg-border);
    margin-bottom: 1.5rem;
}

.sg-nav-tabs .nav-link {
    font-weight: 600;
    color: var(--sg-text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.25rem;
    margin-bottom: -2px;
}

.sg-nav-tabs .nav-link.active {
    color: var(--sg-primary);
    background: transparent;
    border-bottom-color: var(--sg-primary);
}

.sg-credit-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--sg-border);
    transition: background-color 0.15s ease;
}

.sg-credit-item:last-child {
    border-bottom: none;
}

.sg-credit-item:hover {
    background-color: #f8f9fa;
}

.sg-credit-person {
    font-weight: 600;
    flex: 1;
}

.sg-credit-role {
    flex: 1;
    color: var(--sg-text-muted);
}

.sg-credit-extra {
    font-size: 0.85rem;
    color: #868e96;
}

.sg-tracklist-table {
    margin-bottom: 0;
}

.sg-tracklist-table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--sg-text-muted);
    border-top: none;
}

.sg-tracklist-table td {
    vertical-align: middle;
}

.sg-btn-stream {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-right: 6px;
    margin-bottom: 6px;
}

.sg-btn-spotify {
    background-color: #1db954;
    color: #ffffff !important;
}

.sg-btn-youtube {
    background-color: #ff0000;
    color: #ffffff !important;
}

.sg-btn-apple {
    background-color: #fc3c44;
    color: #ffffff !important;
}

.sg-btn-deezer {
    background-color: #ff0092;
    color: #ffffff !important;
}

.sg-source-box {
    background: #fdfdfd;
    border: 1px solid var(--sg-border);
    border-left: 4px solid var(--sg-primary);
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.sg-entity-header {
    background: #ffffff;
    border: 1px solid var(--sg-border);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.sg-entity-avatar {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    object-fit: cover;
    background: #343a40;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sg-entity-avatar-circle {
    border-radius: 50% !important;
}
