/* ============================================
   Cookie Consent Card
   Standalone component - copy to any ODNR app
   Uses app theme variables: --primary,
   --primary-hover, --text-main, --surface,
   --text-on-dark
   ============================================ */

.cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    right: 0;
    width: auto;
    background-color: var(--surface);
    color: var(--text-main);
    padding: 1.5rem 1.75rem;
    border-radius: 0;
    border-left: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2), 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    white-space: nowrap;
    animation: cookieSlideIn 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cookie-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-main);
    opacity: 0.5;
    cursor: pointer;
    padding: 0.25rem;
    font-family: 'Source Sans Pro', sans-serif;
    transition: opacity 0.2s ease;
}

.cookie-close-btn:hover {
    opacity: 1;
}

.cookie-close-btn:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

@keyframes cookieSlideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cookie-consent-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.45rem;
    line-height: 1.4;
    font-family: 'Source Sans Pro', sans-serif;
}

.cookie-consent-description {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.85;
    font-family: 'Source Sans Pro', sans-serif;
}

.cookie-consent-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.cookie-link-secondary {
    margin-left: auto;
}

.cookie-btn {
    padding: 0.6rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--btn-radius, 6px);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Source Sans Pro', sans-serif;
    text-decoration: none;
    text-align: center;
}

.cookie-btn-accept {
    background-color: var(--primary);
    color: var(--text-on-dark);
}

.cookie-btn-accept:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cookie-link-secondary {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: underline;
    font-family: 'Source Sans Pro', sans-serif;
}

.cookie-link-secondary:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.cookie-btn:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .cookie-consent-banner {
        bottom: 12px;
        right: 12px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .cookie-consent-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: none;
        border-left: none;
        border-top: 4px solid var(--primary);
        padding: 1rem;
    }

    .cookie-consent-buttons {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cookie-btn {
        width: 100%;
    }
}

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

/* Hide in print */
@media print {
    .cookie-consent-banner {
        display: none !important;
    }
}
