/* Council popup styles */

/* Explore more button styling */
.explore-btn {
    width: 100%;
    background-color: #1a1a1a;
    color: white;
    padding: 15px;
    margin: 0;
    border-radius: 50px;
    font-size: 17px;
    font-family: var(--go-medium);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.explore-btn:hover {
    background-color: white;
    color: black;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.explore-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Modal backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

/* Modal container with glass morphism effect */
.modal-container {
    width: 90%;
    max-width: 1200px;
    height: 85vh;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    overflow: hidden; /* Hidden on desktop to allow individual column scrolling */
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.modal-close:before,
.modal-close:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background-color: white;
}

.modal-close:before {
    transform: rotate(45deg);
}

.modal-close:after {
    transform: rotate(-45deg);
}

/* Left column */
.modal-left {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.modal-left h2 {
    font-family: var(--go-semibold);
    font-size: 32px;
    margin-bottom: 20px;
    background: linear-gradient(92deg, #4159d0 7.6%, #c84fc0 53.43%, #ffcd70 99.26%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-left h3 {
    font-family: var(--go-medium);
    font-size: 20px;
    color: white;
    margin: 25px 0 10px;
}

.modal-left p {
    font-family: var(--go-regular);
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.social-icon img {
    width: 20px;
    height: 20px;
}

/* Right column */
.modal-right {
    width: 50%;
    padding: 40px;
    color: white;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.modal-left::-webkit-scrollbar,
.modal-right::-webkit-scrollbar {
    width: 5px;
}

.modal-left::-webkit-scrollbar-track,
.modal-right::-webkit-scrollbar-track {
    background: transparent;
}

.modal-left::-webkit-scrollbar-thumb,
.modal-right::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.modal-right h2 {
    font-family: var(--go-semibold);
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(92deg, #4159d0 7.6%, #c84fc0 53.43%, #ffcd70 99.26%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.post-title {
    font-family: var(--go-medium);
    font-size: 18px;
    color: white;
    margin: 25px 0 15px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.council-member {
    text-align: center;
    margin-bottom: 20px;
}

.council-member h4 {
    font-family: var(--go-semibold);
    font-size: 20px;
    margin-bottom: 5px;
    color: white;
}

.council-member p {
    font-family: var(--go-regular);
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 10px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.member-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background: rgba(255, 255, 255, 0.3);
}

.member-social a img {
    width: 17px;
    height: 17px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-container {
        flex-direction: column;
        height: 90vh;
        overflow-y: auto; /* Allow scrolling through the entire container */
        overflow-x: hidden;
    }
    
    .modal-left, .modal-right {
        width: 100%;
        padding: 30px;
        height: auto; /* Auto height to fit content */
        overflow-y: visible; /* Remove individual scrolling */
        border-right: none;
    }
    
    .modal-left {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 40px; /* Add some space after left section */
    }
    
    .modal-right {
        padding-top: 40px; /* Add some space before right section */
    }
    
    .modal-container::-webkit-scrollbar {
        width: 5px;
    }
    
    .modal-container::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .modal-container::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 6px;
    }
    
    .modal-left h2, .modal-right h2 {
        font-size: 24px;
    }
}
