/**
 * Cookie Consent Banner Styles
 * GDPR-compliant cookie consent UI
 */

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid var(--primary-color);
}

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

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cookie-consent-text {
    flex: 1;
}

.cookie-consent-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: var(--font-size-lg);
    color: var(--text-primary);
}

.cookie-consent-text p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Cookie Buttons */
.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--primary-color);
    color: white;
}

.cookie-btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(83, 111, 212, 0.3);
}

.cookie-btn-secondary {
    background: var(--text-secondary);
    color: white;
}

.cookie-btn-secondary:hover {
    background: var(--text-primary);
    transform: translateY(-1px);
}

.cookie-btn-outline {
    background: white;
    border: 2px solid var(--border-medium);
    color: var(--text-primary);
}

.cookie-btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Cookie Consent Modal */
.cookie-consent-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cookie-consent-modal.show {
    opacity: 1;
}

.cookie-modal-content {
    background: white;
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-consent-modal.show .cookie-modal-content {
    transform: scale(1);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.cookie-modal-header h2 {
    margin: 0;
    font-size: var(--font-size-xl);
    color: var(--text-primary);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.cookie-modal-close:hover {
    background: var(--background-secondary);
    color: var(--text-primary);
}

.cookie-modal-body {
    padding: 1.5rem;
}

.cookie-option {
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option-header {
    margin-bottom: 0.5rem;
}

.cookie-option-header label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: var(--font-size-base);
    color: var(--text-primary);
}

.cookie-option-header input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

.cookie-option-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-required {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    font-weight: normal;
}

.cookie-option-desc {
    margin: 0.5rem 0 0 2rem;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.5;
}

.cookie-modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--background-secondary);
}

.cookie-modal-footer .cookie-btn {
    flex: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 1rem;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

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

    .cookie-modal-footer {
        flex-direction: column;
    }

    .cookie-option-desc {
        margin-left: 0;
    }
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
