/* Cookie-Consent-Banner — Dark Premium Theme */

/* === Banner === */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 14, 26, 0.97);
    backdrop-filter: blur(20px) saturate(1.5);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.cc-banner[aria-hidden="false"] {
    transform: translateY(0);
}
.cc-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.cc-banner-text {
    flex: 1;
    min-width: 280px;
}
.cc-banner-text p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}
.cc-banner-text a {
    color: #3b82f6;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cc-banner-text a:hover {
    color: #60a5fa;
}
.cc-banner-actions {
    display: flex;
    gap: 0.625rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* === Buttons === */
.cc-btn {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}
.cc-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
.cc-btn-accept {
    background: #3b82f6;
    color: #fff;
}
.cc-btn-accept:hover {
    background: #2563eb;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}
.cc-btn-essential {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.cc-btn-essential:hover {
    background: rgba(255, 255, 255, 0.12);
}
.cc-btn-settings {
    background: transparent;
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.cc-btn-settings:hover {
    color: #f1f5f9;
    border-color: rgba(255, 255, 255, 0.15);
}

/* === Backdrop === */
.cc-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cc-backdrop[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

/* === Settings Dialog === */
.cc-settings {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 10000;
    width: min(520px, calc(100vw - 2rem));
    max-height: calc(100vh - 4rem);
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.cc-settings[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}
.cc-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cc-settings-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}
.cc-settings-close {
    background: none;
    border: none;
    color: #64748b;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}
.cc-settings-close:hover {
    color: #f1f5f9;
}
.cc-settings-close:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
.cc-settings-body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    max-height: calc(100vh - 14rem);
}
.cc-category {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.cc-category:last-child {
    border-bottom: none;
}
.cc-category-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}
.cc-category-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0 0 0.375rem;
}
.cc-category-info p {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* === Toggle Switch === */
.cc-toggle {
    flex-shrink: 0;
    position: relative;
}
.cc-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.cc-toggle label {
    display: block;
    width: 44px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s ease;
    font-size: 0;
}
.cc-toggle label::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: #64748b;
    border-radius: 50%;
    transition: all 0.2s ease;
}
.cc-toggle input:checked + label {
    background: #3b82f6;
}
.cc-toggle input:checked + label::after {
    left: 23px;
    background: #fff;
}
.cc-toggle input:focus-visible + label {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}
.cc-toggle-disabled label {
    cursor: not-allowed;
    opacity: 0.5;
}
.cc-toggle-disabled input:checked + label {
    background: #10b981;
}
.cc-settings-footer {
    display: flex;
    gap: 0.625rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* === Footer Link === */
.footer-cookie-link {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    padding: 0;
    text-decoration: none;
}
.footer-cookie-link:hover {
    color: #3b82f6;
}

/* === Mobile === */
@media (max-width: 640px) {
    .cc-banner {
        padding: 1rem;
    }
    .cc-banner-inner {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    .cc-banner-actions {
        flex-direction: column;
    }
    .cc-btn {
        width: 100%;
        text-align: center;
    }
    .cc-settings {
        width: calc(100vw - 1rem);
        max-height: calc(100vh - 2rem);
        border-radius: 12px;
    }
    .cc-settings-footer {
        flex-direction: column;
    }
}
