/**
 * Cookie Consent Banner Styles
 * GDPR/UK GDPR Compliant Design
 */

#cookie-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease-in;
}

#cookie-consent-banner.fade-out {
    animation: fadeOut 0.3s ease-out;
}

.cookie-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.cookie-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@media (min-width: 768px) {
    .cookie-banner {
        bottom: 2rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: 90%;
        max-width: 600px;
        border-radius: 12px;
    }
}

.cookie-banner-content {
    padding: 2rem;
}

.cookie-banner h3 {
    margin: 0 0 1rem 0;
    color: #0078d4;
    font-size: 1.5rem;
}

.cookie-banner > p {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    line-height: 1.6;
}

.cookie-options {
    margin: 1.5rem 0;
}

.cookie-option {
    background: #f5f7fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.cookie-option:hover {
    border-color: #0078d4;
}

.cookie-option label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 0.75rem;
}

.cookie-option input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookie-option input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.cookie-label strong {
    color: #2c3e50;
    font-size: 1rem;
}

.required-badge,
.optional-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.required-badge {
    background: #e74c3c;
    color: white;
}

.optional-badge {
    background: #95a5a6;
    color: white;
}

.cookie-description {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.cookie-banner-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.cookie-banner-actions .btn {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary {
    background: #0078d4;
    color: white;
}

.btn-primary:hover {
    background: #005a9e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 120, 212, 0.3);
}

.btn-secondary {
    background: #2ecc71;
    color: white;
}

.btn-secondary:hover {
    background: #27ae60;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(46, 204, 113, 0.3);
}

.btn-tertiary {
    background: #ecf0f1;
    color: #2c3e50;
}

.btn-tertiary:hover {
    background: #bdc3c7;
    transform: translateY(-1px);
}

.cookie-policy-link {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

.cookie-policy-link a {
    color: #0078d4;
    text-decoration: none;
    font-weight: 600;
}

.cookie-policy-link a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 767px) {
    .cookie-banner-content {
        padding: 1.5rem;
    }

    .cookie-banner h3 {
        font-size: 1.25rem;
    }

    .cookie-banner-actions {
        flex-direction: column;
    }

    .cookie-banner-actions .btn {
        width: 100%;
    }
}
