/**
 * Cookie Notice Banner
 * GDPR/LFPDPPP Compliant Cookie Consent Banner
 */

.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--accent-primary);
    padding: 20px;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-notice.show {
    transform: translateY(0);
}

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

.cookie-notice-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-notice-content {
    flex: 1;
}

.cookie-notice-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cookie-notice-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.cookie-notice-text a {
    color: var(--accent-primary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-notice-text a:hover {
    color: var(--accent-secondary);
}

.cookie-notice-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-notice-btn {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-notice-btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
}

.cookie-notice-btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.cookie-notice-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

.cookie-notice-btn-secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-notice {
        padding: 16px;
    }

    .cookie-notice-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cookie-notice-title {
        font-size: 1rem;
    }

    .cookie-notice-text {
        font-size: 0.9rem;
    }

    .cookie-notice-actions {
        width: 100%;
        flex-direction: column;
    }

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

/* Tablet */
@media (max-width: 968px) and (min-width: 769px) {
    .cookie-notice-container {
        flex-wrap: wrap;
    }

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

/* Animation for closing */
@keyframes slideDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-notice.closing {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Accessibility: Focus styles */
.cookie-notice-btn:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cookie-notice {
        border-top-width: 3px;
    }

    .cookie-notice-btn {
        font-weight: 600;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .cookie-notice,
    .cookie-notice-btn {
        transition: none;
    }

    .cookie-notice.closing {
        animation: none;
        display: none;
    }
}
