﻿/* --- Variáveis & Reset --- */


x:root {
    /*
    --primary: #FF6B9D;
    --primary-dark: #E85A8A;
    --primary-soft: #FFF0F5;
    --text-main: #2D3748;
    --text-muted: #718096;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);*/
    --radius-lg: 24px;
    --radius-xl: 32px;
}
    
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: #FDFBF7; /* Creme suave */
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px; /* Padrão de bolinhas sutil no fundo */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Fredoka', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* --- MAGIC CURSOR STYLES --- */
#magic-cursor {
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999999999;
    mix-blend-mode: multiply;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

#magic-cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999999999;
    opacity: 0.6;
    transition: all 0.1s ease;
}

/* Cursor Reactivo */
#magic-cursor.active {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 3px solid var(--primary-dark);
}

#magic-cursor-follower.active {
    width: 60px;
    height: 60px;
    background: var(--primary-glass);
    border-color: transparent;
}

.cursor-sparkle {
    position: fixed;
    width: 10px;
    height: 10px;
    background: gold;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    pointer-events: none;
    z-index: 9997;
}

/* --- BACKGROUND ANIMATIONS --- */
.background-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-item {
    position: absolute;
    font-size: 3rem;
    opacity: 0.15;
    animation: floatUpDown 6s ease-in-out infinite;
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.cloud {
    font-size: 6rem;
    opacity: 0.4;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.c1 {
    top: 10%;
    left: -5%;
    animation-duration: 15s;
}

.c2 {
    top: 40%;
    right: -5%;
    animation-duration: 18s;
    animation-delay: 2s;
}

.b1 {
    top: 70%;
    left: 10%;
    font-size: 4rem;
    animation-duration: 8s;
}

.s1 {
    top: 15%;
    right: 20%;
    animation-duration: 4s;
}

.s2 {
    bottom: 20%;
    left: 15%;
    animation-duration: 5s;
}

/* --- Scroll Animation Classes --- */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

    .scroll-animate.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* --- Hero Header --- */
.baby-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.baby-avatar-container {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 20px;
}

.baby-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    border: 5px solid white;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

    .baby-avatar:hover {
        transform: scale(1.05) rotate(-3deg);
    }

    .baby-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    color: var(--primary);
    background: var(--primary-soft);
    font-family: 'Fredoka', sans-serif;
}

/* Anel pulsante */
.avatar-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.5);
    z-index: 1;
    animation: spinSlow 10s linear infinite;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.baby-name {
    font-size: 4rem;
    margin-bottom: 5px;
    text-shadow: 2px 4px 0px rgba(0,0,0,0.1);
}

.baby-birth-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 1rem;
    margin-bottom: 30px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.3);
}

/* Ondas SVG */
.custom-shape-divider-bottom-162 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

    .custom-shape-divider-bottom-162 svg {
        position: relative;
        display: block;
        width: calc(130% + 1.3px);
        height: 70px;
    }

    .custom-shape-divider-bottom-162 .shape-fill {
        fill: #FDFBF7;
    }

/* --- Stats Flutuantes --- */
.move-up {
    margin-top: -70px;
    position: relative;
    z-index: 10;
}

.content-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.age-stats-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.age-stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow-md);
    flex: 1;
    min-width: 140px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid white;
}

    .age-stat-card:hover {
        transform: translateY(-10px) scale(1.05);
        border-color: var(--primary);
    }

.stat-number {
    display: block;
    font-family: 'Fredoka', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-top: 5px;
}

/* --- Seções Gerais --- */
.section-container {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

    .section-title::after {
        content: '';
        display: block;
        width: 100%;
        height: 8px;
        background: var(--primary-soft);
        position: absolute;
        bottom: 5px;
        left: 0;
        z-index: -1;
        transform: skewX(-15deg);
    }

/* --- Milestones Pills --- */
.milestone-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.milestone-pill {
    background: white;
    padding: 15px 35px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .milestone-pill:hover {
        background: var(--primary-soft);
        border-color: var(--primary);
        transform: scale(1.05);
    }

.ms-num {
    font-size: 1.5rem;
    font-family: 'Fredoka';
    color: var(--primary);
}

.ms-txt {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

/* --- Stories / Highlights --- */
.reels-scroll-wrapper {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 20px;
    justify-content: center;
    scrollbar-width: none;
}

    .reels-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

.story-circle {
    flex: 0 0 90px;
    width: 90px;
    height: 90px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .story-circle:hover {
        transform: scale(1.15) rotate(5deg);
    }

.story-ring {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), #FFD700);
    z-index: 1;
}

.story-circle img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    background: white;
}

.timeline-section, .gallery-section {
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* --- Timeline Modern --- */
.timeline-modern {
    position: relative;
    padding: 20px 0;
}

    .timeline-modern::before {
        content: '';
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--primary-soft);
        border-radius: 10px;
    }

.timeline-row {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    width: 50%;
    margin-left: auto;
    padding-left: 40px;
}

    .timeline-row:nth-child(even) {
        margin-left: 0;
        margin-right: auto;
        padding-left: 0;
        padding-right: 40px;
        flex-direction: row-reverse;
    }

.timeline-date-marker {
    position: absolute;
    left: -35px;
    top: 20px;
    width: 70px;
    height: 70px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-row:nth-child(even) .timeline-date-marker {
    left: auto;
    right: -35px;
}

.timeline-date-marker .day {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.timeline-date-marker .month {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
}

.timeline-content-card {
    flex: 1;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    border-bottom: 5px solid var(--primary-soft);
}

    .timeline-content-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
    }

.card-media {
    height: 280px;
    overflow: hidden;
}

    .card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s;
    }

.timeline-content-card:hover .card-media img {
    transform: scale(1.1);
}

.card-body {
    padding: 30px;
    text-align: left;
}

    .card-body h3 {
        font-size: 1.6rem;
        color: var(--text-main);
        margin-bottom: 12px;
    }

    .card-body p {
        color: var(--text-muted);
        font-size: 1.05rem;
    }

/* --- Polaroid Gallery --- */
.polaroid-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding-bottom: 60px;
    perspective: 1000px;
}

.polaroid-item {
    width: 260px;
    background: white;
    padding: 15px 15px 50px 15px;
    box-shadow: var(--shadow-md);
    transform: rotate(var(--rot)) translateZ(0);
    transition: all 0.4s ease;
    border-radius: 4px;
    position: relative;
}

    .polaroid-item::before {
        content: '';
        position: absolute;
        top: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 30px;
        background: rgba(255,255,255,0.4);
        border: 1px solid rgba(0,0,0,0.1);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        z-index: 2; /* Fita adesiva fake */
    }

    .polaroid-item:hover {
        transform: scale(1.1) rotate(0deg) !important;
        z-index: 20;
        box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    }

.polaroid-inner {
    width: 100%;
    aspect-ratio: 1;
    background: #eee;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
}

    .polaroid-inner img, .polaroid-inner video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: saturate(1.1) contrast(1.05);
    }

/* --- Footer --- */
.baby-footer {
    text-align: center;
    padding: 60px;
    color: var(--text-muted);
    font-size: 1.1rem;
    background: white;
    position: relative;
    z-index: 2;
}

.empty-state {
    padding: 60px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.8);
    border-radius: 30px;
    border: 3px dashed var(--primary-soft);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: floatUpDown 3s infinite;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 767px) {
    .baby-name {
        font-size: 2.8rem;
    }

    .timeline-modern::before {
        left: 24px;
    }

    .timeline-row {
        width: 100%;
        padding-left: 60px;
        margin-left: 0;
        flex-direction: column;
    }

        .timeline-row:nth-child(even) {
            flex-direction: column;
            padding-right: 0;
            padding-left: 60px;
        }

            .timeline-date-marker, .timeline-row:nth-child(even) .timeline-date-marker {
                left: -10px;
                right: auto;
                top: 0;
            }

    .polaroid-item {
        width: 80%;
    }
    /* Desativa custom cursor no mobile touch */
    #magic-cursor, #magic-cursor-follower, .cursor-sparkle {
        display: none;
    }

    * {
        cursor: auto !important;
    }
}
/* --- Instagram-like Stories Modal --- */
.stories-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    overflow: hidden; /* Evita scroll indesejado */
}

    .stories-modal.active {
        visibility: visible;
        opacity: 1;
        transition: opacity 0.3s ease;
    }

body.stories-open {
    overflow: hidden; /* Impede scroll da página principal ao abrir o stories */
}

.stories-container {
    position: relative;
    width: 100%;
    max-width: 400px; /* Largura típica de stories do Instagram */
    height: 100%;
    max-height: 700px; /* Altura típica de stories do Instagram */
    background: black;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.stories-modal.active .stories-container {
    transform: scale(1);
    opacity: 1;
}

.stories-header {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.stories-progress-bars {
    flex-grow: 1;
    display: flex;
    gap: 3px;
}

.progress-bar-wrapper {
    flex-grow: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: white;
    border-radius: 2px;
    /* transition is set by JS for specific duration */
}

.stories-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

    .stories-close-btn:hover {
        transform: rotate(90deg);
    }

.stories-carousel {
    flex-grow: 1;
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    background-color: black; /* Fundo escuro para a imagem */
}

.story-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

    .story-item.active {
        opacity: 1;
        transform: translateX(0);
        position: relative; /* Mantém no fluxo para interações de click */
    }

    .story-item img {
        width: 100%;
        height: 100%;
        object-fit: contain; /* Para garantir que a imagem inteira seja visível */
        filter: brightness(0.95); /* Leve escurecimento para contraste com texto */
    }

.story-meta {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    font-size: 0.9rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.stories-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 11; /* Acima do story content */
}

    .stories-nav-btn.prev {
        left: 10px;
    }

    .stories-nav-btn.next {
        right: 10px;
    }

    .stories-nav-btn:hover {
        background: rgba(0, 0, 0, 0.5);
        transform: translateY(-50%) scale(1.1);
    }



/* Responsividade para telas menores */
@media (max-width: 500px) {
    .stories-container {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .stories-nav-btn {
        font-size: 2rem;
        padding: 5px 10px;
        width: 40px;
        height: 40px;
    }
}

.spotify-embed-container {
    position: fixed; /* Player fixo na tela */
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 80px;
    z-index: 9000; /* Abaixo do modal de stories e cursor, mas acima do conteúdo */
    background: #191414; /* Cor do Spotify */
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

/* Esconde o player em telas pequenas */
@media (max-width: 600px) {
    .spotify-embed-container {
        width: 90%;
        bottom: 10px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}

.spotify-embed-container iframe {
    width: 100%;
    height: 100%;
    border: none !important;
}

/* Overlay para dar um toque visual (opcional) */
.spotify-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Permite clicar no iframe por baixo */
    color: white;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    background: rgba(0, 0, 0, 0.4);
}

.spotify-embed-container:hover .spotify-overlay {
    opacity: 1;
}