/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 41, 59, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    z-index: 10000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    display: none;
}

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

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

.cookie-banner-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.cookie-banner-text p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0;
    max-width: 600px;
}

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

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

.cookie-btn-primary {
    background: linear-gradient(135deg, #1E3A8A 0%, #3730A3 100%);
    color: white;
}

.cookie-btn-primary:hover {
    background: linear-gradient(135deg, #1E40AF 0%, #4338CA 100%);
    transform: translateY(-1px);
}

.cookie-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Cookie Customizer */
.cookie-customizer {
    padding: 2rem;
    background: rgba(248, 250, 252, 0.98);
    color: #1E293B;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
}

.cookie-customizer-content {
    max-width: 800px;
    margin: 0 auto;
}

.cookie-customizer h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1E293B;
}

.cookie-categories {
    margin-bottom: 2rem;
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

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

.cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.75rem;
}

.cookie-toggle input[type="checkbox"] {
    display: none;
}

.cookie-toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: #CBD5E1;
    border-radius: 12px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.cookie-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider {
    background: #1E3A8A;
}

.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle-slider::before {
    transform: translateX(20px);
}

.cookie-toggle input[type="checkbox"]:disabled + .cookie-toggle-slider {
    background: #94A3B8;
    cursor: not-allowed;
}

.cookie-toggle input[type="checkbox"]:disabled ~ .cookie-category-name {
    color: #64748B;
}

.cookie-category-name {
    font-weight: 500;
    color: #1E293B;
}

.cookie-category-description {
    font-size: 0.875rem;
    color: #64748B;
    line-height: 1.5;
    margin: 0;
    margin-left: 52px;
}

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

.cookie-policy-link {
    color: #1E3A8A;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: auto;
}

.cookie-policy-link:hover {
    text-decoration: underline;
}

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

    .cookie-banner-text {
        text-align: center;
    }

    .cookie-banner-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cookie-btn {
        flex: 1;
        min-width: 100px;
    }

    .cookie-customizer {
        padding: 1.5rem 1rem;
    }

    .cookie-category-description {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .cookie-customizer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-policy-link {
        margin-left: 0;
        text-align: center;
        margin-top: 0.5rem;
    }
}

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

    .cookie-btn {
        width: 100%;
    }

    .cookie-toggle {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

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

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .cookie-banner {
        background: #000;
        border-top: 2px solid #fff;
    }

    .cookie-btn-primary {
        background: #000;
        border: 2px solid #fff;
    }

    .cookie-btn-secondary,
    .cookie-btn-outline {
        border: 2px solid #fff;
    }

    .cookie-category {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }

    .cookie-btn {
        transition: none;
    }

    .cookie-toggle-slider,
    .cookie-toggle-slider::before {
        transition: none;
    }
}

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