/* ===========================================
   Página Romântica para Vic
   Design moderno com glassmorphism e animações
   =========================================== */

/* CSS Variables - Tema Romântico */
:root {
    --pink-light: #ff9a9e;
    --pink-medium: #ff6b81;
    --pink-dark: #fecfef;
    --purple-light: #a18cd1;
    --purple-medium: #8b5cf6;
    --purple-dark: #fbc2eb;
    --magenta: #ec4899;
    --rose: #f43f5e;
    --white-glass: rgba(255, 255, 255, 0.15);
    --white-glass-border: rgba(255, 255, 255, 0.25);
    --text-main: #ffffff;
    --text-shadow: rgba(236, 72, 153, 0.5);
    --glow-pink: rgba(255, 107, 129, 0.6);
    --glow-purple: rgba(139, 92, 246, 0.6);
}

/* Reset mínimo */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body - Gradiente animado */
body {
    min-height: 100vh;
    overflow: hidden;
    font-family: 'Playfair Display', Georgia, serif;
    background: linear-gradient(
        -45deg,
        var(--pink-light),
        var(--purple-light),
        var(--pink-dark),
        var(--magenta),
        var(--purple-dark),
        var(--rose)
    );
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Canvas para corações */
#hearts-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Sparkles de fundo */
.sparkles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.sparkles::before,
.sparkles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow:
        20vw 15vh 0 0 rgba(255,255,255,0.8),
        40vw 25vh 0 0 rgba(255,255,255,0.6),
        60vw 35vh 0 0 rgba(255,255,255,0.9),
        80vw 45vh 0 0 rgba(255,255,255,0.7),
        10vw 55vh 0 0 rgba(255,255,255,0.5),
        30vw 65vh 0 0 rgba(255,255,255,0.8),
        50vw 75vh 0 0 rgba(255,255,255,0.6),
        70vw 85vh 0 0 rgba(255,255,255,0.9),
        90vw 20vh 0 0 rgba(255,255,255,0.7),
        15vw 80vh 0 0 rgba(255,255,255,0.5),
        35vw 10vh 0 0 rgba(255,255,255,0.8),
        55vw 90vh 0 0 rgba(255,255,255,0.6),
        75vw 5vh 0 0 rgba(255,255,255,0.9),
        95vw 70vh 0 0 rgba(255,255,255,0.7),
        5vw 40vh 0 0 rgba(255,255,255,0.5);
    animation: sparkle 3s ease-in-out infinite;
}

.sparkles::after {
    animation-delay: 1.5s;
    opacity: 0.7;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

/* Container principal */
.container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--white-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid var(--white-glass-border);
    padding: 60px 50px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(236, 72, 153, 0.3),
        0 0 80px rgba(139, 92, 246, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.1);
    animation: cardAppear 1.5s ease-out;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 4s ease-in-out infinite;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    50%, 100% {
        transform: translateX(100%) rotate(45deg);
    }
}

/* Ícone do coração principal */
.heart-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    color: var(--rose);
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--glow-pink));
}

.heart-icon svg {
    width: 100%;
    height: 100%;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    15% {
        transform: scale(1.15);
    }
    30% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.1);
    }
    60% {
        transform: scale(1);
    }
}

/* Título principal */
.main-title {
    color: var(--text-main);
    margin-bottom: 20px;
    position: relative;
}

.main-title .line1 {
    display: block;
    font-family: 'Dancing Script', cursive;
    font-size: 5rem;
    font-weight: 700;
    text-shadow:
        0 0 30px var(--text-shadow),
        0 0 60px var(--glow-pink),
        0 2px 4px rgba(0, 0, 0, 0.2);
    animation: glowPulse 2s ease-in-out infinite;
    letter-spacing: 2px;
}

.main-title .line2 {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 400;
    margin-top: 10px;
    text-shadow:
        0 0 20px var(--text-shadow),
        0 2px 4px rgba(0, 0, 0, 0.2);
    animation: fadeSlideUp 1s ease-out 0.5s both;
    letter-spacing: 4px;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow:
            0 0 30px var(--text-shadow),
            0 0 60px var(--glow-pink),
            0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        text-shadow:
            0 0 40px var(--text-shadow),
            0 0 80px var(--glow-pink),
            0 0 120px var(--glow-purple),
            0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

@keyframes fadeSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Corações decorativos flutuantes */
.decorative-hearts {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    animation: float 6s ease-in-out infinite;
    text-shadow: 0 0 10px var(--glow-pink);
}

.floating-heart.h1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    font-size: 1.2rem;
}

.floating-heart.h2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
    font-size: 1rem;
}

.floating-heart.h3 {
    bottom: 25%;
    left: 15%;
    animation-delay: 2s;
    font-size: 1.4rem;
}

.floating-heart.h4 {
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
    font-size: 1.1rem;
}

.floating-heart.h5 {
    top: 50%;
    left: 5%;
    animation-delay: 4s;
    font-size: 0.9rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-5px) rotate(-5deg);
        opacity: 1;
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
        opacity: 0.7;
    }
}

/* Subtítulo */
.subtitle {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 30px;
    animation: fadeSlideUp 1s ease-out 1s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   Responsividade
   =========================================== */

/* Tablets */
@media (max-width: 768px) {
    .glass-card {
        padding: 50px 35px;
        border-radius: 25px;
    }

    .heart-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 25px;
    }

    .main-title .line1 {
        font-size: 4rem;
    }

    .main-title .line2 {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .floating-heart {
        font-size: 1.2rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 10px;
    }

    .glass-card {
        padding: 40px 25px;
        border-radius: 20px;
    }

    .heart-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }

    .main-title .line1 {
        font-size: 3rem;
    }

    .main-title .line2 {
        font-size: 1.4rem;
        letter-spacing: 2px;
        margin-top: 8px;
    }

    .subtitle {
        font-size: 1.1rem;
        margin-top: 25px;
    }

    .floating-heart {
        font-size: 1rem;
    }

    /* Reduzir animações em mobile para performance */
    .sparkles::before,
    .sparkles::after {
        animation-duration: 4s;
    }
}

/* Mobile pequeno */
@media (max-width: 360px) {
    .main-title .line1 {
        font-size: 2.5rem;
    }

    .main-title .line2 {
        font-size: 1.2rem;
    }

    .glass-card {
        padding: 35px 20px;
    }
}

/* Preferência por movimento reduzido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    body {
        background-size: 100% 100%;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .glass-card {
        padding: 25px 40px;
    }

    .heart-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 15px;
    }

    .main-title .line1 {
        font-size: 2.5rem;
    }

    .main-title .line2 {
        font-size: 1.2rem;
    }

    .subtitle {
        margin-top: 15px;
        font-size: 1rem;
    }
}
