/* LuxeEvents - Luxury Wedding Theme */

:root {
    --gold: #C9A962;
    --gold-light: #E8D5A3;
    --gold-dark: #9A7B3C;
    --white: #FFFFFF;
    --cream: #FDFBF7;
    --charcoal: #2C2C2C;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(201, 169, 98, 0.35);
    --shadow-luxury: 0 8px 32px rgba(44, 44, 44, 0.08);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--cream);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.luxury-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(201, 169, 98, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(201, 169, 98, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #FDFBF7 0%, #F5F0E8 50%, #FDFBF7 100%);
    z-index: -2;
}

.luxury-overlay {
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9A962' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

.main-content.with-nav { padding-top: 80px; }

/* Typography */
.luxury-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: 0.02em;
}

.text-gold { color: var(--gold) !important; }

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-luxury);
}

/* Navbar */
.luxury-nav {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.luxury-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--charcoal) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-icon { color: var(--gold); }

.luxury-nav .nav-link {
    color: var(--charcoal) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
}

.luxury-nav .nav-link:hover { color: var(--gold) !important; background: rgba(201, 169, 98, 0.1); }

.navbar-toggler { border-color: var(--gold); }
.navbar-toggler-icon { filter: invert(0.3); }

/* Buttons */
.btn-luxury {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white) !important;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.35);
}

.btn-luxury:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.45);
    color: var(--white) !important;
}

.btn-outline-luxury {
    background: transparent;
    color: var(--gold-dark) !important;
    border: 2px solid var(--gold);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-outline-luxury:hover {
    background: var(--gold);
    color: var(--white) !important;
    transform: translateY(-2px);
}

.btn-luxury-sm {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--white) !important;
    border-radius: 50px;
    padding: 0.4rem 1.2rem !important;
    font-size: 0.85rem;
}

.link-luxury { color: var(--gold-dark); text-decoration: none; font-weight: 500; transition: var(--transition); }
.link-luxury:hover { color: var(--gold); }

/* Forms */
.luxury-input {
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.luxury-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
    background: var(--white);
}

/* Hero */
.hero-section { position: relative; }

.hero-badge {
    display: inline-block;
    background: rgba(201, 169, 98, 0.15);
    color: var(--gold-dark);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    animation: pulse-ring 3s ease-in-out infinite;
}

.hero-camera {
    font-size: 5rem;
    color: var(--gold);
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

.floating-hearts span {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--gold);
    transform: rotate(45deg);
    opacity: 0.3;
    animation: float-heart 6s ease-in-out infinite;
}

.floating-hearts span:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.floating-hearts span:nth-child(2) { top: 60%; right: 20%; animation-delay: 2s; }
.floating-hearts span:nth-child(3) { bottom: 25%; left: 30%; animation-delay: 4s; }

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes float-heart {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
    50% { transform: rotate(45deg) translateY(-20px); opacity: 0.6; }
}

/* Features */
.feature-card { text-align: center; transition: var(--transition); }
.feature-card:hover { transform: translateY(-6px); }

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--white);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.feature-card p { color: #666; font-size: 0.95rem; line-height: 1.6; }

/* Auth */
.auth-card { max-width: 100%; }
.auth-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--white);
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover { transform: translateY(-4px); }

.stat-card .stat-icon {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--charcoal);
}

.stat-card .stat-label {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-header-luxury {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1rem;
}

/* Tables */
.table-luxury { --bs-table-bg: transparent; }
.table-luxury thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    border-bottom: 1px solid var(--glass-border);
    font-weight: 600;
}

.table-luxury tbody td {
    vertical-align: middle;
    border-bottom: 1px solid rgba(201, 169, 98, 0.1);
    padding: 1rem 0.75rem;
}

.badge-success, .badge.badge-success { background: rgba(40, 167, 69, 0.15) !important; color: #28a745 !important; }
.badge-secondary, .badge.badge-secondary { background: rgba(108, 117, 125, 0.15) !important; color: #6c757d !important; }
.badge-warning, .badge.badge-warning { background: rgba(201, 169, 98, 0.2) !important; color: var(--gold-dark) !important; }

/* Alerts */
.alert-luxury { border-radius: 12px; border: none; }

/* Footer */
.luxury-footer {
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.5);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.footer-tagline { color: #888; font-size: 0.9rem; }
.footer-copy { color: #aaa; font-size: 0.8rem; margin-top: 1rem; }

/* Install */
.install-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--white);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--gold-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

/* QR */
.qr-wrapper {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 16px;
    display: inline-block;
    border: 2px solid var(--gold-light);
    box-shadow: var(--shadow-luxury);
}

.break-all { word-break: break-all; }

/* Event Page */
.event-hero {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.12) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-bottom: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.event-badge {
    display: inline-block;
    color: var(--event-theme, var(--gold));
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.event-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.event-date, .event-location { color: #666; margin-bottom: 0.5rem; }
.event-desc { max-width: 600px; margin: 1rem auto; color: #555; line-height: 1.7; }
.event-stats { display: flex; gap: 2rem; justify-content: center; margin-top: 1.5rem; color: var(--gold-dark); font-weight: 500; }

.event-tabs {
    border-bottom: 2px solid var(--glass-border);
    margin-bottom: 1.5rem;
}

.event-tabs .nav-link {
    color: #888;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.event-tabs .nav-link.active {
    color: var(--gold-dark);
    border-bottom: 2px solid var(--gold);
    background: transparent;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed rgba(201, 169, 98, 0.5);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.5);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--gold);
    background: rgba(201, 169, 98, 0.08);
    transform: scale(1.01);
}

.upload-icon { font-size: 3rem; color: var(--gold); display: block; margin-bottom: 1rem; }
.upload-text { font-weight: 600; margin-bottom: 0.5rem; }
.upload-hint { font-size: 0.85rem; color: #888; margin: 0.25rem 0; }

.upload-queue-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
    margin-bottom: 0.5rem;
}

.upload-queue-item .progress { flex: 1; height: 6px; }

.upload-queue-item .status-icon { font-size: 1.25rem; }
.upload-queue-item .status-icon.success { color: #28a745; }
.upload-queue-item .status-icon.error { color: #dc3545; }

.upload-progress .progress-bar {
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    transition: width 0.3s ease;
}

/* Camera */
.camera-preview-wrap {
    position: relative;
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-preview { width: 100%; max-height: 400px; object-fit: cover; }

.camera-placeholder {
    text-align: center;
    color: #666;
    padding: 3rem;
}

.camera-placeholder i { font-size: 4rem; color: var(--gold); opacity: 0.5; display: block; margin-bottom: 1rem; }

.capture-preview img, .capture-preview video {
    max-width: 100%;
    border-radius: 12px;
}

/* Animations */
.fade-in { animation: fadeIn 0.6s ease forwards; }
.fade-in-up { animation: fadeInUp 0.7s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }

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

/* Responsive */
@media (max-width: 768px) {
    .glass-card { padding: 1.5rem; border-radius: 16px; }
    .hero-visual { height: 280px; margin-top: 2rem; }
    .dashboard-header { flex-direction: column; align-items: flex-start; }
}
