/* =============================================
   COOKIE CONSENT BANNER
   Rise Bright - risebright.com.au
   =============================================
   Fixed bottom bar for GDPR/privacy-compliant
   opt-in cookie consent (Google Analytics).
   ============================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    font-family: 'DM Sans', var(--font-body, sans-serif);
    animation: cookie-slide-up 0.4s ease-out;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
}

.cookie-banner-text a {
    color: #7c3aed;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner-text a:hover {
    color: #5b21b6;
}

.cookie-banner-icon {
    display: inline;
    margin-right: 6px;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', var(--font-body, sans-serif);
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    opacity: 0.9;
}

.cookie-btn:active {
    transform: scale(0.97);
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #ffffff;
    border: none;
}

.cookie-btn-decline {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.cookie-btn-decline:hover {
    border-color: #9ca3af;
    color: #374151;
}

/* Slide-up animation */
@keyframes cookie-slide-up {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        animation: none;
    }
}

/* Responsive: stack at 768px */
@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
        gap: 16px;
    }

    .cookie-banner-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* Dark mode */
[data-theme="dark"] .cookie-banner {
    background: #1e1a28;
    border-top-color: #2a2535;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .cookie-banner-text {
    color: #e8e2f0;
}

[data-theme="dark"] .cookie-banner-text a {
    color: #a78bfa;
}

[data-theme="dark"] .cookie-banner-text a:hover {
    color: #c4b5fd;
}

[data-theme="dark"] .cookie-btn-decline {
    color: #a8a0b8;
    border-color: #2a2535;
}

[data-theme="dark"] .cookie-btn-decline:hover {
    border-color: #3d3650;
    color: #e8e2f0;
}
