/* =========================================
   1. CONFIGURAÇÕES GERAIS (RESET & FONTS)
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: #fdf2f8; /* Rosa bem clarinho de fundo base */
    margin: 0;
    min-height: 100vh;
    color: #5a3e46;
    overflow-x: hidden; /* Evita rolagem lateral por causa das fotos de fundo */
}

/* Títulos com fonte cursiva */
h1 {
    font-family: 'Dancing Script', cursive;
    color: #d63384;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
}

/* Animação de Batimento Cardíaco (Lub-Dub realista) */
.heartbeat {
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* =========================================
   2. FUNDO DE COLAGEM (AS FOTOS FLUTUANTES)
   ========================================= */
.background-collage {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1; /* Fica atrás de tudo */
    opacity: 0.15; /* Transparência suave */
    pointer-events: none; /* Permite clicar através das imagens */
}

.photo {
    position: absolute;
    border: 8px solid #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 4px;
    object-fit: cover;
    max-width: 250px; /* Tamanho máximo para não ficar gigante */
}

/* Posicionamento "Aleatório" das 4 fotos */
.p1 { top: 10%; left: -2%; transform: rotate(15deg); width: 220px; }
.p2 { top: 50%; right: -5%; transform: rotate(-10deg); width: 280px; }
.p3 { bottom: -5%; left: 15%; transform: rotate(5deg); width: 200px; }
.p4 { top: -10%; right: 20%; transform: rotate(-15deg); width: 180px; }

/* Ajuste para celular */
@media (max-width: 768px) {
    .photo { opacity: 0.1; width: 150px; }
}

/* =========================================
   3. MENU DE NAVEGAÇÃO
   ========================================= */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar a {
    text-decoration: none;
    color: #d63384;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar a:hover {
    transform: translateY(-2px);
    color: #a61e61;
}

/* =========================================
   4. CONTAINER PRINCIPAL
   ========================================= */
.main-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.92); /* Quase branco */
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

/* =========================================
   5. RELÓGIOS / CORAÇÕES (NOVO!)
   ========================================= */
.clocks-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap; /* Quebra linha no celular se precisar */
}

.heart-wrapper {
    background: #fff;
    border: 1px solid #ffeef5;
    border-radius: 20px;
    padding: 15px;
    width: 45%;
    min-width: 250px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(214, 51, 132, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    cursor: default;
}

.heart-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(214, 51, 132, 0.2);
}

.heart-shape {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    height: 50px;
}

.clock-info {
    display: flex;
    flex-direction: column;
}

.clock-title {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
}

.clock-timer {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #5a3e46;
    margin-top: 5px;
}

/* --- Estilo do Coração Vermelho (Tempo Juntos) --- */
.red-heart .heart-shape i {
    color: #ff4757;
    animation: heartbeat 1.5s infinite; /* Usa a animação lá de cima */
}

/* --- Estilo do Coração Dourado (Segredo) --- */
.gold-heart {
    cursor: pointer;
    border: 2px solid transparent; /* Reserva espaço para borda futura */
}

/* Efeito Dourado no ícone */
.gold-heart .heart-shape > i.fa-heart {
    background: -webkit-linear-gradient(#ffd700, #daa520);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* O Cadeado */
.lock-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centraliza perfeitamente */
    font-size: 1rem;
    color: #5a3e46;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito elástico */
}

/* --- ESTADO DESBLOQUEADO (Easter Egg Ativo) --- */
.gold-heart.unlocked {
    border-color: #ffd700;
    background: #fffceb; /* Amarelo bem clarinho */
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    animation: pulse-gold 2s infinite;
}

.gold-heart.unlocked .lock-icon {
    color: #2ecc71; /* Verde */
    top: -10px; /* Joga o cadeado para fora/cima */
    opacity: 0; /* Faz ele sumir */
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* =========================================
   6. CHAT (MENSAGENS)
   ========================================= */
.chat-box {
    height: 400px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 18px;
    border-radius: 20px;
    position: relative;
    line-height: 1.5;
    text-align: left;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-size: 1rem;
}

.bot-message {
    background: #ffe6f2;
    color: #5a3e46;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: #d63384;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

/* Input do Chat */
.input-area {
    display: flex;
    gap: 10px;
    position: relative;
}

.input-area input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #ffe6f2;
    border-radius: 30px;
    font-family: 'Quicksand';
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-area input:focus {
    border-color: #d63384;
    background: #fff;
}

.input-area button {
    background: #d63384;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(214, 51, 132, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.input-area button:hover {
    background: #a61e61;
    transform: scale(1.1);
}

/* =========================================
   7. GALERIA DE ÁLBUNS
   ========================================= */
.gallery {
    column-count: 3;
    column-gap: 15px;
}

@media (max-width: 768px) {
    .gallery { column-count: 2; }
}

.gallery-item {
    margin-bottom: 15px;
    break-inside: avoid;
}

.gallery-item img {
    width: 100%;
    border-radius: 12px;
    transition: transform 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    display: block;
}

.gallery-item img:hover {
    transform: scale(1.03);
    z-index: 10;
    position: relative;
}

/* =========================================
   8. RECADOS (POST-ITS)
   ========================================= */
.recados-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px dashed #ffb3c1;
    border-radius: 15px;
    font-family: 'Quicksand';
    margin-bottom: 15px;
    resize: vertical;
    min-height: 80px;
}

.recados-form button {
    background: #d63384;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 20px;
    width: 100%;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.recados-form button:hover {
    background: #a61e61;
}

.mural {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

.post-it {
    background: #fff8c4; /* Amarelo clássico */
    width: 220px;
    padding: 20px;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.1);
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    color: #444;
    transform: rotate(-2deg);
    transition: 0.3s;
    position: relative;
}

/* Efeito de "fita adesiva" no topo */
.post-it::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 35%;
    width: 30%;
    height: 20px;
    background: rgba(255,255,255,0.4);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
}

.post-it:hover { 
    transform: scale(1.1) rotate(0deg) !important; 
    z-index: 10; 
}

/* Cores Alternadas dos Post-its */
.post-it:nth-child(even) { background: #ffe6f2; transform: rotate(3deg); }
.post-it:nth-child(3n) { background: #e0f7fa; transform: rotate(-1deg); }

.msg-date {
    display: block;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.7rem;
    color: #888;
    margin-top: 15px;
    text-align: right;
}