/* Cookie Consent Banner - адаптивный под тему */

.cookie-consent-banner {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: calc(100% - 32px);
    padding: 16px 20px;
    border-radius: 12px;
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
}

/* Светлая тема */
:root .cookie-consent-banner,
[data-theme="light"] .cookie-consent-banner {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Темная тема */
.dark .cookie-consent-banner,
[data-theme="dark"] .cookie-consent-banner {
    background: rgba(30, 30, 30, 0.95);
    color: #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-consent-text {
    margin: 0 0 12px 0;
    font-size: 13px;
    line-height: 1.5;
    transition: color 0.3s;
}

/* Светлая тема - текст */
:root .cookie-consent-text,
[data-theme="light"] .cookie-consent-text {
    color: #666;
}

/* Темная тема - текст */
.dark .cookie-consent-text,
[data-theme="dark"] .cookie-consent-text {
    color: #b0b0b0;
}

.cookie-consent-link {
    color: #AF52DE;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.cookie-consent-link:hover {
    opacity: 0.8;
}

.cookie-consent-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
}

.cookie-consent-accept {
    background: #AF52DE;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.cookie-consent-accept:hover {
    opacity: 0.9;
}

.cookie-consent-decline {
    background: transparent;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s, background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* Светлая тема - decline кнопка */
:root .cookie-consent-decline,
[data-theme="light"] .cookie-consent-decline {
    color: #666;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Темная тема - decline кнопка */
.dark .cookie-consent-decline,
[data-theme="dark"] .cookie-consent-decline {
    color: #b0b0b0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-consent-decline:hover {
    opacity: 0.7;
}

/* Mobile responsive */
@media (max-width: 640px) {
    .cookie-consent-banner {
        bottom: 8px;
        width: calc(100% - 16px);
        padding: 12px 16px;
    }

    .cookie-consent-text {
        font-size: 12px;
    }

    .cookie-consent-buttons {
        flex-direction: column-reverse;
        gap: 6px;
    }

    .cookie-consent-accept,
    .cookie-consent-decline {
        width: 100%;
        padding: 10px 16px;
    }
}
