/* Reset e variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #2c1a1a;        /* vinho escuro */
    --bg-light: #4d2e2e;        /* vermelho acastanhado */
    --text-light: #f5e6e6;
    --text-soft: #dbb8b8;
    --accent: #ff9eb5;           /* rosa suave para tu */
    --accent-dark: #e6738f;
    --secondary: #e0e0e0;        /* cinza claro para ela */
    --font-title: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background: linear-gradient(145deg, var(--bg-dark), var(--bg-light));
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Corações flutuantes */
.floating-hearts {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.heart {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.2;
    color: #ffb6c1;
    animation: float 10s infinite ease-in-out;
    user-select: none;
}

.heart:nth-child(1) { left: 10%; top: 10%; animation-delay: 0s; font-size: 1.5rem; }
.heart:nth-child(2) { left: 20%; top: 40%; animation-delay: 2s; font-size: 2rem; }
.heart:nth-child(3) { left: 80%; top: 70%; animation-delay: 4s; font-size: 1.8rem; }
.heart:nth-child(4) { left: 40%; top: 20%; animation-delay: 6s; font-size: 2.2rem; }
.heart:nth-child(5) { left: 70%; top: 50%; animation-delay: 8s; font-size: 1.6rem; }
.heart:nth-child(6) { left: 30%; top: 80%; animation-delay: 1s; font-size: 1.9rem; }
.heart:nth-child(7) { left: 90%; top: 15%; animation-delay: 3s; font-size: 2.1rem; }
.heart:nth-child(8) { left: 50%; top: 60%; animation-delay: 5s; font-size: 1.7rem; }

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Visualizer canvas */
#visualizer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.2;
}

/* Container principal */
.container {
    position: relative;
    z-index: 10;
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Hero inicial */
.hero {
    text-align: center;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
    width: 100%;
}

.hero-title {
    font-family: var(--font-title);
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--text-light);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.btn-open {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 1.2rem;
    padding: 0.8rem 2.5rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    letter-spacing: 2px;
    backdrop-filter: blur(5px);
    font-weight: 500;
}

.btn-open:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent);
}

/* Conteúdo revelado */
.revealed-content {
    width: 100%;
    animation: fadeInUp 1s ease forwards;
}

.hidden {
    display: none !important;
}

/* Imagem no cabeçalho */
.header-image {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    background: transparent;
}

/* Player estilo Spotify */
.music-player {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.track-info {
    text-align: center;
    margin-bottom: 1rem;
}

.track-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-light);
}

.artist-name {
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-top: 0.2rem;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-btn {
    background: var(--accent);
    border: none;
    color: var(--bg-dark);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.control-btn:hover {
    transform: scale(1.1);
    background: var(--accent-dark);
}

.volume-slider {
    width: 120px;
    height: 5px;
    -webkit-appearance: none;
    background: rgba(255,255,255,0.2);
    border-radius: 5px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

.volume-icon {
    color: var(--text-soft);
    font-size: 1.2rem;
}

/* Chat */
.chat-section {
    margin: 2rem 0;
    width: 100%;
}

.section-title {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-light);
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.chat-message {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s, transform 0.3s;
    word-wrap: break-word;
}

.chat-message.show {
    opacity: 1;
    transform: translateY(0);
}

.chat-message.right {
    align-self: flex-end;
    background: var(--accent);
    color: var(--bg-dark);
    border-bottom-right-radius: 5px;
}

.chat-message.left {
    align-self: flex-start;
    background: var(--secondary);
    color: var(--bg-dark);
    border-bottom-left-radius: 5px;
}

/* Continue button */
.continue-wrapper {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.btn-continue {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-size: 1.1rem;
    padding: 0.6rem 2rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    font-weight: 500;
}

.btn-continue:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

/* Mensagem final */
.final-message {
    text-align: center;
    margin: 2rem 0;
    animation: fadeIn 0.8s ease;
}

.final-text {
    font-size: 1.5rem;
    color: var(--text-light);
    line-height: 1.4;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.valentine-text {
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--accent);
    text-shadow: 0 0 20px var(--accent);
    letter-spacing: 2px;
}

/*animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .chat-message {
        max-width: 90%;
    }
    .final-text {
        font-size: 1.2rem;
    }
    .valentine-text {
        font-size: 1.5rem;
    }
    .profile-pic {
        width: 100px;
        height: 100px;
    }
}