/* ============================================
   COOKIE CONSENT BANNER & MODAL
   DSGVO/GDPR Compliant
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(13, 17, 23, 0.98), rgba(22, 27, 34, 0.98));
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-banner__content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-banner__text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cookie-banner__text p {
    color: #8b949e;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.cookie-banner__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.cookie-banner__links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.cookie-banner__links a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.cookie-banner__links a:hover {
    color: #48cae4;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cookie-modal--visible {
    display: flex;
}

.cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.cookie-modal__content {
    position: relative;
    background: #16171b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.cookie-modal__header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-modal__header h2 {
    font-size: 1.75rem;
    margin: 0;
}

.cookie-modal__close {
    background: none;
    border: none;
    color: #c9d1d9;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.cookie-modal__close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-modal__body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-modal__body>p {
    color: #8b949e;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cookie-category {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.cookie-category__header {
    margin-bottom: 0.75rem;
}

.cookie-category__description {
    color: #8b949e;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.cookie-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cookie-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle__slider {
    position: relative;
    width: 48px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    transition: background 0.2s ease;
    margin-right: 1rem;
    flex-shrink: 0;
}

.cookie-toggle__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.cookie-toggle input:checked+.cookie-toggle__slider {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.cookie-toggle input:disabled+.cookie-toggle__slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.cookie-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #48cae4 0%, #4361ee 100%);
    border-radius: 12px;
    font-weight: 600;
}

.cookie-modal__footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Floating Cookie Settings Button */
.cookie-settings-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-settings-float:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.6);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.5rem;
    }

    .cookie-banner__actions {
        flex-direction: column;
    }

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

    .cookie-modal {
        padding: 1rem;
    }

    .cookie-modal__header,
    .cookie-modal__body,
    .cookie-modal__footer {
        padding: 1.5rem;
    }

    .cookie-settings-float {
        bottom: 1rem;
        left: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
}