/* Importa as fontes do Google Fonts: Caveat para o título e Poppins para o corpo */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@700&family=Poppins:wght@300;400;600&display=swap');

/* Define as variáveis de cor para fácil manutenção */
:root {
    --cor-principal: #d63384; /* Rosa forte */
    --cor-fundo: #fdf2f8; /* Rosa bem clarinho */
    --cor-card: #ffffff;
    --cor-sombra: rgba(0, 0, 0, 0.08);
    --cor-texto: #333;
    --borda-radius: 16px;
}

/* Estilos Gerais do Corpo da Página */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.7;
    margin: 0;
    padding: 20px;
}

/* Container Principal que Centraliza o Conteúdo */
.container {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

/* Estilo da Ilustração */
.illustration {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 5px solid var(--cor-principal);
    box-shadow: 0 4px 15px var(--cor-sombra);
}

/* Estilos do Cabeçalho */
header h1 {
    font-family: 'Caveat', cursive;
    color: var(--cor-principal);
    font-size: 3.2rem;
    margin: 0;
}

.contador {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cor-principal);
    margin-top: 5px;
    margin-bottom: 30px;
}

/* Estilo Padrão para todos os Cards */
.card {
    position: relative; /* Adicionado para posicionar o botão de retorno */
    background-color: var(--cor-card);
    padding: 25px;
    border-radius: var(--borda-radius);
    margin-bottom: 25px;
    box-shadow: 0 8px 25px var(--cor-sombra);
    text-align: center;
    border: 1px solid #fde7f3;
}

.card h2 {
    color: var(--cor-principal);
    margin-top: 0;
    font-weight: 600;
    font-size: 1.5rem;
}

/* Estilos para Conteúdos Específicos */
#frase-do-dia-texto {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    min-height: 50px;
}

.lembrete-item {
    padding: 15px 0;
    border-bottom: 1px solid #fde7f3;
}
.lembrete-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.lembrete-item p {
    margin: 0 0 10px 0;
    font-weight: 600;
}
.lembrete-feedback {
    font-weight: 600;
    font-style: italic;
    color: var(--cor-principal);
    margin-top: 15px;
    min-height: 24px;
    transition: opacity 0.4s ease;
}

/* Estilos para Nossas Lembranças (dentro do card) */
#lembrancas-inline-container .lembranca-item {
    background-color: #fff9fb;
    box-shadow: none;
    border: 1px dashed #fde7f3;
    text-align: left;
    padding: 20px;
    border-radius: var(--borda-radius);
    margin-bottom: 15px;
}
#lembrancas-inline-container .lembranca-item h3 { font-weight: 600; color: var(--cor-principal); margin-top: 0; }
#lembrancas-inline-container .lembranca-item .data { font-size: 0.8rem; color: #999; margin-bottom: 10px; }


/* Estilos para a área de sugestão de lembrança */
.sugestao-container {
    margin-top: 30px;
    padding-top: 20px;
}
.sugestao-container hr {
    border: none;
    height: 1px;
    background-color: #fde7f3;
    margin-bottom: 20px;
}
.sugestao-container h3 {
    font-weight: 600;
    color: var(--cor-principal);
}

/* Estilos para o Coisômetro */
label[for="coiso-level"] {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #555;
}
input[type="number"] {
    width: 80%;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #fde7f3;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cor-principal);
    margin-bottom: 15px;
}
input[type="number"]:focus {
    outline: none;
    border-color: var(--cor-principal);
}
.coiso-feedback {
    font-style: italic;
    font-weight: 600;
    color: #333;
    min-height: 40px;
    padding: 10px;
}

/* Estilos para os Formulários */
textarea {
    width: 100%;
    min-height: 100px;
    border-radius: 10px;
    border: 2px solid #fde7f3;
    padding: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    margin-bottom: 15px;
    box-sizing: border-box;
}
textarea:focus {
    outline: none;
    border-color: var(--cor-principal);
}

/* Estilo da Playlist */
iframe {
    margin-top: 15px;
}

/* Estilo Padrão para Botões */
.btn {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cor-principal);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none;
    margin: 5px;
}
.btn:hover {
    background-color: #b32a6d;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Estilos do Rodapé */
footer {
    margin-top: 30px;
    padding: 20px;
    font-size: 0.9rem;
    color: #aaa;
}
.coracao {
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}
.coracao:hover {
    transform: scale(1.3);
}

/* Estilo para as mensagens de feedback no rodapé e coisômetro */
.feedback-final {
    font-weight: 600;
    font-style: italic;
    color: #333;
    margin-top: 20px;
    min-height: 24px;
    transition: opacity 0.4s ease;
}
/* Esconde o corpo da página enquanto o JS carrega */
body.loading {
    opacity: 0;
    transition: none; /* Desliga a transição durante o carregamento */
}

/* Estilo para a transição suave de "fade in" */
body {
    transition: opacity 0.5s ease-in-out;
}
/* --- ESTILOS PARA O CANTINHO ALEATORIEDADE --- */

.aleatorio-item {
    padding: 25px 0;
    border-bottom: 1px solid #fde7f3;
}

.aleatorio-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.aleatorio-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 600;
}

/* Estilo base para os botões redondos */
.btn-aleatorio {
    width: 140px;
    height: 140px;
    border-radius: 50%; /* Deixa o botão perfeitamente redondo */
    font-family: 'Poppins', sans-serif;
    color: white;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Centraliza o botão */
}

.btn-aleatorio:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

/* Cores diferentes para cada botão */
.btn-color-1 { background-color: #e83e8c; } /* Rosa forte */
.btn-color-2 { background-color: #6f42c1; } /* Roxo */
.btn-color-3 { background-color: #fd7e14; } /* Laranja */
.btn-color-4 { background-color: #20c997; } /* Verde-água */
.btn-color-5 { background-color: #17a2b8; } /* Azul-petróleo */

/* Estilo para a área do resultado */
.resultado-aleatorio {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    min-height: 40px;
    padding: 10px;
    background-color: #fdf2f8;
    border-radius: 8px;
}
/* --- ESTILOS PARA O CANTINHO DAS COMPOSIÇÕES --- */

.composicoes-container {
    margin-top: 30px;
    padding-top: 20px;
    text-align: left; /* Alinha o texto da descrição à esquerda */
}

.composicoes-container hr {
    border: none;
    height: 1px;
    background-color: #fde7f3;
    margin-bottom: 20px;
}

.composicoes-container h3 {
    text-align: center; /* Centraliza apenas o título da seção */
    font-weight: 600;
    color: var(--cor-principal);
}

.song-item {
    display: flex;
    justify-content: space-between; /* Coloca o nome de um lado e o botão do outro */
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #f9eef3;
}
.song-item:last-child {
    border-bottom: none;
}

.song-title {
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-play-heart {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0 10px;
    color: #ff8fab; /* Um tom de rosa mais suave para o coração */
}

.btn-play-heart:hover {
    transform: scale(1.2);
    color: var(--cor-principal); /* Rosa mais forte ao passar o mouse */
}
/* --- ESTILOS PARA O CANTINHO DOS MEMES --- */

/* Deixa o vídeo responsivo (mantém a proporção 16:9) */
.video-responsive {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* Proporção 16:9 (9 / 16 = 0.5625) */
    margin: 25px 0;
    border-radius: var(--borda-radius);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- ESTILOS PARA O MENU DE NAVEGAÇÃO --- */

/* Adiciona a rolagem suave para a página inteira */
html {
    scroll-behavior: smooth;
}

.navigation-menu {
    display: flex;
    flex-wrap: wrap; /* Permite que os botões quebrem a linha em telas menores */
    justify-content: center;
    gap: 10px; /* Espaço entre os botões */
    margin-bottom: 30px; /* Espaço abaixo do menu */
    padding: 10px 0;
    border-bottom: 1px solid #fde7f3;
}

.nav-button {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: var(--cor-principal);
    border: 2px solid var(--cor-principal);
    padding: 8px 15px;
    border-radius: 50px; /* Deixa os botões em formato de pílula */
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none; /* Remove o sublinhado padrão dos links */
    transition: all 0.2s ease-in-out;
}

/* --- ESTILOS PARA O SECRETNOTE --- */
#cantinho-secret-note textarea {
    min-height: 140px;
    resize: vertical;
}

.secret-note-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
}

.btn-outline {
    background-color: transparent;
    color: var(--cor-principal);
    border: 2px solid var(--cor-principal);
}

.btn-outline:hover {
    background-color: var(--cor-principal);
    color: #fff;
}

.secret-note-display {
    margin-top: 10px;
    padding: 15px;
    border-radius: var(--borda-radius);
    border: 1px dashed #fde7f3;
    background: rgba(255, 249, 251, 0.8);
    min-height: 60px;
    font-weight: 600;
    filter: blur(7px);
    transition: filter 0.4s ease, background 0.3s ease;
}

.secret-note-display.has-note {
    background: rgba(255, 249, 251, 0.95);
}

.secret-note-display.reveal {
    filter: none;
}

.secret-note-display:not(.has-note) {
    filter: none;
    font-style: italic;
    color: #777;
}

#secret-note-feedback {
    min-height: 20px;
}

.nav-button:hover {
    background-color: var(--cor-principal);
    color: white;
    transform: translateY(-2px);
}
/* --- ESTILOS PARA O BOTÃO VOLTAR AO TOPO --- */

.btn-voltar-topo {
    position: absolute; /* Posição absoluta em relação ao card */
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background-color: #f1f1f1;
    color: var(--cor-principal);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    opacity: 0.7; /* Começa um pouco transparente */
}

.btn-voltar-topo:hover {
    background-color: var(--cor-principal);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    opacity: 1; /* Fica totalmente opaco ao passar o mouse */
}

.btn-voltar-topo svg {
    width: 20px;
    height: 20px;
}
