/* =============================================
   ANNIVERSARY WEBSITE - STYLES
   A romantic, timeless design with floral accents
   ============================================= */

:root {
    /* Color Palette - Soft, Romantic */
    --cream: #FAF8F3;
    --soft-white: #FFFFFF;
    --sage: #A8B5A8;
    --dusty-rose: #D4A5A5;
    --charcoal: #3A3A3A;
    --gold-accent: #C9A961;
    
    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
}

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

body {
    font-family: var(--font-body);
    background: linear-gradient(135deg, var(--cream) 0%, #F5F1E8 100%);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* =============================================
   PASSWORD PROTECTION OVERLAY
   ============================================= */

.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FAF8F3 0%, #F0EBE0 50%, #E8DFD0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.password-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl) var(--spacing-lg);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: slideUp 0.8s ease-out 0.3s both;
}

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

.floral-accent {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.3;
}

.floral-accent::before,
.floral-accent::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: var(--sage);
}

.floral-accent::before {
    width: 8px;
    height: 8px;
    top: 10px;
    left: 15px;
}

.floral-accent::after {
    width: 6px;
    height: 6px;
    top: 5px;
    left: 25px;
}

.floral-accent.top-left {
    top: -10px;
    left: -10px;
    transform: rotate(-15deg);
}

.floral-accent.top-right {
    top: -10px;
    right: -10px;
    transform: rotate(15deg);
}

.floral-accent.bottom-left {
    bottom: -10px;
    left: -10px;
    transform: rotate(15deg);
}

.floral-accent.bottom-right {
    bottom: -10px;
    right: -10px;
    transform: rotate(-15deg);
}

.password-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 2px;
}

.password-subtitle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--sage);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    letter-spacing: 1px;
}

#passwordForm {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

#passwordInput {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(168, 181, 168, 0.3);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    letter-spacing: 3px;
}

#passwordInput:focus {
    outline: none;
    border-color: var(--sage);
    background: var(--soft-white);
    transform: scale(1.02);
}

#passwordForm button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--sage) 0%, var(--dusty-rose) 100%);
    color: var(--soft-white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    text-transform: uppercase;
}

#passwordForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(168, 181, 168, 0.3);
}

#passwordForm button:active {
    transform: translateY(0);
}

.error-message {
    color: var(--dusty-rose);
    font-size: 0.9rem;
    margin-top: var(--spacing-xs);
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

/* =============================================
   MAIN CONTENT
   ============================================= */

.main-content {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.main-content.show {
    opacity: 1;
}

.hidden {
    display: none;
}

/* =============================================
   HEADER
   ============================================= */

.header {
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
    animation: headerFadeIn 1s ease-out 0.5s both;
}

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

.header-content {
    position: relative;
    z-index: 2;
}

.site-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 3px;
}

.site-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--sage);
    font-weight: 300;
    letter-spacing: 2px;
}

.floral-decoration {
    position: absolute;
    top: 20px;
    right: 10%;
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.baby-breath {
    width: 80px;
    height: 80px;
}

/* =============================================
   MAP CONTAINER
   ============================================= */

.map-container {
    padding: var(--spacing-lg) var(--spacing-md);
    max-width: 1400px;
    margin: 0 auto;
    animation: mapFadeIn 1s ease-out 0.8s both;
}

@keyframes mapFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.map-wrapper {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: var(--spacing-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.map-background-container {
    position: relative;
    width: 100%;
    height: auto;
}

/* For custom map image */
.map-background-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.7;
    border-radius: 20px;
    filter: saturate(0.9) brightness(1.1);
}

/* For SVG map */
.svg-map {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
}

/* Markers layer sits on top */
.markers-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks to pass through */
}

.markers-layer #cityMarkers {
    pointer-events: all; /* But enable clicks on markers */
}

#worldMap {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.05));
}

/* =============================================
   MAP ELEMENTS
   ============================================= */

.continents {
    opacity: 0.6;
}

.continent {
    fill: var(--sage);
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 1;
    transition: all 0.3s ease;
}

.continent:hover {
    fill: #96A696;
}

/* City Markers */
.city-marker {
    cursor: pointer;
    transition: all 0.3s ease;
}

.marker-pulse {
    fill: var(--dusty-rose);
    opacity: 0.3;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        r: 8;
        opacity: 0.3;
    }
    50% {
        r: 12;
        opacity: 0.1;
    }
}

.marker-dot {
    fill: var(--dusty-rose);
    stroke: var(--soft-white);
    stroke-width: 2;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

.city-marker:hover .marker-dot {
    fill: var(--gold-accent);
    r: 6;
}

.city-marker:hover .marker-pulse {
    fill: var(--gold-accent);
    animation: pulseFast 1s ease-in-out infinite;
}

@keyframes pulseFast {
    0%, 100% {
        r: 8;
        opacity: 0.4;
    }
    50% {
        r: 15;
        opacity: 0;
    }
}

.city-label {
    fill: var(--charcoal);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    text-anchor: middle;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.city-marker:hover .city-label {
    opacity: 1;
    transform: translateY(-3px);
}

/* =============================================
   MAP INSTRUCTIONS
   ============================================= */

.map-instructions {
    text-align: center;
    margin-top: var(--spacing-md);
    animation: fadeIn 1s ease-out 1.2s both;
}

.map-instructions p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--sage);
    font-weight: 300;
    letter-spacing: 1px;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-text {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--charcoal);
    font-weight: 300;
    letter-spacing: 1px;
}

.footer-floral {
    opacity: 0.5;
    animation: float 4s ease-in-out infinite;
}

.baby-breath-small {
    width: 40px;
    height: 40px;
    color: var(--sage);
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */

@media (max-width: 768px) {
    .site-title {
        font-size: 2.5rem;
    }
    
    .site-subtitle {
        font-size: 0.95rem;
    }
    
    .password-title {
        font-size: 2rem;
    }
    
    .password-container {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .map-wrapper {
        padding: var(--spacing-sm);
    }
    
    .floral-decoration {
        display: none;
    }
    
    .city-label {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .header,
    .map-container,
    .footer {
        padding: var(--spacing-md) var(--spacing-sm);
    }
}

/* =============================================
   LOADING STATES
   ============================================= */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Smooth transitions for everything */
* {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
