/* ==========================================================================
   TERRA72 - HOME PAGE POPUP BANNER STYLES
   ========================================================================== */

#home-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 12, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

#home-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

#home-popup-card {
    position: relative;
    max-width: 540px;
    width: 100%;
    max-height: 88vh;
    background: #0f0f11;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 175, 55, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#home-popup-overlay.active #home-popup-card {
    transform: scale(1) translateY(0);
}

/* Close Button */
.popup-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(15, 15, 17, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.popup-close-btn:hover {
    background: rgba(212, 175, 55, 0.9);
    color: #000000;
    border-color: #d4af37;
    transform: rotate(90deg) scale(1.08);
}

/* Banner Image Wrapper */
.popup-banner-img-wrapper {
    position: relative;
    width: 100%;
    overflow-y: auto;
    max-height: calc(88vh - 70px);
    background: #08080a;
    display: flex;
    align-items: center;
    justify-content: center;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.5) rgba(0, 0, 0, 0.2);
}

.popup-banner-img-wrapper::-webkit-scrollbar {
    width: 5px;
}
.popup-banner-img-wrapper::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 4px;
}

.popup-banner-img-wrapper a {
    display: block;
    width: 100%;
    text-decoration: none;
}

.popup-banner-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.popup-banner-img-wrapper a:hover img {
    transform: scale(1.015);
}

/* Action Bar Footer */
.popup-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: linear-gradient(180deg, #141417 0%, #0a0a0c 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
}

.popup-btn {
    flex: 1;
    padding: 11px 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-btn-primary {
    background: linear-gradient(135deg, #d4af37 0%, #aa820a 100%);
    color: #0c0c0e;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

.popup-btn-primary:hover {
    background: linear-gradient(135deg, #e5be48 0%, #c49615 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
    color: #000;
}

.popup-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.popup-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 600px) {
    #home-popup-overlay {
        padding: 12px;
    }
    
    #home-popup-card {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 12px;
    }
    
    .popup-close-btn {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    
    .popup-action-bar {
        padding: 10px 14px;
        flex-direction: column;
        gap: 8px;
    }
    
    .popup-btn {
        width: 100%;
        padding: 10px 12px;
        font-size: 12px;
    }
}
