/**
 * Cookie Consent Banner Styles
 * Professional, accessible, GDPR-compliant design
 */

/* Banner Container */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid #0067B8;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 24px;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text h4 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #323130;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-consent-text h4 i {
    color: #0067B8;
    font-size: 20px;
}

.cookie-consent-text p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #605E5C;
}

.cookie-consent-learn-more {
    color: #0067B8;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cookie-consent-learn-more:hover {
    text-decoration: underline;
    color: #005A9E;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-consent-actions .btn {
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-actions .btn-primary {
    background: #0067B8;
    border: none;
    color: white;
}

.cookie-consent-actions .btn-primary:hover {
    background: #005A9E;
}

.cookie-consent-actions .btn-outline-primary {
    background: transparent;
    border: 2px solid #0067B8;
    color: #0067B8;
}

.cookie-consent-actions .btn-outline-primary:hover {
    background: #0067B8;
    color: white;
}

.cookie-consent-actions .btn-outline-secondary {
    background: transparent;
    border: 2px solid #8A8886;
    color: #323130;
}

.cookie-consent-actions .btn-outline-secondary:hover {
    background: #F3F2F1;
    border-color: #605E5C;
}

/* Settings Panel */
.cookie-consent-settings {
    padding-top: 16px;
}

.cookie-consent-settings h5 {
    margin: 0 0 20px 0;
    font-size: 16px;
    font-weight: 600;
    color: #323130;
}

.cookie-category {
    background: #FAF9F8;
    border: 1px solid #EDEBE9;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 12px;
}

.cookie-category-header {
    margin-bottom: 8px;
}

.cookie-category-header label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    font-size: 14px;
}

.cookie-category-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

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

.cookie-category-header strong {
    color: #323130;
}

.cookie-category-header .badge {
    font-size: 11px;
    padding: 3px 8px;
    font-weight: 600;
}

.cookie-category-description {
    margin: 8px 0 0 28px;
    font-size: 13px;
    color: #605E5C;
    line-height: 1.5;
}

/* Modal Overlay */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #EDEBE9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-modal-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #323130;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-modal-header h4 i {
    color: #0067B8;
}

.cookie-modal-header .btn-close {
    font-size: 20px;
}

.cookie-modal-body {
    padding: 24px;
}

.cookie-modal-body > p {
    margin-bottom: 20px;
    color: #605E5C;
    font-size: 14px;
}

.cookie-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #EDEBE9;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

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

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

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

    .cookie-consent-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-category-description {
        margin-left: 0;
        margin-top: 12px;
    }

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

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

/* Accessibility */
.cookie-consent-banner:focus-within {
    outline: 2px solid #0067B8;
    outline-offset: 2px;
}

.cookie-category-header input[type="checkbox"]:focus {
    outline: 2px solid #0067B8;
    outline-offset: 2px;
}

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

.cookie-consent-banner {
    animation: slideUp 0.4s ease-out;
}

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