/* assets/css/style.css - Sleek Dark Charcoal & Onyx Luxury Gold Invitation System */

:root {
    --bg-dark: #0a0b0d;
    --bg-card: rgba(20, 23, 30, 0.88);
    --bg-card-border: rgba(212, 175, 55, 0.35);
    --gold-primary: #d4af37;
    --gold-light: #fef08a;
    --gold-bright: #fcf6ba;
    --gold-dark: #854d0e;
    --gold-gradient: linear-gradient(135deg, #bf953f 0%, #fcf6ba 25%, #b38728 50%, #fbf5b7 75%, #aa771c 100%);
    --emerald-primary: #10b981;
    --text-main: #f8fafc;
    --text-muted: #a1a1aa;
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.16) 0%, transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 0% 50%, rgba(30, 32, 40, 0.5) 0%, transparent 70%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Canvas background for gold dust and fireworks */
#effectsCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

/* Base Container for Tablet Portrait */
.app-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* Top Logos Header (Left to Right Sequence) */
.logos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 20, 26, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logos-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.logo-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-item img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.7));
    transition: transform 0.3s ease;
}

.logo-item img:hover {
    transform: scale(1.06);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(18, 20, 26, 0.9);
    border: 1px solid var(--bg-card-border);
    border-radius: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(12px);
}

.nav-brand {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold-light);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-badge {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--gold-bright);
    background: rgba(212, 175, 55, 0.15);
}

/* Dark Charcoal Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bg-card-border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

/* Title & Royal Typography */
h1, h2, h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
}

.title-grand {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-size: 1.9rem;
    font-weight: 900;
    text-align: center;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    filter: drop-shadow(0 2px 10px rgba(212, 175, 55, 0.25));
}

.subtitle-event {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

/* Invitee Name Calligraphy Font */
.invitee-name-grand {
    font-family: 'Great Vibes', cursive;
    font-size: 3.8rem;
    line-height: 1.2;
    color: #ffffff;
    background: linear-gradient(180deg, #ffffff 0%, #fef08a 60%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.45));
    margin: 10px 0;
    text-align: center;
    padding: 0 10px;
}

/* Regal Invitation Message Calligraphy & Italic Serif Typography */
.invitation-message-box {
    background: rgba(10, 11, 13, 0.85);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.05);
    margin-bottom: 25px;
    position: relative;
}

.invitation-message-text {
    font-family: 'Cormorant Garamond', 'Playfair Display', serif;
    font-style: italic;
    font-weight: 600;
    font-size: 1.4rem;
    line-height: 1.85;
    color: #f8fafc;
    text-align: center;
    letter-spacing: 0.4px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Royal Corner Accents for Cards */
.royal-corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--gold-primary);
    pointer-events: none;
}
.royal-corner-tl { top: 12px; left: 12px; border-right: none; border-bottom: none; }
.royal-corner-tr { top: 12px; right: 12px; border-left: none; border-bottom: none; }
.royal-corner-bl { bottom: 12px; left: 12px; border-right: none; border-top: none; }
.royal-corner-br { bottom: 12px; right: 12px; border-left: none; border-top: none; }

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--gold-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(10, 11, 13, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--radius-md);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.3);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-gold {
    background: var(--gold-gradient);
    color: #0a0b0d;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.55);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-light);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
}

/* Floating Metallic Gold Tap to Reveal Button (No White Border) */
.reveal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    min-height: 440px;
}

.btn-reveal-grand {
    position: relative;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fef08a 0%, #d4af37 55%, #854d0e 100%);
    border: 2px solid rgba(254, 240, 138, 0.85); /* Seamless Gold Edge */
    color: #0a0b0d;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 
        0 0 50px rgba(212, 175, 55, 0.6),
        0 0 100px rgba(212, 175, 55, 0.25),
        inset 0 0 25px rgba(255, 255, 255, 0.4);
    animation: goldAuraPulse 2.4s infinite ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
    overflow: hidden;
}

.btn-reveal-grand::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    animation: rotateLight 8s linear infinite;
    pointer-events: none;
}

.btn-reveal-grand:active {
    transform: scale(0.94);
    box-shadow: 0 0 75px rgba(252, 211, 77, 0.9);
}

@keyframes goldAuraPulse {
    0% {
        box-shadow: 0 0 35px rgba(212, 175, 55, 0.5), 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    50% {
        box-shadow: 0 0 70px rgba(252, 211, 77, 0.85), 0 0 0 30px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 35px rgba(212, 175, 55, 0.5), 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

@keyframes rotateLight {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-reveal-grand .reveal-title {
    font-family: 'Cinzel Decorative', 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.15rem;
    line-height: 1.3;
    color: #0a0b0d;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    z-index: 2;
}

.btn-reveal-grand .reveal-icon {
    font-size: 2.6rem;
    margin-bottom: 6px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    z-index: 2;
}

/* Dark Charcoal Royal Invitation Card */
#invitationStage {
    position: relative;
    width: 100%;
}

.invitation-card-grand {
    background: linear-gradient(145deg, #141720 0%, #0a0b0e 100%);
    border: 2px solid var(--gold-primary);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), inset 0 0 40px rgba(212, 175, 55, 0.12);
    opacity: 0;
    transform: translateY(50px) scale(0.92);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.invitation-card-grand.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered line-by-line animations */
.revealed .animate-stagger-1 { animation: fadeInUp 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.revealed .animate-stagger-2 { animation: fadeInUp 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both; }
.revealed .animate-stagger-3 { animation: fadeInUp 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.revealed .animate-stagger-4 { animation: fadeInUp 0.8s 0.8s cubic-bezier(0.16, 1, 0.3, 1) both; }

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

/* Guest Selector Cards */
.guest-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
}

.guest-card {
    background: rgba(18, 20, 26, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.guest-card:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.1);
    transform: translateX(6px);
}

.guest-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
}

.guest-meta {
    font-size: 0.88rem;
    color: var(--gold-light);
    margin-top: 3px;
}

/* Status Badges */
.badge-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.badge-pending {
    background: rgba(212, 175, 55, 0.18);
    color: var(--gold-light);
    border: 1px solid var(--gold-primary);
}

.badge-completed {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid var(--emerald-primary);
}

/* Admin Table */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.admin-table th, .admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-table th {
    font-family: 'Cinzel', serif;
    color: var(--gold-light);
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: rgba(10, 11, 13, 0.8);
}
