/* =========================================
   Cookie Consent Banner – CMP
   GDPR / CPRA compliant
   ========================================= */

#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    background: rgba(18, 22, 34, 0.98);
    border-top: 2px solid #61dafb;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-consent-banner.cmp-visible {
    transform: translateY(0);
}

.cmp-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.cmp-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.cmp-text {
    flex: 1;
    min-width: 200px;
}

.cmp-text h3 {
    margin: 0 0 6px 0;
    font-size: 1rem;
    font-weight: 700;
    color: #e0e0e0;
    letter-spacing: 0.2px;
}

.cmp-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #8b949e;
    line-height: 1.55;
}

.cmp-text a {
    color: #61dafb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.cmp-text a:hover {
    color: #4fa8c5;
    text-decoration: underline;
}

.cmp-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Accept All button */
.cmp-btn-accept {
    background: linear-gradient(135deg, #61dafb, #4fa8c5);
    color: #0d1117;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(97, 218, 251, 0.3);
    letter-spacing: 0.2px;
}

.cmp-btn-accept:hover {
    background: linear-gradient(135deg, #4fa8c5, #61dafb);
    box-shadow: 0 6px 20px rgba(97, 218, 251, 0.45);
    transform: translateY(-1px);
}

.cmp-btn-accept:active {
    transform: translateY(0);
}

/* Reject button */
.cmp-btn-reject {
    background: transparent;
    color: #8b949e;
    border: 1px solid rgba(139, 148, 158, 0.35);
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    letter-spacing: 0.2px;
}

.cmp-btn-reject:hover {
    color: #c9d1d9;
    border-color: rgba(139, 148, 158, 0.65);
    background: rgba(255, 255, 255, 0.04);
}

/* Manage / Cookie Settings link (footer trigger) */
.cmp-manage-link {
    background: none;
    border: none;
    color: #61dafb;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
    font-family: inherit;
    font-weight: 500;
}

.cmp-manage-link:hover {
    color: #4fa8c5;
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
    #cookie-consent-banner {
        padding: 16px;
    }

    .cmp-inner {
        gap: 14px;
    }

    .cmp-icon {
        display: none;
    }

    .cmp-text h3 {
        font-size: 0.9rem;
    }

    .cmp-text p {
        font-size: 0.82rem;
    }

    .cmp-actions {
        width: 100%;
        justify-content: stretch;
    }

    .cmp-btn-accept,
    .cmp-btn-reject {
        flex: 1;
        text-align: center;
        padding: 11px 14px;
    }
}
