/* assets/css/style.css */
/* Elegant Quinceañera Theme */

:root {
    --bg-pink: #f48fb1; /* Main background outside card */
    --card-bg: #ffffff; /* Inside card */
    --text-dark: #333333;
    --text-muted: #777777;
    --gold: #dfb85b; /* Crown and accents */
    --pink-accent: #e91e63; /* Buttons and highlights */
    --pink-light: #fce4ec; /* Decor backgrounds */
}

html {
    scroll-behavior: smooth;
    background-color: #0c0c0c;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0c0c0c;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: block; /* Prevent flex centering of the whole page */
}

.business-card.quinceanera-theme {
    background: var(--card-bg);
    border-radius: 5px; /* Sharp elegant edges like paper */
    padding: 40px 30px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    text-align: center;
    position: relative;
    overflow: hidden; /* Contains the absolutely positioned decor */
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid #ffdde1;
}

/* Pseudo-elements for Watercolor spots */
.business-card.quinceanera-theme::before,
.business-card.quinceanera-theme::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    opacity: 0.5;
}

.business-card.quinceanera-theme::before {
    top: -50px;
    left: -50px;
    background: radial-gradient(circle, rgba(233,30,99,0.3) 0%, rgba(255,255,255,0) 70%);
}

.business-card.quinceanera-theme::after {
    bottom: -50px;
    right: -50px;
    background: radial-gradient(circle, rgba(255,152,0,0.2) 0%, rgba(255,255,255,0) 70%);
}

.card-content {
    position: relative;
    z-index: 10; /* Keep content above blurred background elements */
}

/* Elegant Typography */
.crown-icon {
    font-size: 3rem;
    color: var(--gold);
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.theme-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.name {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--pink-accent);
    margin: 5px 0 15px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.subtitle {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.bio-container {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    margin: 0 auto 25px;
    padding: 0 10px;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding-top: 15px;
    padding-bottom: 15px;
}

.event-details {
    margin-bottom: 30px;
    color: var(--pink-accent);
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.event-details i {
    color: var(--gold);
    margin-right: 5px;
}

/* Photo Option (if user adds one) */
.profile-img-container {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    padding: 3px; /* Creates inner ring effect */
    background: transparent;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Interactive Elements */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--pink-light);
    color: var(--pink-accent);
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(233, 30, 99, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(233,30,99,0.2);
}

.contact-btn:hover {
    transform: translateY(-3px);
    background: var(--pink-accent);
    color: white;
    box-shadow: 0 6px 12px rgba(233, 30, 99, 0.2);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 15px;
    border-bottom: none; /* Removed thick border from old design */
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 20%;
    width: 60%;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
}

/* Media Modules */
.multimedia-section, .location-section {
    margin-bottom: 30px;
    text-align: center;
    padding: 15px;
    background: rgba(252, 228, 236, 0.3); /* very light pink bg for sections */
    border-radius: 10px;
    border: 1px dashed rgba(233,30,99,0.2);
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

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

/* Action Buttons */
.location-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--pink-accent);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(233,30,99,0.3);
    transition: all 0.3s ease;
    width: 90%;
    margin: 0 auto;
    border: 1px solid #d81b60;
}

.location-btn:hover {
    background: #d81b60;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(233,30,99,0.4);
    color: white;
}

/* Floating Music Toggle */
.music-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(223, 184, 91, 0.4);
    cursor: pointer;
    z-index: 1000;
    font-size: 1.4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s, background 0.3s;
}

.music-toggle:hover {
    transform: scale(1.1);
    background: #cba245;
}

.music-toggle.playing {
    animation: pulseMusic 2s infinite;
}

@keyframes pulseMusic {
    0% { box-shadow: 0 0 0 0 rgba(223, 184, 91, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(223, 184, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(223, 184, 91, 0); }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-in;
}

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

/* Butterflies and Flowers (CSS Rendered approximations) */
.floral-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

/* Since we don't have actual floral images, we'll use emojis and text-shadowing to create a decorative feel in pure CSS */
.top-left::before {
    content: "🌸 💮"; /* Placeholder for florals */
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 80px;
    opacity: 0.15;
    transform: rotate(45deg);
    filter: drop-shadow(0 0 10px rgba(233,30,99,0.5));
}

.bottom-right::before {
    content: "🌸 🌷";
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 80px;
    opacity: 0.15;
    transform: rotate(-45deg);
    filter: drop-shadow(0 0 10px rgba(233,30,99,0.5));
}

.butterfly {
    position: absolute;
    font-size: 25px;
    opacity: 0.4;
    color: var(--pink-accent);
}

.butterfly::before {
    content: "🦋";
}

.butterfly-1 {
    top: 50px;
    right: 40px;
    transform: rotate(30deg);
}

.butterfly-2 {
    bottom: 120px;
    left: 30px;
    transform: rotate(-20deg) scale(0.8);
}

/* Photo Gallery Carousel Styles */
.gallery-section {
    margin-bottom: 30px;
    text-align: center;
    padding: 15px;
    background: rgba(252, 228, 236, 0.3);
    border-radius: 10px;
    border: 1px dashed rgba(233,30,99,0.2);
}

.gallery-container {
    width: 100%;
    position: relative;
    padding-bottom: 100%; /* 1:1 square aspect ratio for elegance */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: #fff;
    border: 3px solid #ffdde1;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Smooth crossfade effect */
    object-fit: cover;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Splash Screen / Portada de Ingreso */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0c0c0c; /* Black with a slight tint */
    background-image: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    color: #ffffff;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    padding: 20px;
    animation: fadeInSplash 2s ease-out;
}

.splash-title {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    color: var(--gold);
    margin-bottom: 30px;
    text-shadow: 0 4px 15px rgba(223, 184, 91, 0.4);
    line-height: 1.2;
}

.splash-btn {
    padding: 15px 45px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.4s ease;
    outline: none;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.splash-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gold);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.splash-btn:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(223, 184, 91, 0.6);
}

.splash-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

@keyframes fadeInSplash {
    0% { opacity: 0; transform: scale(0.95); filter: blur(5px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

/* Intro Video Splash Screen */
.video-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0c0c0c;
    z-index: 9998; /* Just below the first splash screen */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s;
    padding: 20px;
    box-sizing: border-box;
}

.video-splash.active {
    opacity: 1;
    visibility: visible;
}

.video-splash video {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(223, 184, 91, 0.3);
    border: 1px solid rgba(223, 184, 91, 0.4);
    background: #000;
}

.skip-video-btn {
    margin-top: 30px;
    padding: 10px 30px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skip-video-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #dfb85b;
    color: #dfb85b;
}

/* Phase 3 Cinematic Slider */
.cinema-slider {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: 10;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.cinema-slider.active {
    display: flex;
    animation: fadeInSplash 1s ease-in-out;
}

/* Cinematic Bars effect */
.cinema-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 12vh;
    background-color: #0c0c0c;
    z-index: 10;
    box-shadow: 0 0 30px rgba(0,0,0,0.9);
}
.cinema-bar.top { top: 0; border-bottom: 2px solid rgba(223, 184, 91, 0.2); }
.cinema-bar.bottom { bottom: 0; border-top: 2px solid rgba(223, 184, 91, 0.2); }

.cinema-photos-container {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.cinema-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures whole photo fits without cropping, simulating cinema screening */
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.cinema-slide.active {
    opacity: 1;
}

.skip-cinema-btn {
    position: absolute;
    bottom: 4vh;
    z-index: 20;
    padding: 12px 35px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(223, 184, 91, 0.6);
    color: var(--gold);
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    text-decoration: none;
}

.skip-cinema-btn:hover {
    background: rgba(223, 184, 91, 0.2);
    border-color: var(--gold);
    transform: translateY(-2px);
    color: white;
}

/* Dashboard Mosaico y Sidebar Layout */
.dashboard-wrapper {
    display: none;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

.dashboard-wrapper.active {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    animation: fadeInSplash 1s ease-in-out;
}

.photo-mosaic-col {
    flex: 1 1 60%;
    min-width: 300px;
    column-count: 3;
    column-gap: 15px;
}

@media (max-width: 900px) {
    .photo-mosaic-col { column-count: 2; }
}

@media (max-width: 600px) {
    .photo-mosaic-col { column-count: 1; }
}

.mosaic-img {
    width: 100%;
    margin-bottom: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, filter 0.3s fade;
    display: block;
    cursor: pointer;
}

.mosaic-img:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.sidebar-col {
    flex: 0 0 380px;
    position: sticky;
    top: 40px;
}

@media (max-width: 900px) {
    .sidebar-col {
        flex: 1 1 100%;
        position: relative;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }
}

/* Countdown Overlay */
.countdown-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: transparent;
    z-index: 9998; /* just above slider */
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(10px) brightness(0.2);
}
.countdown-overlay.active {
    opacity: 1;
}

#countdownText {
    font-size: 15rem;
    font-family: 'Great Vibes', cursive, 'Montserrat', sans-serif;
    color: var(--gold);
    text-shadow: 0 0 50px rgba(223, 184, 91, 0.8);
    font-weight: 400;
    animation: pulseCount 1s infinite;
}

@keyframes pulseCount {
    0% { transform: scale(0.3); opacity: 0; }
    40% { transform: scale(1.1); opacity: 1; }
    80% { transform: scale(1); opacity: 0; }
    100% { transform: scale(0.3); opacity: 0; }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000; /* above everything */
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
    animation: zoomIn 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(223, 184, 91, 0.4);
    border: 2px solid rgba(223, 184, 91, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--gold);
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {transform:scale(0.8)} 
    to {transform:scale(1)}
}
