:root {
    --nav-bg: rgba(15, 23, 42, 0.65);
    --nav-border: rgba(255, 255, 255, 0.15);
    --nav-btn-bg: rgba(255, 255, 255, 0.08);
    --nav-btn-border: rgba(255, 255, 255, 0.08);
    --nav-btn-color: rgba(255, 255, 255, 0.75);
    --nav-btn-active-bg: rgba(255, 255, 255, 0.22);
    --nav-btn-active-border: rgba(255, 255, 255, 0.35);
    --nav-btn-active-color: #ffffff;
}

/* Global Reset & Base Styling for Invitations */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
    /* overflow-x is NOT set here — this global rule would prevent Safari mobile
       from collapsing its address bar. Each theme handles overflow in its own wrapper. */
}

/* Base sections */
section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
    padding: 4rem 1.5rem;
}

.hidden {
    display: none !important;
}

/* Floating Music Player */
.music-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.music-player.has-nav {
    bottom: 110px; /* Shift up when bottom nav bar is visible */
}

.music-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(201, 168, 76, 0.9); /* Gold */
    border: 2px solid #ffffff;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    outline: none;
    transition: all 0.3s ease;
}

.music-btn:hover {
    transform: scale(1.1);
    background: rgb(201, 168, 76);
}

.music-btn.playing {
    animation: rotate 4s linear infinite;
}

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

/* Vertical Navigation Dots */
/* Floating Bottom Navigation Bar */
.nav-bottom-bar {
    position: fixed;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    max-width: calc(100% - 32px);
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-bottom-bar.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-bottom-bar .nav-dot {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--nav-btn-bg);
    border: 1px solid var(--nav-btn-border);
    color: var(--nav-btn-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.nav-bottom-bar .nav-dot svg {
    width: 24px;
    height: 24px;
    color: inherit;
}

.nav-bottom-bar .nav-dot:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.nav-bottom-bar .nav-dot.active {
    background: var(--nav-btn-active-bg) !important;
    border-color: var(--nav-btn-active-border) !important;
    color: var(--nav-btn-active-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Intro Screen */
.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0A0A0A;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #F5F0E8;
    transition: opacity 1s ease-out;
}

/* Shared RSVP & Comments Styles */
.rsvp-section, .comments-section, .gift-section {
    background-size: cover;
    background-position: center;
    color: #F5F0E8;
    text-align: center;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #C9A84C;
}

.form-card, .comments-card, .bank-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

/* Map Embed container */
.map-container {
    width: 100%;
    max-width: 500px;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.open-maps-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #C9A84C;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.open-maps-btn:hover {
    background: #b89842;
    color: #fff;
}

/* Copy to Clipboard Notification styling */
.copy-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(201, 168, 76, 0.9);
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-toast.show {
    opacity: 1;
}

/* Comments flower helpers hidden by default */
.comments-flower-left,
.comments-flower-right {
    display: none;
}
