/* Event styling */

@font-face {
    font-family: 'Bricolage Grotesque';
    src: url('../../fonts/bricolage/bricolage.ttf') format('truetype');
    font-display: swap;
    font-weight: 200 800;
    font-style: normal;
}

.event-page .event-about-description {
    font-family: 'Bricolage Grotesque', var(--nsf-font-family-base), sans-serif;
}


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

/* Event detail hero title should be smaller than global hero headings */
.event-page .hero-section--event .hero-title {
    font-size: clamp(1.25rem, 4.8vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
}

.content.event {
    /* gap: 40px; */
    /* padding: clamp(20px, 5vw, 100px); */
    /* padding-top: clamp(40px, 10vw, 200px); */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: var(--nsf-light);
}


.content .image-event {
    width: 90%;
    height: clamp(300px, 50vw, 700px);
    margin-top: 20px;
    object-fit: cover;
    border-radius: var(--nsf-border-radius-lg);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.content .text-event {
    font-size: clamp(0.5em, 2.5vw, 1.5em);
    font-weight: 400;
    text-align: center;
    padding: clamp(5px, 5%, 15%) 2%;
    color: var(--nsf-primary);
    background-color: var(--white);
    /* background-color: var(--white); */
}

.content .event-details-container {
    align-items: center;
    padding: 0%;
    width: 100%;
    background-color: var(--white);
}

.content .text-event-details {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: center; /* Center elements horizontally */
    flex-wrap: wrap;
    gap: 30px;
    flex: 1;
}

.content .text-event-details .event-detail {
    width: 100%; /* Ensure each element takes full width */
    background-color: var(--nsf-light);
    border-radius: var(--nsf-border-radius-lg);
    text-align: center;
    margin-bottom: 0px;
    color: var(--white);
    width: 300px;
    height: 250px;
    padding: 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

.content .text-event-details .event-detail .text-event {
    font-weight: 900;
    font-size: 2.5em;
    margin: auto 10px;
    flex: 3;
    background-color: var(--nsf-light);
}

.content .text-event-details .event-detail .empty{
    flex: 3;
}

#card-description {
    padding: clamp(5px, 10%, 40%);
    padding-top: clamp(2px, 5%, 10%);
    padding-bottom: clamp(5px, 5%, 10%);
}

#card-location {
    font-size: 2.5em;

}

.content .text-event-details .event-detail .title-card-event {
    background-color: var(--white);
    border-radius: var(--nsf-border-radius-lg);
    font-size: 1em;
    width: 50%;
    font-weight: 500;
    color: var(--nsf-primary);
    background-image: none;
    padding: 5%;
    margin: 20px auto;
    flex: 1;
    text-align: center;
}

.content .text-event-details p {
    text-align: center;
    padding: 0%;
}

#media-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px; /* Reduced gap */
    margin-top: 10%;
    margin-left: 20%;
    margin-right: 20%;
    justify-content: center;
    justify-items: center; /* Center the columns */
}

#media-grid .grid-media {
    width: 400px;
    height: 600px;
    object-fit: cover;
    border-radius: var(--nsf-border-radius-lg);
}

#media-grid .grid-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--nsf-border-radius-lg);
    display: block;
}

@media (max-width: 768px) {
    #media-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        margin-left: 10%;
        margin-right: 10%;
    }

    #media-grid .grid-media {
        width: 100%;
        height: auto;
    }

    .content .text-event-details .event-detail {
        width: 150px;
        height: 125px;

    }
    .content .text-event-details .event-detail .text-event {
        font-size: 1em;
    }
    #card-location{
        font-size: 1em;
    }
    #card-description {
        font-size: 0.8rem !important;
        padding-top: clamp(4px, 10%, 20%);
        padding-bottom: clamp(4px, 10%, 20%);
    }
    .content .text-event-details .event-detail .title-card-event{
        font-size: 0.7em;
        margin: 10px auto;
    }
}

.content-2 .events-content{
    width: 100%;
}

.container-events{
    background-color: var(--white);
    padding: 8%;
    padding-top: 0%;
}

/* Ensure events list titles use the same heading style as shop */
/* Title styles are inherited from shop.css via .product-title */

/* Minimalist Map Styling */
#event-map {
    position: relative;
    transition: box-shadow 0.3s ease;
}

#event-map:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
    cursor: pointer;
}

/* Clean up Leaflet attribution for minimal look */
#event-map .leaflet-control-attribution {
    font-size: 9px;
    opacity: 0.6;
    background: rgba(255, 255, 255, 0.8) !important;
}

#event-map .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.15);
}

#event-map .leaflet-popup-content {
    margin: 12px 16px;
    font-size: 14px;
}

/* Custom marker rotation fix */
.custom-map-marker {
    background: transparent !important;
    border: none !important;
}

/* Social Sat Section */
.social-sat-section {
    position: relative;
    margin: clamp(2rem, 8vw, 5rem) 0;
    padding: clamp(2rem, 5vw, 4rem) 0;

}

/* Centered layout — text + image side by side */
.social-sat-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.social-sat-split__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.social-sat-split__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-sat-split__image img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--nsf-border-radius-lg, 12px);
    transition: transform 0.6s ease;
}

.social-sat-split__image img:hover {
    transform: scale(1.03);
}

/* the 5-layer stack */
.layered-text {
    position: relative;
    height: auto;
    min-height: 5rem;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

/* base styles for each layer */
.layer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: bold;
    white-space: nowrap;
}

/* inverted z-index + fixed offsets */
.layer--1 { color:#e10098; z-index:5; top:   0px; }
.layer--2 { color:#f277c6; z-index:4; top: -8px; }
.layer--3 { color:#f4a6d7; z-index:3; top: -16px; }
.layer--4 { color:#f7ced7; z-index:2; top: -24px; }
.layer--5 { color:#F5DADF; z-index:1; top: -32px; }

/* info+button block */
.social-sat-static {
    opacity: 0;
    color: #e10098;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    text-align: center;
    line-height: 1.5;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

/* show it once .visible is toggled on */
.social-sat-static.visible {
    opacity: 1;
    transform: translateY(0);
}

/* info text styling */
.social-sat-info {
    margin-bottom: 1.5rem;
    margin-top: 0;
}

.social-sat-info span {
    color: #e10098;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.9;
    display: block;
}

.social-sat-no-wrap {
    white-space: nowrap;
}

/* button styling */
.button-container {
    margin-top: 1rem;
    padding: 0;
    text-align: center;
}

.join-btn {
    color: #e10098;
    border: 2px solid #e10098;
    background: transparent;
    padding: 0.75em 1.5em;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
    border-radius: 999px;
    transition: all 0.3s ease;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    white-space: nowrap;
}

.join-btn:hover {
    background: #e10098;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(225, 0, 152, 0.3);
}

.join-btn--disabled,
.join-btn--disabled:hover {
    color: #7b838c;
    border-color: #d8dee4;
    background: #eef2f5;
    opacity: 1;
    cursor: not-allowed;
    pointer-events: auto;
    box-shadow: none;
}

.join-btn--disabled:hover {
    background: #eef2f5;
    color: #7b838c;
    border-color: #d8dee4;
    transform: none;
    box-shadow: none;
}

.join-btn--disabled::after {
    content: ' soon';
    display: inline-block;
    margin-left: 0.45em;
    padding: 0.12em 0.45em;
    border-radius: 999px;
    background: #ffffff;
    color: #7b838c;
    font-size: 0.72em;
    font-weight: 800;
    text-transform: uppercase;
    vertical-align: 0.08em;
}

.social-sat-message {
    margin: 0.85rem 0 0;
    color: #e10098;
    font-size: 0.92rem;
    font-weight: 600;
}

/* Responsive — tablet and below: stack vertically */
@media (max-width: 768px) {
    .social-sat-split {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-sat-split__image {
        order: -1;
    }

    .social-sat-split__image img {
        max-width: 300px;
    }

    .layer {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .layered-text {
        min-height: 2rem;
    }

    .layer--2 { top: -6px; }
    .layer--3 { top: -12px; }
    .layer--4 { top: -18px; }
    .layer--5 { top: -24px; }

    .social-sat-info {
        margin-bottom: 1rem;
    }

    .social-sat-static {
        padding-top: 0.5rem;
    }

    .social-sat-info span {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }

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

/* Extra small screens */
@media (max-width: 480px) {
    .layer {
        font-size: clamp(1.8rem, 12vw, 2.5rem);
    }

    .layer--2 { top: -5px; }
    .layer--3 { top: -10px; }
    .layer--4 { top: -15px; }
    .layer--5 { top: -20px; }

    .social-sat-info span {
        font-size: 0.9rem;
    }

    .button-container {
        padding: 0 0.5rem;
    }
}
