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

/* Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    z-index: 9999;
    animation: slideUp 0.4s ease-out;
    transition: opacity 0.3s ease;
}

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

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cookie-banner-text h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    color: #1a1a1a;
    font-weight: 700;
}

.cookie-banner-text p {
    margin: 0;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-banner-text strong {
    color: #E53935;
    font-weight: 600;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.cookie-btn-primary {
    background: #E53935;
    color: white;
}

.cookie-btn-primary:hover {
    background: #c62828;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.cookie-btn-secondary {
    background: #f5f5f5;
    color: #1a1a1a;
    border: 1px solid #ddd;
}

.cookie-btn-secondary:hover {
    background: #e0e0e0;
}

.cookie-btn-link {
    background: transparent;
    color: #4a5568;
    text-decoration: underline;
    padding: 0.75rem 1rem;
}

.cookie-btn-link:hover {
    color: #E53935;
}

.cookie-banner-links {
    font-size: 0.85rem;
    color: #718096;
}

.cookie-banner-links a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
}

.cookie-banner-links a:hover {
    color: #E53935;
    text-decoration: underline;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cookie-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1a1a1a;
    font-weight: 700;
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #718096;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cookie-modal-close:hover {
    background: #f5f5f5;
    color: #1a1a1a;
}

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

.cookie-option {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

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

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

.cookie-option-header label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
}

.cookie-option-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #E53935;
}

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

.cookie-option-header strong {
    font-size: 1rem;
    color: #1a1a1a;
}

.cookie-option-desc {
    margin: 0;
    padding-left: 28px;
    color: #718096;
    font-size: 0.9rem;
    line-height: 1.6;
}

.cookie-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

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

    .cookie-banner-text h3 {
        font-size: 1.1rem;
    }

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

    .cookie-banner-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

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

    .cookie-modal-content {
        margin: 1rem;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 1rem;
    }
}

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