/* style.css */
/* Elegant & Premium Wedding Invite Design System */

:root {
    --primary: #c5a059;       /* Warm Rich Gold */
    --primary-light: #e5cf9c; /* Soft Creamy Gold */
    --primary-dark: #9a7837;  /* Deep Antique Gold */
    --secondary: #e8c5c8;     /* Elegant Blush Pink */
    --secondary-dark: #b88a8d;/* Dusty Rose */
    --accent: #2e4a3f;        /* Deep Emerald Sage */
    --accent-light: #eff4f1;  /* Soft Sage Tint */
    --dark: #2c3539;          /* Slate/Charcoal */
    --light: #fdfbf7;         /* Warm Ivory/Cream */
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 10px 30px rgba(197, 160, 89, 0.08);
    --shadow-hover: 0 15px 40px rgba(197, 160, 89, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', sans-serif;
    --font-script: 'Great Vibes', cursive;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--light);
    color: var(--dark);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--dark);
}

.script-text {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Layout Utilities */
.section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--primary);
    margin: 1rem auto 0;
}

.section-subtitle {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-dark);
    margin-bottom: 3rem;
    font-weight: 500;
}

/* Floating Music Player */
.music-controller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.music-controller button {
    background-color: var(--white);
    border: 1px solid var(--primary-light);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.music-controller button:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
}

.music-controller.playing button {
    animation: rotateMusic 4s linear infinite;
    background-color: var(--primary);
    color: var(--white);
}

.music-tooltip {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--white);
    color: var(--dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.music-controller:hover .music-tooltip {
    opacity: 1;
    right: 60px;
}

@keyframes rotateMusic {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    transition: var(--transition);
}

.header.scrolled .header-container {
    padding: 1rem 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: 2px;
}

.nav-menu ul {
    display: flex;
    gap: 2.5rem;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--dark);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.active {
    color: var(--primary);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--dark);
    transition: var(--transition);
}

/* Page Wrapper */
.page-wrapper {
    margin-top: 0; /* Index page is fullscreen, others use padding top */
    min-height: 80vh;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)), url('https://images.unsplash.com/photo-1519741497674-611481863552?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    animation: fadeInScale 1.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 400;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 1.5rem;
}

.hero-date {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    margin-bottom: 2rem;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-location {
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    border: 1px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(197, 160, 89, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

/* Countdown Section */
.countdown-section {
    background-color: var(--accent-light);
    border-top: 1px solid rgba(197,160,89,0.1);
    border-bottom: 1px solid rgba(197,160,89,0.1);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1rem;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(197, 160, 89, 0.15);
    box-shadow: var(--shadow);
    min-width: 110px;
    padding: 1.5rem;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
}

.countdown-num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-dark);
    margin-top: 0.5rem;
    font-weight: 600;
}

/* Story/Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 2rem 3rem;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '♥';
    position: absolute;
    width: 28px;
    height: 28px;
    right: -14px;
    background-color: var(--white);
    border: 2px solid var(--primary);
    top: 2.2rem;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.7rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
}

.right::after {
    left: -14px;
}

.timeline-date {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

.timeline-item p {
    color: #666;
    font-size: 0.95rem;
}

/* Details Page styles */
.details-page {
    padding-top: 130px;
    background-color: var(--light);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.event-card {
    display: flex;
    gap: 1.5rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.event-icon {
    font-size: 2rem;
    color: var(--primary);
    display: flex;
    align-items: flex-start;
    padding-top: 0.3rem;
}

.event-time {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.event-title {
    margin-bottom: 0.5rem;
}

.event-desc {
    color: #666;
    font-size: 0.9rem;
}

.details-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#map {
    height: 350px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--primary-light);
}

.dress-code-box {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: var(--accent-light);
    border: 1px dashed var(--primary);
}

.dress-code-text {
    flex: 1;
}

/* Gallery Page styling */
.gallery-page {
    padding-top: 130px;
}

.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    background-color: var(--white);
    margin-bottom: 1.5rem;
    break-inside: avoid;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(0,0,0,0.02);
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 53, 57, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
    transform: scale(0.8);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* Pure CSS/JS Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 85%;
    max-height: 80%;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
    border: 3px solid var(--white);
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* RSVP Form styling */
.rsvp-page {
    padding-top: 130px;
    background: linear-gradient(rgba(253, 251, 247, 0.8), rgba(253, 251, 247, 0.8)), url('https://images.unsplash.com/photo-1469371670807-013ccf25f16a?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
    min-height: 100vh;
}

.rsvp-form-container {
    max-width: 650px;
    margin: 3rem auto 0;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark);
    background-color: var(--white);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 4px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Custom Checkbox/Radio */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-btn {
    flex: 1;
    position: relative;
}

.radio-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-btn label {
    display: block;
    text-align: center;
    padding: 0.8rem 1rem;
    background-color: var(--white);
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.radio-btn input[type="radio"]:checked + label {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Alert Notification states */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

/* Admin Dashboard styling */
.admin-page {
    padding-top: 130px;
    background-color: #f8fafc;
}

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

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03), 0 2px 4px -1px rgba(0,0,0,0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-icon.gold { background-color: rgba(197, 160, 89, 0.12); color: var(--primary); }
.stat-icon.green { background-color: rgba(46, 74, 63, 0.12); color: var(--accent); }
.stat-icon.rose { background-color: rgba(232, 197, 200, 0.15); color: var(--secondary-dark); }
.stat-icon.blue { background-color: rgba(15, 23, 42, 0.08); color: var(--dark); }

.stat-info h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

/* Admin Auth Card */
.auth-card {
    max-width: 450px;
    margin: 4rem auto;
    background-color: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
}

/* Table Card styling */
.table-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-top: 1rem;
}

.table-responsive {
    overflow-x: auto;
}

.rsvp-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.rsvp-table th {
    background-color: #f8fafc;
    color: #475569;
    padding: 1rem 1.5rem;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.rsvp-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.rsvp-table tr:hover td {
    background-color: #f8fafc;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success { background-color: #d1e7dd; color: #0f5132; }
.badge-danger { background-color: #f8d7da; color: #842029; }

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 4px;
    color: #64748b;
    transition: var(--transition);
}

.action-btn:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

.action-btn.delete:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

/* Footer styling */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 5rem 2rem 3rem;
    text-align: center;
}

.footer-title {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer-quote {
    font-family: var(--font-script);
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.footer-socials {
    margin-bottom: 2.5rem;
}

.footer-socials a {
    display: inline-block;
    color: var(--primary);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    border-radius: 50%;
    line-height: 38px;
}

.footer-socials a:hover {
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.copyright {
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #888;
    text-transform: uppercase;
}

/* Keyframes for animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-title { font-size: 4rem; }
    .gallery-grid { column-count: 2; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .section { padding: 4rem 1.5rem; }
    .section-title { font-size: 2.2rem; }
    
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        padding: 6rem 2rem;
        box-shadow: -5px 0 30px rgba(0,0,0,0.05);
        transition: var(--transition);
        z-index: 1050;
    }
    
    .nav-menu.active { right: 0; }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 2rem;
    }
    
    .nav-menu a { font-size: 1.1rem; }
    
    .hero-title { font-size: 3rem; }
    
    .countdown-container {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .countdown-box { min-width: 85px; padding: 1rem; }
    .countdown-num { font-size: 1.8rem; }
    
    .timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; }
    .left, .right { text-align: left; }
    .left::after, .right::after { left: 16px; right: auto; }
    
    .details-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    
    .form-row { grid-template-columns: 1fr; gap: 0; }
    
    .admin-stats { grid-template-columns: 1fr; }
    .admin-header { flex-direction: column; align-items: stretch; }
    
    .music-controller { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
    .gallery-grid { column-count: 1; }
    .hero-title { font-size: 2.5rem; }
    .script-text { font-size: 2.5rem; }
}
