/* Cookie Banner Styles - Collytics.io */
/* Wersja: 2.0 - Premium redesign */

@keyframes cookieSlideUp {
    from { transform: translateY(120%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    margin: 0 auto;
    width: auto;
    max-width: 860px;
    background: rgba(13, 13, 22, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(217, 104, 72, 0.12),
        0 24px 60px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    padding: 0;
    z-index: 9999;
    display: none;
    overflow: hidden;
    transform: translateY(120%);
}

.cookie-banner.show {
    display: block;
    animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Cienka linia gradientu na górze */
.cookie-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #D96848, #B81E72, #6B4FBB);
    border-radius: 18px 18px 0 0;
}

.banner-content {
    padding: 22px 28px 20px;
}

/* GŁÓWNY ROW: tekst + przyciski obok siebie */
.banner-main-row {
    display: flex;
    align-items: center;
    gap: 28px;
}

.banner-text-block {
    flex: 1;
    min-width: 0;
}

.banner-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.banner-cookie-icon {
    font-size: 16px;
    line-height: 1;
}

.banner-header h2 {
    font-size: 15px;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.banner-text {
    color: rgba(255,255,255,0.75);
    font-size: 12.5px;
    line-height: 1.55;
    margin: 0;
}

.banner-text a {
    color: rgba(255,255,255,0.5);
    text-decoration: underline;
    transition: color 0.2s;
}

.banner-text a:hover {
    color: rgba(255,255,255,0.8);
}

/* Przyciski */
.banner-buttons-block {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, #D96848 0%, #B81E72 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(185, 30, 114, 0.28);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(185, 30, 114, 0.38);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.11);
    color: #fff;
}

.btn-text {
    background: transparent;
    color: rgba(255,255,255,0.35);
    font-size: 12px;
    font-weight: 500;
    padding: 10px 12px;
    text-decoration: none;
}

.btn-text:hover {
    color: rgba(255,255,255,0.65);
}

/* Panel dostosowania */
.consent-options {
    display: none;
    margin: 16px 0 4px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.consent-options.show {
    display: block;
}

.consent-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.consent-category:last-child {
    border-bottom: none;
}

.category-info h3 {
    font-size: 13px;
    color: #ffffff;
    margin: 0 0 3px 0;
    font-weight: 600;
}

.category-info p {
    font-size: 11.5px;
    color: #5858A0;
    margin: 0;
}

.toggle-switch {
    position: relative;
    width: 42px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.12);
    transition: .3s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: linear-gradient(135deg, #D96848, #B81E72);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

input:disabled + .slider {
    background: linear-gradient(135deg, #D96848, #B81E72);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer z "Powered by" */
.banner-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 10px 28px 14px;
    border-top: 1px solid rgba(255,255,255,0.04);
    margin-top: 0;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.35;
}

.powered-by-text {
    font-size: 10.5px;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.04em;
}

.powered-by-logo-img {
    height: 28px;
    width: auto;
    opacity: 0.6;
    filter: brightness(0) invert(1);
}

/* Responsywność */
@media (max-width: 680px) {
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        border-radius: 14px;
    }

    .banner-content {
        padding: 16px 18px 14px;
    }

    .banner-main-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .banner-buttons-block {
        width: 100%;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .btn-secondary {
        flex: 1;
    }

    .banner-footer {
        padding: 8px 18px 12px;
    }
}
