@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --bg-1: #0b0b10;
    --bg-2: #12121a;
    --bg-3: #1a1a22;
    --accent-1: #ffffff;
    --accent-2: #9aa0a6;
    --chip-1: #6b7280; /* slate */
    --chip-2: #374151; /* gray-700 */
    --tint: rgba(255, 255, 255, 0.12);
    --tint-strong: rgba(255, 255, 255, 0.2);
}

body {
    background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

head {
    color: crimson;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.drake-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--chip-1), var(--chip-2));
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    font-family: 'Poppins', sans-serif;
}

.drake-button:hover {
    background: linear-gradient(45deg, var(--chip-2), var(--chip-1));
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
}

.drake-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 3px solid var(--tint);
}

.drake-image:hover {
    transform: scale(1.05);
    transition: 0.3s ease;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    border-color: var(--tint-strong);
}

p {
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
    margin: 20px 0;
    padding: 0 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #e8e8e8;
}

h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(45deg, #e5e7eb, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Botón de tema: diseño pill moderno */
#theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--chip-1), var(--chip-2));
    color: #ffffff;
    padding: 10px 18px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.3s ease;
}

#theme-toggle:hover {
    background: linear-gradient(45deg, var(--chip-2), var(--chip-1));
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.45);
}

#theme-toggle:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

#theme-toggle:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.35);
    outline-offset: 2px;
}

/* Ajustes en modo claro para que mantenga contraste y foco visible */
body.light-mode #theme-toggle {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

body.light-mode #theme-toggle:focus-visible {
    outline: 3px solid rgba(17, 17, 17, 0.25);
}

/* Icono y etiqueta dentro del botón */
#theme-toggle .icon {
    display: inline-block;
    transform: scale(1);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#theme-toggle.toggling .icon {
    transform: rotate(15deg) scale(1.1);
}

#theme-toggle .label {
    line-height: 1;
}

h2 {
    text-align: center;
    color: #ffffff;
    margin: 30px 0 15px 0;
    font-size: 1.8em;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

h3 {
    text-align: center;
    color: #e8e8e8;
    margin: 20px 0 10px 0;
    font-size: 1.4em;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.info-section {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--tint);
}

.album-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.album-list li {
    background: rgba(255, 255, 255, 0.07);
    margin: 8px 0;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.album-list li:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(5px);
    transition: 0.3s ease;
}

/* Sección de Canciones Populares */
.songs-section {
    margin: 50px 0;
    padding: 30px 0;
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.song-card {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--tint);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.song-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    border-color: var(--tint-strong);
}

.song-number {
    background: linear-gradient(45deg, var(--chip-1), var(--chip-2));
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    font-family: 'Poppins', sans-serif;
}

.song-info h3 {
    margin: 0 0 5px 0;
    font-size: 1.2em;
    color: #ffffff;
    font-weight: 600;
}

.song-info p {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    color: #e8e8e8;
    font-weight: 400;
}

.album-cover {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    margin-left: auto;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    border: 1px solid var(--tint);
    opacity: 1;
    transform: none;
}

.streams {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

/* Timeline de Carrera */
.timeline-section {
    margin: 50px 0;
    padding: 30px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #ff6b6b, #ee5a24);
    transform: translateX(-50%);
    border-radius: 2px;
} */

.timeline-item {
    position: relative;
    margin: 30px 0;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: linear-gradient(45deg, var(--chip-1), var(--chip-2));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.35);
    position: relative;
    z-index: 2;
    min-width: 80px;
    text-align: center;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 15px;
    padding: 20px;
    margin: 0 30px;
    border: 1px solid var(--tint);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex: 1;
    max-width: 300px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    border-color: var(--tint-strong);
}

.timeline-content h3 {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 1.3em;
    font-weight: 600;
}

.timeline-content p {
    margin: 0;
    color: #e8e8e8;
    font-size: 0.95em;
    line-height: 1.5;
    text-align: left;
}

/* Audio en timeline */
.timeline-content audio {
    width: 100%;
    margin-top: 12px;
}

body.light-mode {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #212529;
}

body.light-mode h1, body.light-mode h2, body.light-mode h3 {
    color: #212529;
}

/* Corregir h1 en modo claro: quitar gradiente recortado que vuelve el texto transparente */
body.light-mode h1 {
    background: none;
    -webkit-text-fill-color: initial;
    background-clip: border-box;
    text-shadow: none;
}

/* Textos generales en claro */
body.light-mode p,
body.light-mode .song-info p {
    color: #343a40;
}

body.light-mode .song-info h3,
body.light-mode .question-title,
body.light-mode .results-container h2 {
    color: #111111;
}

body.light-mode .song-card,
body.light-mode .timeline-content {
    background: rgba(255, 255, 255, 0.8);
    color: #212529;
    border-color: #dee2e6;
}

/* Ajustes de elementos dentro de tarjetas en claro */
body.light-mode .streams {
    background: rgba(0, 0, 0, 0.08);
    color: #111111;
}
body.light-mode .album-cover {
    border-color: #dee2e6;
}

/* Trivia en modo claro */
body.light-mode .question-number {
    background: rgba(0, 0, 0, 0.06);
    color: #111111;
}

body.light-mode .answer {
    background: rgba(0, 0, 0, 0.04);
    border-color: #ced4da;
    color: #111111;
}
body.light-mode .answer:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: #adb5bd;
}

body.light-mode .correction-container,
body.light-mode .results-container {
    background: rgba(255, 255, 255, 0.9);
    border-color: #dee2e6;
    color: #111111;
}

/* Botones de trivia mantienen contraste en claro */
body.light-mode .trivia-btn {
    color: #ffffff;
}

/* Responsive para timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 50px;
    }
    
    .timeline-year {
        position: absolute;
        left: -30px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .timeline-content {
        margin: 0;
        max-width: none;
    }
    
    .songs-grid {
        grid-template-columns: 1fr;
    }
}

/* Estilos para la Trivia */
.hidden {
    display: none !important;
}

.trivia-start-button {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
}

.trivia-start-button:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.45);
}

.trivia-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.question-number {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
}

.question-title {
    color: #ffffff;
    font-size: 1.8em;
    margin: 30px 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.4;
}

.answers-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 30px 0;
}

.answer {
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid var(--tint);
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.answer:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--tint-strong);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.trivia-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.trivia-btn {
    background: linear-gradient(45deg, var(--chip-1), var(--chip-2));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.trivia-btn:hover {
    background: linear-gradient(45deg, var(--chip-2), var(--chip-1));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.correction-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    border: 2px solid var(--tint);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.correction-text {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Poppins', sans-serif;
}

.correction-emoji {
    font-size: 48px;
    margin-top: 10px;
}

.results-container {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px;
    margin: 20px 0;
    border: 2px solid var(--tint);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.results-container h2 {
    color: #ffffff;
    font-size: 2.2em;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.score-container {
    margin: 30px 0;
}

.score-container p {
    font-size: 18px;
    margin-bottom: 15px;
    color: #e8e8e8;
}

.score {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    font-size: 48px;
    font-weight: 700;
    padding: 20px 40px;
    border-radius: 25px;
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.results-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Responsive para trivia */
@media (max-width: 768px) {
    .trivia-container {
        padding: 10px;
    }
    
    .question-title {
        font-size: 1.4em;
    }
    
    .answer {
        padding: 15px;
        font-size: 14px;
    }
    
    .trivia-buttons,
    .results-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .trivia-btn {
        width: 200px;
    }
    
    .score {
        font-size: 36px;
        padding: 15px 30px;
    }
}