/**
 * BSERI Cookie Consent Banner Styles
 * DPDP Act 2023 Compliance
 * Inspired by PMI.org design
 */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(55, 65, 81, 0.95); /* Semi-transparent gray overlay */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 1.25rem 2rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    display: none;
    font-family: 'Poppins', 'Inter', sans-serif;
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

#cookie-consent-banner.show {
    display: block !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-consent-content {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    font-weight: 400;
}

.cookie-consent-text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    transition: color 0.2s;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    color: #ffffff;
}

.cookie-consent-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-consent-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
    line-height: 1;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.cookie-consent-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.cookie-consent-btn {
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', 'Inter', sans-serif;
    white-space: nowrap;
}

.cookie-consent-btn-accept {
    background: #1d4ed8;
    color: white;
}

.cookie-consent-btn-accept:hover {
    background: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

.cookie-consent-btn-accept:active {
    transform: translateY(0);
}

.cookie-consent-btn-decline {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}

.cookie-consent-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.cookie-manage-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: underline;
    white-space: nowrap;
    transition: color 0.2s;
}

.cookie-manage-link:hover {
    color: rgba(255, 255, 255, 0.95);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 1rem 1.25rem;
    }
    
    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-consent-content {
        min-width: 100%;
    }
    
    .cookie-consent-actions {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cookie-consent-btn-accept,
    .cookie-consent-btn-decline {
        flex: 1;
        min-width: 100px;
    }

    .cookie-manage-link {
        width: 100%;
        text-align: center;
    }
}

/* Hide banner when dismissed */
#cookie-consent-banner.hidden {
    display: none !important;
}

