/* Base components */

.gh-head{
    background: var(--wfb-yellow)!important;
}


.gh-head-logo{
    color: var(--wfb-green)!important;
}

.city-hero{
    padding-top: 8rem;
}

.city-hero-headline{
    text-align: center;
    margin-bottom: 1.5rem;
}

.city-hero-stats{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.city-hero-stat{
    color: var(--wfb-green);
    font-family: "noka";
    font-weight: 700;
    font-size: 1.8rem;
}

/* Parallax Section */
.parallax-section {
    height: 400vh; 
    position: relative;
    display: flex;
    justify-content: center;
    background-color: var(--wfb-yellow);
}

/* Sticky Video Background */
.sticky-video {
    position: sticky;
    top: 0;
    width: 60vw;
    height: 100vh;
    background: #019f02;
    border-radius: 32px;
    z-index: 1;
    overflow: hidden; 
}

.sticky-video.rio{
    /* Background image fallback */
    background-image: url('../images/rio.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sticky-video.sampa{
    /* Background image fallback */
    background-image: url('../images/sampa.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sticky-video.belo{
    /* Background image fallback */
    background-image: url('../images/belo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sticky-video.floripa{
    /* Background image fallback */
    background-image: url('../images/floripa.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#youtube-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    
    /* Initially hidden until video loads */
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 0s 1s;
}

#youtube-player.playing {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease-in-out, visibility 0s 0s;
}

.sticky-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Scrolling Content */
.scrolling-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 2rem;
    padding-top: 150vh;
    box-sizing: border-box;
}

.content-item{
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.content-item h2 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    color: var(--wfb-yellow);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.communities-container {
    max-width: 800px;
    margin: 8vmin auto 0 auto;
}

.community-item-link{
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 191, 0, 0.3);
}

.community-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 191, 0, 0.3);
}

.community-item.no-border{
    border-bottom: 0px solid rgba(255, 191, 0, 0.3);
}

.community-item:hover {
    background: var(--wfb-blue);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 8px;
}

.community-info {
    flex: 1;
}

.community-name {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-family: "noka";
    color: #ffbf00;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.community-type {
    font-size: 1rem;
    color: var(--wfb-off-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.join-button {
    background: var(--wfb-yellow);
    color: var(--wfb-green);
    font-family: "noka";
    text-transform: uppercase;
    font-weight: 700;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.join-button:hover {
    background: #f2f2f2;
    color: #009f00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 191, 0, 0.3);
}

/* Curtain Overlay Styles */
.curtain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
}

.curtain-left, .curtain-right {
    position: absolute;
    top: 0;
    width: 50vw;
    height: 100vh;
}

.curtain-left {
    left: 0;
    transform: translateX(0%);
}

.curtain-right {
    right: 0;
    transform: translateX(0%);
}

/* Responsive adjustments */
@media (max-width: 991px) {

}

@media (max-width: 767px) {
    .city-hero{
        padding: 5rem 0 0 0;
    }

    .content-item h2 {
        font-size: 2.8rem;
    }

    .city-cost{
        font-size: 3.8rem;
    }

    .community-item {
        align-items: flex-start;
        gap: 3rem;
    }

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

}

@media (max-width: 479px) {
    .city-hero{
        padding: 5rem 0 0 0;
    }
}