/*
* Invitation Frontend Styles
*/

/*Styles copied from the block file /public/blocks/src/invitationManager/style.scss*/



/*

.section-hero,
.section-story,
.section-event-details,
.section-rsvp,
.section-footer,
.section-general-content,
.section-gallery {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
  
    color: var(--inv-text);
    text-align: center;
}
*/
/* Typography inherited from CSS variables */
.section-hero h1 {
    font-family: var(--inv-couple-font) !important;
    color: var(--inv-couple-color, var(--inv-accent)) !important;
    margin-bottom: 0.5em;
}

.section-hero h2,
.section-story h2,
.section-event-details h2,
.section-rsvp h2,
.section-footer h2,
.section-general-content h2,
.section-gallery h2 {
    font-family: var(--inv-heading-font) !important;
    color: var(--inv-heading-color, var(--inv-accent)) !important;
    margin-bottom: 0.5em;
}

.section-hero p,
.section-story p,
.section-event-details .detail-item,
.section-rsvp p,
.section-footer p,
.section-general-content p,
.section-gallery p {
    font-family: var(--inv-body-font) !important;
    color: var(--inv-body-color, var(--inv-text));
}

/* Editor specific: ensure sibling blocks don't leave gaps if possible */
.is-selected .section-hero,
.is-selected .section-story,
.is-selected .section-event-details,
.is-selected .section-rsvp,
.is-selected .section-footer,
.is-selected .section-general-content,
.is-selected .section-gallery {
    opacity: 1;
}


/* ---------- RESET & GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/*Fotmatted date*/
.formatted-date-wrapper {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: nowrap;
    gap: 10px;
}

/* Overwrite opacity only in the Editor (Gutenberg) */
.is-root-container .reveal,
.editor-styles-wrapper .reveal,
.wp-admin .reveal {
    opacity: 0.6 !important;

}




/*Minified block*/

.wp-block-wedding-invitation-invitation-manager.hide-hero .section-hero,
.wp-block-wedding-invitation-invitation-manager.hide-story .section-story,
.wp-block-wedding-invitation-invitation-manager.hide-event-details .section-event-details,
.wp-block-wedding-invitation-invitation-manager.hide-rsvp .section-rsvp,
.wp-block-wedding-invitation-invitation-manager.hide-footer .section-footer,
.wp-block-wedding-invitation-invitation-manager.hide-general-content .section-general-content,
.wp-block-wedding-invitation-invitation-manager.hide-gallery .section-gallery {
    display: none !important;
}



.section-hero,
.section-story,
.section-event-details,
.section-rsvp,
.section-footer,
.section-general-content,
.section-gallery {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    /* min-height: 200px;*/
    color: var(--inv-text);
    text-align: center;
    padding: clamp(15px, 3.75vw, 60px) clamp(20px, 5vw, 80px) !important;

}
.invitation-container h2,
.invitation-container h3,
.invitation-container h4,
.invitation-container h5,
.invitation-container h6{
     font-family: var(--inv-heading-font) ;
     color: var(--inv-heading-color, var(--inv-accent)) !important;
    margin-bottom: 1.25rem;
}
.invitation-container p{
    font-family: var(--inv-body-font) !important;
    color: var(--inv-body-color, var(--inv-text));
    margin-bottom:0.5rem;
}
/* Typography inherited from CSS variables */
.section-hero h1 {
    font-family: var(--inv-couple-font) !important;
    color: var(--inv-couple-color, var(--inv-accent)) !important;
    margin-bottom: 1.5rem;
}
.is-selected .section-event-details,
.is-selected .section-footer,
.is-selected .section-gallery,
.is-selected .section-general-content,
.is-selected .section-hero,
.is-selected .section-rsvp,
.is-selected .section-story {
    opacity: 1
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    font-size: 16px;
    scroll-behavior: smooth
}

.formatted-date-wrapper {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center !important
}

.editor-styles-wrapper .reveal,
.is-root-container .reveal,
.wp-admin .reveal {
    opacity: .6 !important
}



/* Overlay & Drawer */
#em-map-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

#em-map-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- COUNTDOWN COMPONENT ---------- */
.em-countdown-top{
    position:sticky;
    top:0;
    left:0;
    right:0;
    z-index:99999;
}
.em-countdown-bottom{
    position:sticky;
    bottom:0;
    left:0;
    right:0;
    z-index:99999;
}
.em-countdown-inline {
    position: relative;
    z-index: 99999;
  
}
.em-countdown {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    width: 100%;
}

.em-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 15px 10px;
    border-radius: 16px;
    min-width: 75px;
    flex: 0 1 auto;
}

/* Light mode fallback if vars missing */
.em-countdown-value {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--inv-heading-font, serif);
    color: var(--inv-accent, #000);
    line-height: 1;
}

.em-countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0.6;
    margin-top: 8px;
    font-family: var(--inv-body-font, sans-serif);
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .em-countdown {
        gap: 10px;
    }

    .em-countdown-item {
        min-width: 65px;
        padding: 10px 5px;
    }

    .em-countdown-value {
        font-size: 1.4rem;
    }

    .em-countdown-label {
        font-size: 0.6rem;
    }
}

#em-map-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    z-index: 999999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

#em-map-drawer.active {
    transform: translateY(0);
}

.em-drawer-handle {
    width: 44px;
    height: 5px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 14px auto 8px;
}

#em-map-container {
    width: 100%;
    height: 65vh;
    background: #f7f7f7;
}

/* Close Button - Maximum Visibility */
.em-drawer-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: #000000 !important;
    /* Force black background */
    color: #fff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99999;
    /* Extremely high to stay above Google Maps UI */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.2s ease;
}

.em-drawer-close:hover {
    transform: scale(1.1);
    background: #333333 !important;
}

/* Map Links & Pin Icons */
.em-map-link {
    color: inherit;
    text-decoration: inherit;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.em-map-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.em-pin-icon {
    flex-shrink: 0;
    animation: em-pin-pulse 2s infinite ease-in-out;
}

@keyframes em-pin-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Close Button Icon */
.em-drawer-close svg {
    color: #ffffff !important;
    display: block;
}

/*Countdown style*/
/*Minimal*/
.minimal-countdown-style .em-countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff9f9 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Georgia', 'Times New Roman', serif;
}

.minimal-countdown-style .em-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.minimal-countdown-style .em-countdown-item:not(:last-child):after {
    content: "•";
    position: absolute;
    right: -1.5rem;
    top: 25%;
    color: #c9a96b;
    font-size: 1.2rem;
}

.minimal-countdown-style .em-countdown-value {
    font-size: 2.5rem;
    font-weight: 300;
    color: #333;
    line-height: 1;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #333, #555);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.minimal-countdown-style .em-countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #c9a96b;
    margin-top: 0.3rem;
    font-weight: 400;
}

@media (max-width: 600px) {
    .minimal-countdown-style .em-countdown {
        gap: 1rem;
    }

    .minimal-countdown-style .em-countdown-item:not(:last-child):after {
        right: -0.8rem;
    }

    .minimal-countdown-style .em-countdown-value {
        font-size: 1.8rem;
    }
}

/* Romantic floral*/
.romantic-floral-countdown-style .em-countdown {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    padding: 2rem;
    background: rgba(255, 240, 245, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 182, 193, 0.3);
    font-family: 'Cormorant Garamond', 'Georgia', serif;
}

.romantic-floral-countdown-style .em-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 40px;
    box-shadow: 0 8px 20px rgba(255, 192, 203, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.romantic-floral-countdown-style .em-countdown-value {
    font-size: 2.8rem;
    font-weight: 500;
    color: #9e7b7b;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.romantic-floral-countdown-style .em-countdown-label {
    font-size: 0.9rem;
    text-transform: lowercase;
    font-style: italic;
    color: #b88b8b;
    letter-spacing: 1px;
    border-top: 1px dashed #e8c1c1;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
    text-align: center;
}

@media (max-width: 600px) {
    .romantic-floral-countdown-style .em-countdown {
        gap: 0.8rem;
    }

    .romantic-floral-countdown-style .em-countdown-item {
        min-width: 60px;
    }

    .romantic-floral-countdown-style .em-countdown-value {
        font-size: 1.8rem;
    }
}

/*Modern Minimal*/
.modern-minimal-countdown-style .em-countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 3rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    font-family: 'Montserrat', sans-serif;
}

.modern-minimal-countdown-style .em-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    padding: 1.2rem 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.modern-minimal-countdown-style .em-countdown-value {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modern-minimal-countdown-style .em-countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #7f8c8d;
    margin-top: 0.5rem;
    font-weight: 600;
}

@media (max-width: 600px) {
    .modern-minimal-countdown-style .em-countdown {
        gap: 1rem;
        padding: 1.5rem;
    }

    .modern-minimal-countdown-style .em-countdown-item {
        min-width: 65px;
    }

    .modern-minimal-countdown-style .em-countdown-value {
        font-size: 2rem;
    }
}

/*Vintage luxe*/
.vintage-luxe-countdown-style .em-countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    background: #1a1a1a;
    background-image: radial-gradient(circle at 30% 30%, #333, #1a1a1a);
    border: 1px solid #c4a747;
    border-radius: 0;
    font-family: 'Playfair Display', 'Times New Roman', serif;
}

.vintage-luxe-countdown-style .em-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    padding: 1.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(196, 167, 71, 0.3);
    position: relative;
}

.vintage-luxe-countdown-style .em-countdown-item:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(196, 167, 71, 0.2);
    pointer-events: none;
}

.vintage-luxe-countdown-style .em-countdown-value {
    font-size: 2.5rem;
    font-weight: 500;
    color: #c4a747;
    line-height: 1;
    text-shadow: 0 0 10px rgba(196, 167, 71, 0.3);
}

.vintage-luxe-countdown-style .em-countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    opacity: 0.8;
    margin-top: 0.3rem;
    font-weight: 300;
}

@media (max-width: 600px) {
    .vintage-luxe-countdown-style .em-countdown {
        gap: 0.5rem;
    }

    .vintage-luxe-countdown-style .em-countdown-item {
        min-width: 60px;
    }

    .vintage-luxe-countdown-style .em-countdown-value {
        font-size: 1.5rem;
    }
}

/*elegant frames*/
.elegant-frames-countdown-style .em-countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 1rem;
    font-family: 'Cormorant', 'Times New Roman', serif;
    position: relative;
}

.elegant-frames-countdown-style .em-countdown:before,
.elegant-frames-countdown-style .em-countdown:after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.elegant-frames-countdown-style .em-countdown:before {
    top: 0;
}

.elegant-frames-countdown-style .em-countdown:after {
    bottom: 0;
}

.elegant-frames-countdown-style .em-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.elegant-frames-countdown-style .em-countdown-value {
    font-size: 3.2rem;
    font-weight: 400;
    color: #5d4a36;
    line-height: 1;
    font-feature-settings: "lnum";
}

.elegant-frames-countdown-style .em-countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #b8a07c;
    margin-top: 0.3rem;
}

.elegant-frames-countdown-style .em-countdown-item:before {
    content: "✧";
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    color: #d4af37;
    font-size: 1rem;
    opacity: 0.5;
}

@media (max-width: 600px) {
    .elegant-frames-countdown-style .em-countdown {
        gap: 1rem;
    }

    .elegant-frames-countdown-style .em-countdown-value {
        font-size: 2rem;
    }

    .elegant-frames-countdown-style .em-countdown-label {
        letter-spacing: 1px;
    }
}
