/* ================================================
   COOKIE CONSENT BANNER – styl dopasowany do bloga
   ================================================ */

/* ── BANNER KONTENER ── */
.cc-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    padding: 0 20px 20px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cc-banner.cc-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.cc-banner.cc-hiding {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cc-container {
    max-width: 820px;
    margin: 0 auto;
    background: rgba(15, 18, 30, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px 28px;
    box-shadow:
        0 -4px 40px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(0, 168, 136, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #c8cdd8;
}

/* ── GŁÓWNA SEKCJA ── */
.cc-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.cc-icon {
    font-size: 32px;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(0, 168, 136, 0.3));
    animation: cc-wobble 2s ease-in-out infinite;
}

@keyframes cc-wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-6deg); }
    75% { transform: rotate(6deg); }
}

.cc-title {
    margin: 0 0 6px;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.cc-desc {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    color: #8b92a5;
}

/* ── PANEL SZCZEGÓŁÓW ── */
.cc-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    opacity: 0;
}

.cc-details.open {
    max-height: 400px;
    opacity: 1;
    margin-top: 20px;
}

.cc-category {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
    transition: border-color 0.2s ease;
}

.cc-category:hover {
    border-color: rgba(0, 168, 136, 0.15);
}

.cc-category:last-child {
    margin-bottom: 0;
}

.cc-cat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cc-cat-info {
    flex: 1;
    min-width: 0;
}

.cc-cat-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #e2e5ec;
    margin-bottom: 2px;
}

.cc-cat-desc {
    display: block;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* ── TOGGLE SWITCH ── */
.cc-toggle-wrap {
    flex-shrink: 0;
}

.cc-always {
    font-size: 11px;
    font-weight: 600;
    color: #00a888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.cc-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.cc-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.cc-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    transition: background 0.3s ease;
}

.cc-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #555;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.cc-toggle input:checked + .cc-slider {
    background: rgba(0, 168, 136, 0.3);
}

.cc-toggle input:checked + .cc-slider::before {
    transform: translateX(20px);
    background: #00a888;
    box-shadow: 0 0 8px rgba(0, 168, 136, 0.5);
}

.cc-toggle input:focus-visible + .cc-slider {
    outline: 2px solid #00a888;
    outline-offset: 2px;
}

/* ── PRZYCISKI ── */
.cc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.cc-btn {
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.cc-btn svg {
    flex-shrink: 0;
}

.cc-btn-settings {
    background: transparent;
    color: #8b92a5;
    padding: 10px 14px;
    margin-right: auto;
}

.cc-btn-settings:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.cc-btn-reject {
    background: rgba(255, 255, 255, 0.06);
    color: #8b92a5;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cc-btn-reject:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #c8cdd8;
    border-color: rgba(255, 255, 255, 0.15);
}

.cc-btn-save {
    background: rgba(0, 168, 136, 0.15);
    color: #00d4aa;
    border: 1px solid rgba(0, 168, 136, 0.25);
}

.cc-btn-save:hover {
    background: rgba(0, 168, 136, 0.25);
}

.cc-btn-accept {
    background: linear-gradient(135deg, #00a888, #00c49a);
    color: #fff;
    box-shadow:
        0 2px 12px rgba(0, 168, 136, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cc-btn-accept:hover {
    background: linear-gradient(135deg, #00c49a, #00dba8);
    transform: translateY(-1px);
    box-shadow:
        0 4px 20px rgba(0, 168, 136, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.cc-btn-accept:active {
    transform: translateY(0);
}

/* ── FLOATING BUTTON ── */
.cc-float-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99998;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 18, 30, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: cc-float-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 0.3s;
}

@keyframes cc-float-in {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cc-float-btn:hover {
    background: rgba(15, 18, 30, 0.95);
    border-color: rgba(0, 168, 136, 0.3);
    box-shadow: 0 4px 24px rgba(0, 168, 136, 0.2);
    transform: scale(1.1);
}

/* ── RESPONSYWNOŚĆ ── */
@media (max-width: 640px) {
    .cc-banner {
        padding: 0 12px 12px;
    }

    .cc-container {
        padding: 20px;
        border-radius: 16px;
    }

    .cc-main {
        gap: 12px;
    }

    .cc-icon {
        font-size: 26px;
    }

    .cc-title {
        font-size: 15px;
    }

    .cc-desc {
        font-size: 12.5px;
    }

    .cc-actions {
        flex-direction: column;
        gap: 8px;
    }

    .cc-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 18px;
    }

    .cc-btn-settings {
        order: 3;
        margin-right: 0;
    }

    .cc-btn-accept {
        order: 1;
    }

    .cc-btn-reject {
        order: 2;
    }

    .cc-btn-save {
        order: 2;
    }

    .cc-cat-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .cc-float-btn {
        bottom: 16px;
        left: 16px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}
