/* =====================================================
   POPUP & CONSENT STYLES
   ===================================================== */

:root {
    --gold-glow: rgb(143, 69, 85);
    --premium-bg: rgba(10, 10, 10, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* --- Policy Consent Banner --- */
.policy-consent-banner {
    position: fixed;
    bottom: -100%;
    left: 20px;
    right: 20px;
    background: rgba(17, 15, 15, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px 35px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    transition: bottom 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.policy-consent-banner.show {
    bottom: 20px;
}

.consent-text {
    flex: 1;
}

.consent-text h4 {
    font-size: 16px;
    color: rgb(255, 255, 255);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.consent-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    line-height: 1.6;
}

.consent-text a {
    color: rgb(255 151 173);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.consent-text a:hover {
    border-bottom-color: rgb(143, 69, 85);
}

.consent-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.btn-consent {
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-accept {
    background: rgb(143, 69, 85);
    color: #ffffff;
    border: none;
}

.btn-accept:hover {
    background: rgb(143, 69, 85);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--gold-glow);
    border:1px solid white;
}

.btn-decline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

@media (max-width: 991px) {
    .policy-consent-banner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 20px;
        gap: 20px;
    }

    .consent-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* --- Header Resources Popup --- */
.header-resources-trigger {
    position: relative;
    cursor: pointer;
}

.resources-popup {
    position: absolute;
    top: calc(100% + 20px);
    right: 0;
    width: 320px;
    background: var(--premium-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.header-resources-trigger:hover .resources-popup,
.resources-popup:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.resource-section {
    margin-bottom: 25px;
}

.resource-section:last-child {
    margin-bottom: 0;
}

.resource-section h5 {
    font-size: 11px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.resource-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
    font-family: var(--font-regular);
}

.resource-link i {
    width: 16px;
    color: rgb(143, 69, 85);
    font-size: 14px;
    opacity: 0.8;
}

.resource-link:hover {
    color: rgb(143, 69, 85);
    transform: translateX(5px);
}

.popup-footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-footer-socials a {
    color: #fff;
    font-size: 16px;
    opacity: 0.6;
    transition: 0.3s;
}

.popup-footer-socials a:hover {
    color: rgb(143, 69, 85);
    opacity: 1;
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .header-resources-trigger {
        display: none;
        /* Handled in mobile sidebar */
    }
}

/* --- Cookie Policy Page Enhancements --- */
.consent-management-box {
    margin-top: 50px;
    padding: 30px;
    background: rgba(201, 161, 74, 0.05);
    border: 1px dashed rgb(143, 69, 85);
    border-radius: 15px;
}

.premium-revoke-btn {
    margin-top: 15px;
    background: transparent;
    color: rgb(143, 69, 85);
    border: 1px solid rgb(143, 69, 85);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.premium-revoke-btn:hover {
    background: rgb(143, 69, 85);
    color: #fffefe;
    box-shadow: 0 5px 15px var(--gold-glow);
}