/**
 * Cookie Banner Styles
 * GDPR-compliant Cookie Consent Banner
 */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    border-top: 3px solid #2563eb;
}

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

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

.cookie-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.cookie-banner-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: rgba(37, 99, 235, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
}

.cookie-banner-text h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
}

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

.cookie-banner-text a {
    color: #60a5fa;
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-banner-text a:hover {
    color: #93c5fd;
}

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

.cookie-btn {
    padding: 0.625rem 1.25rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #2563eb;
    color: #fff;
}

.cookie-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.cookie-btn-secondary {
    background: transparent;
    color: #cbd5e1;
    border: 1px solid #475569;
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #64748b;
    color: #fff;
}

.cookie-btn-tertiary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cookie-btn-tertiary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Customize Panel */
.cookie-customize-panel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease-out;
}

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

.cookie-customize-content h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.cookie-category {
    margin-bottom: 1.25rem;
}

.cookie-category-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cookie-category strong {
    display: block;
    font-size: 0.9375rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.cookie-category-desc {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* Toggle Switch */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #475569;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
    background-color: #2563eb;
}

.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(24px);
}

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-customize-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

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

    .cookie-banner-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
    }

    .cookie-banner-content {
        min-width: auto;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }

    .cookie-category-header {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-actions {
        flex-direction: column;
    }

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