/* ==========================================================================
   STYLE SYSTEM: RGC ADVOGADOS 10 ANOS
   Design Premium, Responsivo e Sofisticado
   ========================================================================== */

/* 1. RESET E DEFINIÇÕES GERAIS */
:root {
    --bg-dark-deep: #0A0909;
    --bg-dark-velvet: #141212;
    --bg-dark-card: rgba(18, 16, 16, 0.75);
    
    /* Tons Dourados Metálicos */
    --gold-primary: #F0D090;
    --gold-dark: #B89742;
    --gold-deep: #403010;
    --gold-medium: #807050;
    --gold-glow: rgba(240, 208, 144, 0.35);
    --gold-glow-soft: rgba(240, 208, 144, 0.08);
    
    /* Cores de Texto */
    --text-white: #F5F5F7;
    --text-champagne: #E5D3B3;
    --text-muted: #A3A3A3;
    
    /* Fontes */
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Transições */
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-medium: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark-deep);
    color: var(--text-white);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 2. LAYOUT PRINCIPAL (SEÇÃO ÚNICA) */
.app-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.screen {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 2rem 1rem;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.05);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    z-index: 1;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
    z-index: 10;
}

/* 3. EFEITOS DE PLANO DE FUNDO LUXUOSOS */
.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
    mix-blend-mode: screen;
    pointer-events: none;
}

.gold-glow-1 {
    width: 50vw;
    height: 50vw;
    top: -10vw;
    left: -10vw;
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 70%);
}

.gold-glow-2 {
    width: 60vw;
    height: 60vw;
    bottom: -15vw;
    right: -15vw;
    background: radial-gradient(circle, var(--gold-dark) 0%, transparent 70%);
}

.gold-glow-3 {
    width: 45vw;
    height: 45vw;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--gold-primary) 0%, transparent 80%);
    opacity: 0.08;
}

.gold-glow-4 {
    width: 70vw;
    height: 70vw;
    bottom: -20vw;
    left: -10vw;
    background: radial-gradient(circle, var(--gold-deep) 0%, transparent 70%);
    opacity: 0.15;
}

/* Textura de fundo sutil */
.background-effects::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(240, 208, 144, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.7;
}

/* 4. SEÇÃO 1: HERO / CAPA */
.hero-screen {
    background: linear-gradient(135deg, var(--bg-dark-deep) 0%, #151212 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    width: 100%;
    text-align: center;
    padding: 2rem;
}

.logo-wrapper {
    margin-bottom: 4rem;
    position: relative;
}

.brand-logo {
    max-width: 675px;
    height: auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 10px rgba(240, 208, 144, 0.08));
    transition: transform var(--transition-slow);
}

.logo-wrapper:hover .brand-logo {
    transform: scale(1.02);
}

/* 5. BOTÃO PULSANTE ULTRA-PREMIUM */
.cta-wrapper {
    position: relative;
    z-index: 5;
}

.pulse-button {
    background: linear-gradient(135deg, var(--bg-dark-velvet) 0%, #0d0c0c 100%);
    border: 1px solid rgba(240, 208, 144, 0.4);
    color: var(--text-champagne);
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    padding: 1.25rem 2.5rem;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(240, 208, 144, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    outline: none;
    transition: all var(--transition-medium);
    animation: buttonPulse 2.5s infinite ease-in-out;
}

.pulse-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.pulse-button:hover {
    border-color: var(--gold-primary);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(240, 208, 144, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.pulse-button:hover::before {
    opacity: 1;
}

.pulse-button:active {
    transform: translateY(1px);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(240, 208, 144, 0.15);
}

/* Efeito de Brilho (Shine) Intermitente */
.btn-shine {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(240, 208, 144, 0.2) 30%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(240, 208, 144, 0.2) 70%,
        transparent 100%
    );
    transform: skewX(-25deg);
    animation: shineLoop 6s infinite ease-in-out;
}

/* 6. SEÇÃO 2: CONVITE ABERTO */
.invite-screen {
    background: radial-gradient(circle at center, #1b1717 0%, var(--bg-dark-deep) 100%);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
    min-height: 100vh;
}

.invite-container {
    max-width: 1240px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: max-width var(--transition-slow);
}

/* CARD DO CONVITE (GLASSMORPHISM) */
.invite-card {
    width: 100%;
    max-width: 100%;
    background: var(--bg-dark-card);
    border: 1px solid rgba(240, 208, 144, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 8px;
    padding: 4.5rem 5.5rem;
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(240, 208, 144, 0.04),
        inset 0 0 30px rgba(240, 208, 144, 0.02);
    position: relative;
    overflow: hidden;
}

/* ESTRUTURA EM DUAS COLUNAS */
.invite-columns {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 5.5rem;
    align-items: center;
    width: 100%;
}

.invite-column-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.invite-column-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    text-align: left;
}

/* Moldura Artística nos Cantos (Estilo Brasão) */
.corner-border {
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid transparent;
    pointer-events: none;
}

.corner-border.top-left {
    top: 28px;
    left: 28px;
    border-top-color: var(--gold-dark);
    border-left-color: var(--gold-dark);
}

.corner-border.top-right {
    top: 28px;
    right: 28px;
    border-top-color: var(--gold-dark);
    border-right-color: var(--gold-dark);
}

.corner-border.bottom-left {
    bottom: 28px;
    left: 28px;
    border-bottom-color: var(--gold-dark);
    border-left-color: var(--gold-dark);
}

.corner-border.bottom-right {
    bottom: 28px;
    right: 28px;
    border-bottom-color: var(--gold-dark);
    border-right-color: var(--gold-dark);
}

/* Linhas decorativas finas para simular passe-partout */
.invite-card::before {
    content: '';
    position: absolute;
    top: 42px;
    bottom: 42px;
    left: 42px;
    right: 42px;
    border: 1px solid rgba(240, 208, 144, 0.06);
    pointer-events: none;
    border-radius: 4px;
}

/* 7. CONTEÚDO DO CONVITE */
.invite-header {
    margin-bottom: 1.2rem;
}

.anniversary-badge-container {
    display: block;
    width: 100%;
    position: relative;
    text-align: center;
}

.anniversary-badge {
    width: 60%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 15px rgba(240, 208, 144, 0.12));
    animation: floatBadge 6s infinite ease-in-out;
}

.invite-intro {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--text-champagne);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.invite-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #FFF 10%, var(--gold-primary) 50%, var(--gold-dark) 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
    margin-bottom: 0.2rem;
    line-height: 1.1;
}

.invite-subtitle {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-white);
    text-transform: uppercase;
}

/* Divisor Dourado */
.divider-gold {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2.2rem auto;
    width: 60%;
}

.divider-gold::before,
.divider-gold::after {
    content: '';
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, transparent, rgba(240, 208, 144, 0.45), transparent);
}

.divider-gold .diamond {
    width: 8px;
    height: 8px;
    border: 1px solid var(--gold-primary);
    transform: rotate(45deg);
    margin: 0 12px;
    background-color: var(--bg-dark-velvet);
}

/* PROGRAMAÇÃO E AGENDA */
.schedule-container {
    margin-bottom: 2.2rem;
    text-align: left;
}

.schedule-date {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-champagne);
    margin-bottom: 1.4rem;
    padding: 0.5rem 1.1rem;
    background: rgba(240, 208, 144, 0.03);
    border-radius: 40px;
    border: 1px solid rgba(240, 208, 144, 0.08);
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.icon-gold {
    color: var(--gold-primary);
    margin-right: 0.6rem;
    font-size: 1.1rem;
}

.schedule-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    position: relative;
    padding-left: 1rem;
}

/* Linha da linha do tempo */
.schedule-list::before {
    content: '';
    position: absolute;
    left: calc(2rem + 1rem); /* Centralizado com o círculo do badge */
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(240, 208, 144, 0.05), rgba(240, 208, 144, 0.25) 20%, rgba(240, 208, 144, 0.25) 80%, rgba(240, 208, 144, 0.05));
}

.schedule-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.invite-screen.active .schedule-item {
    opacity: 1;
    transform: translateY(0);
}

/* Delay em cascata para os itens da lista */
.invite-screen.active .schedule-item:nth-child(1) { transition-delay: 0.3s; }
.invite-screen.active .schedule-item:nth-child(2) { transition-delay: 0.5s; }
.invite-screen.active .schedule-item:nth-child(3) { transition-delay: 0.7s; }

.time-badge {
    background: linear-gradient(135deg, var(--gold-deep) 0%, rgba(20, 18, 18, 0.9) 100%);
    border: 1px solid rgba(240, 208, 144, 0.25);
    color: var(--gold-primary);
    font-family: var(--font-serif);
    font-size: 0.8rem;
    font-weight: 700;
    width: 4rem;
    height: 2.1rem;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.event-details {
    flex-grow: 1;
    min-width: 0;
    padding-top: 0.2rem;
}

.event-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-white);
    margin-bottom: 0.3rem;
}

.event-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.event-loc {
    font-size: 0.82rem;
    color: var(--gold-primary);
    font-weight: 400;
}

.event-loc i {
    font-size: 0.75rem;
    margin-right: 0.3rem;
}

/* LOCALIZAÇÃO E ENDEREÇO */
.location-box {
    display: flex;
    align-items: center;
    background: rgba(240, 208, 144, 0.02);
    border: 1px solid rgba(240, 208, 144, 0.08);
    border-radius: 6px;
    padding: 1.2rem 1.6rem;
    margin-top: 1.8rem;
    text-align: left;
    gap: 1.2rem;
}

.location-box .icon-gold {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.location-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 300;
    line-height: 1.5;
    min-width: 0;
}

.location-text strong {
    color: var(--text-white);
    font-weight: 500;
    font-family: var(--font-serif);
    letter-spacing: 0.04em;
}

/* RODAPÉ DO CONVITE */
.invite-footer {
    margin-top: 2rem;
}

.rsvp-text {
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: var(--text-champagne);
    margin-bottom: 1.2rem;
}

/* BOTÃO RSVP PREMIUM */
.rsvp-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    color: #121010;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.9rem 2rem;
    border-radius: 40px;
    box-shadow: 
        0 10px 25px rgba(240, 208, 144, 0.18),
        0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-medium);
    margin-bottom: 2rem;
    cursor: pointer;
    border: none;
    outline: none;
}

.rsvp-button:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 15px 30px rgba(240, 208, 144, 0.3),
        0 6px 15px rgba(0, 0, 0, 0.4);
    filter: brightness(1.05);
}

.rsvp-button:active {
    transform: translateY(1px);
}

.rsvp-btn-text i {
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

/* LOGO DE RODAPÉ DISCRETA */
.footer-logo-container {
    opacity: 0.4;
    transition: opacity var(--transition-medium);
    margin-top: 1.5rem;
}

.footer-logo-container:hover {
    opacity: 0.7;
}

.footer-logo {
    height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(1.8);
}



/* 8. ANIMAÇÕES KEYFRAMES */

@keyframes buttonPulse {
    0% {
        transform: scale(1);
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.6),
            0 0 15px rgba(240, 208, 144, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
    50% {
        transform: scale(1.025);
        box-shadow: 
            0 18px 40px rgba(0, 0, 0, 0.7),
            0 0 25px rgba(240, 208, 144, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        border-color: rgba(240, 208, 144, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 
            0 15px 35px rgba(0, 0, 0, 0.6),
            0 0 15px rgba(240, 208, 144, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
    }
}

@keyframes shineLoop {
    0% {
        left: -150%;
    }
    15% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

@keyframes floatBadge {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Animações de entrada no Hero */
.animate-fade-in-down {
    animation: fadeInDown 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
    animation-fill-mode: forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 9. RESPONSIVIDADE (MEDIA QUERIES) */

@media (max-width: 991px) {
    .invite-screen {
        overflow-y: auto;
        overflow-x: hidden;
        align-items: flex-start;
        padding: 2.5rem 1.5rem;
        height: auto;
        min-height: 100vh;
    }
    
    .invite-container {
        max-width: 650px;
        width: 100%;
    }
    
    .invite-columns {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .invite-column-right {
        text-align: center;
    }
    

    
    .invite-card {
        padding: 3.5rem 2.5rem;
    }
    
    .divider-gold {
        margin: 2rem auto;
    }
    
    .schedule-container {
        margin-bottom: 2.5rem;
    }
    
    .schedule-date {
        margin-bottom: 2rem;
    }
    
    .schedule-list {
        gap: 1.5rem;
    }
    
    .schedule-list::before {
        left: calc(2.25rem + 1rem); /* Alinhamento correto para o badge maior no mobile */
    }
    
    .time-badge {
        width: 4.5rem;
        height: 2.3rem;
        font-size: 0.85rem;
    }
    
    .location-box {
        margin-top: 1.8rem;
        padding: 1.1rem 1.3rem;
    }
    
    .rsvp-button {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-screen {
        align-items: flex-start;
        padding-top: calc(12vh + 40px);
    }
    
    .logo-wrapper {
        margin-bottom: 3rem;
    }

    .invite-card {
        padding: 3rem 2rem;
    }
    
    .invite-title {
        font-size: 2.8rem;
    }
    
    .divider-gold {
        width: 80%;
        margin: 2rem auto;
    }
    
    .schedule-date {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }
    
    .schedule-list::before {
        left: calc(1.75rem + 1rem);
    }
    
    .time-badge {
        width: 3.5rem;
        height: 2rem;
        font-size: 0.78rem;
    }
    
    .event-title {
        font-size: 0.98rem;
    }
    
    .event-desc {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .hero-screen {
        align-items: flex-start;
        padding-top: calc(8vh + 40px);
    }
    
    .logo-wrapper {
        margin-bottom: 2.5rem;
    }

    .invite-screen {
        padding: 1.5rem 0.8rem;
    }
    
    .invite-card {
        padding: 2rem 1rem;
    }
    
    .corner-border {
        width: 20px;
        height: 20px;
    }
    
    .corner-border.top-left { top: 10px; left: 10px; }
    .corner-border.top-right { top: 10px; right: 10px; }
    .corner-border.bottom-left { bottom: 10px; left: 10px; }
    .corner-border.bottom-right { bottom: 10px; right: 10px; }
    
    .invite-card::before {
        top: 15px;
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
    

    
    .invite-title {
        font-size: 2rem;
    }
    
    .invite-subtitle {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }
    
    .schedule-date {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .schedule-list {
        gap: 1.2rem;
        padding-left: 0.5rem;
    }
    
    .schedule-list::before {
        left: calc(1.75rem + 0.5rem);
    }
    
    .time-badge {
        width: 3.5rem;
        height: 1.9rem;
        font-size: 0.75rem;
    }
    
    .schedule-item {
        gap: 0.8rem;
    }
    
    .location-box {
        padding: 0.8rem;
        gap: 0.6rem;
        margin-top: 1.2rem;
    }
    
    .location-text {
        font-size: 0.8rem;
    }
    
    .rsvp-button {
        padding: 0.9rem 1.5rem;
        font-size: 0.78rem;
        letter-spacing: 0.1em;
        width: 100%;
        max-width: 270px;
    }
    
    .brand-logo {
        max-width: 280px;
    }
    
    .footer-logo {
        max-height: 28px;
    }
}
