/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b9d;
    --secondary-color: #c44569;
    --accent-color: #ffa502;
    --gold-color: #f9ca24;
    --purple-color: #a29bfe;
    --blue-color: #74b9ff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-dark: #2d3436;
    --text-light: #636e72;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Container principal */
.container {
    max-width: 900px;
    width: 100%;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

/* Card principal */
.card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    position: relative;
}

/* Barra de usuário */
.user-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(162, 155, 254, 0.1));
    border-radius: 15px;
    margin-bottom: 30px;
}

.welcome-text {
    font-size: 1rem;
    color: var(--text-dark);
}

.welcome-text strong {
    color: var(--secondary-color);
}

.logout-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 69, 105, 0.4);
}

.logout-btn:active {
    transform: translateY(0);
}

/* Seção do cabeçalho */
.header-section {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.sparkle {
    font-size: 2.5rem;
    animation: sparkleRotate 3s ease-in-out infinite;
}

.main-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color), var(--purple-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titlePulse 2s ease-in-out infinite;
}

/* Seção da idade */
.age-section {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, var(--gold-color), var(--accent-color));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(249, 202, 36, 0.3);
}

.age-number {
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 700;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    line-height: 1;
    margin-bottom: 10px;
}

.age-text {
    font-size: 1.3rem;
    color: white;
    font-weight: 300;
    letter-spacing: 2px;
}

/* Banner de mensagem particular */
.banner-section {
    margin: 40px 0;
    animation: fadeIn 1.5s ease-out;
}

.banner-card {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.15), rgba(162, 155, 254, 0.15));
    padding: 40px 35px;
    border-radius: 25px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.banner-card::before {
    content: '💌';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.1;
    transform: rotate(15deg);
}

.banner-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.banner-message {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: justify;
    font-weight: 400;
}

.banner-author {
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 600;
    margin-top: 20px;
}

/* Seção de galerias de fotos */
.photo-galleries-section {
    margin: 50px 0;
}

.gallery-container {
    margin: 50px 0;
    padding: 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-header {
    text-align: center;
    margin-bottom: 30px;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.gallery-description {
    font-size: 1.1rem;
    color: var(--text-light);
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.photo-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.photo-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.photo-caption {
    padding: 15px;
    background: white;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

/* Modal de foto (lightbox) */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.photo-modal.active {
    display: flex;
}

.photo-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: zoomIn 0.3s ease-out;
}

.photo-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.photo-modal-caption {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.photo-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
    letter-spacing: 2px;
}

/* Seção de mensagens */
.message-section {
    margin: 40px 0;
    padding: 0 20px;
}

.message {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: center;
    animation: fadeIn 1.5s ease-out;
}

.message.highlight {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(162, 155, 254, 0.1));
    border-radius: 15px;
    border-left: 5px solid var(--primary-color);
}

.message-final {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--secondary-color);
    margin-top: 30px;
    animation: bounceIn 1s ease-out;
}

/* Seção de desejos */
.wishes-section {
    margin: 50px 0;
}

.wishes-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.wishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.wish-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    cursor: default;
}

.wish-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.wish-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

.wish-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.wish-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Seção da data */
.date-section {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.date-box {
    background: linear-gradient(135deg, var(--purple-color), var(--blue-color));
    padding: 25px 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(162, 155, 254, 0.3);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.date-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 300;
}

.date-value {
    font-size: 1.5rem;
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Seção de contagem regressiva */
.countdown-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(162, 155, 254, 0.1));
    border-radius: 20px;
    text-align: center;
}

.countdown-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 500;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 20px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 100px;
}

.time-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.time-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 8px;
}

/* Seção do rodapé */
.footer-section {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.footer-message {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 500;
}

/* Balões flutuantes */
.balloons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.balloon {
    position: absolute;
    width: 60px;
    height: 75px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.8;
    animation: floatUp 15s ease-in-out infinite;
}

.balloon::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100px;
    background: rgba(0, 0, 0, 0.2);
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
}

.balloon-1 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    left: 10%;
    animation-delay: 0s;
}

.balloon-2 {
    background: linear-gradient(135deg, var(--accent-color), var(--gold-color));
    left: 25%;
    animation-delay: 2s;
}

.balloon-3 {
    background: linear-gradient(135deg, var(--purple-color), var(--blue-color));
    left: 40%;
    animation-delay: 4s;
}

.balloon-4 {
    background: linear-gradient(135deg, var(--blue-color), var(--purple-color));
    left: 60%;
    animation-delay: 1s;
}

.balloon-5 {
    background: linear-gradient(135deg, var(--gold-color), var(--accent-color));
    left: 75%;
    animation-delay: 3s;
}

.balloon-6 {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    left: 90%;
    animation-delay: 5s;
}

/* Confetes */
.confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    opacity: 0.8;
    animation: confettiFall linear forwards;
}

/* Botão de confetes */
.confetti-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 100;
}

.confetti-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(255, 107, 157, 0.6);
}

.confetti-btn:active {
    transform: scale(0.95);
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes sparkleRotate {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(10deg) scale(1.2);
    }
    75% {
        transform: rotate(-10deg) scale(1.2);
    }
}

@keyframes titlePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatUp {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        opacity: 0.9;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes confettiFall {
    to {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .card {
        padding: 35px 25px;
    }

    .user-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .main-title {
        font-size: 2.8rem;
    }

    .sparkle {
        font-size: 2rem;
    }

    .age-number {
        font-size: 4.5rem;
    }

    .age-text {
        font-size: 1.1rem;
    }

    .banner-title {
        font-size: 1.6rem;
    }

    .banner-message {
        font-size: 1rem;
        text-align: center;
    }

    .gallery-container {
        padding: 25px 20px;
    }

    .gallery-title {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .message {
        font-size: 1rem;
    }

    .message.highlight {
        font-size: 1.1rem;
    }

    .message-final {
        font-size: 1.3rem;
    }

    .wishes-title {
        font-size: 1.8rem;
    }

    .wishes-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .time-unit {
        min-width: 80px;
        padding: 15px 20px;
    }

    .time-value {
        font-size: 2rem;
    }

    .confetti-btn {
        bottom: 20px;
        right: 20px;
        padding: 12px 24px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 25px 20px;
        border-radius: 20px;
    }

    .main-title {
        font-size: 2.2rem;
    }

    .header-section {
        gap: 10px;
    }

    .sparkle {
        font-size: 1.5rem;
    }

    .age-number {
        font-size: 3.5rem;
    }

    .age-text {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .countdown-timer {
        gap: 10px;
    }

    .time-unit {
        min-width: 70px;
        padding: 12px 15px;
    }

    .time-value {
        font-size: 1.8rem;
    }

    .time-label {
        font-size: 0.75rem;
    }
}