/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    background: #1A1A1A;
    border-top: 1px solid rgba(244, 180, 26, 0.2);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    padding: 20px 24px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.cookie-banner__text {
    flex: 1;
    font-size: 14px;
    color: #ADADAD;
    line-height: 1.6;
}

.cookie-banner__text strong {
    color: #F5F5F5;
}

.cookie-banner__text a {
    color: #F4B41A;
    text-decoration: none;
}

.cookie-banner__text a:hover {
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-btn {
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

.cookie-btn--accept {
    background: #F4B41A;
    color: #1A1A1A;
}

.cookie-btn--accept:hover {
    background: #E09A00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 180, 26, 0.4);
}

.cookie-btn--reject {
    background: transparent;
    color: #808080;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn--reject:hover {
    color: #F5F5F5;
    border-color: rgba(255, 255, 255, 0.4);
}

.cookie-btn--settings {
    background: transparent;
    color: #606060;
    padding: 9px 12px;
    text-decoration: underline;
    font-size: 13px;
}

.cookie-btn--settings:hover {
    color: #ADADAD;
}

/* Scroll-to-top posun keď je banner viditeľný */
body.cookie-banner-visible .scroll-to-top {
    bottom: 110px;
}

/* ===== COOKIE MODAL ===== */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cookie-modal.is-visible {
    opacity: 1;
    pointer-events: all;
}

.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.cookie-modal__box {
    position: relative;
    background: #2D2D2D;
    border: 1px solid rgba(244, 180, 26, 0.15);
    border-radius: 16px;
    padding: 36px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.cookie-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #606060;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.cookie-modal__close:hover {
    color: #F5F5F5;
}

.cookie-modal__box h2 {
    font-size: 22px;
    font-weight: 700;
    color: #F5F5F5;
    margin: 0 0 10px;
    font-family: 'Montserrat', sans-serif;
}

.cookie-modal__box > p {
    font-size: 14px;
    color: #ADADAD;
    line-height: 1.6;
    margin: 0 0 28px;
}

.cookie-modal__box > p a {
    color: #F4B41A;
    text-decoration: none;
}

.cookie-modal__box > p a:hover {
    text-decoration: underline;
}

/* Cookie categories */
.cookie-category {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.25);
}

.cookie-category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.cookie-category__title {
    font-size: 15px;
    font-weight: 600;
    color: #F5F5F5;
    font-family: 'Montserrat', sans-serif;
}

.cookie-category__desc {
    font-size: 13px;
    color: #808080;
    line-height: 1.6;
    margin: 0;
}

/* Toggle switch */
.cookie-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
}

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

.cookie-toggle__track {
    width: 40px;
    height: 22px;
    background: #444;
    border-radius: 11px;
    transition: background 0.2s;
    position: relative;
    flex-shrink: 0;
}

.cookie-toggle__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: #666;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle__track {
    background: #F4B41A;
}

.cookie-toggle input:checked + .cookie-toggle__track::after {
    transform: translateX(18px);
    background: #1A1A1A;
}

.cookie-toggle--disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.cookie-toggle--disabled .cookie-toggle__track {
    background: rgba(244, 180, 26, 0.35);
}

.cookie-toggle--disabled .cookie-toggle__track::after {
    transform: translateX(18px);
    background: #F4B41A;
}

/* Modal actions */
.cookie-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.cookie-modal__actions .cookie-btn {
    flex: 1;
    text-align: center;
}

/* ===== COOKIE PREFERENCES LINK (footer / podstránky) ===== */
.cookie-preferences-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-banner__actions {
        flex-wrap: wrap;
    }

    .cookie-btn--accept,
    .cookie-btn--reject {
        flex: 1;
    }

    .cookie-modal__box {
        padding: 24px 20px;
    }

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

    body.cookie-banner-visible .scroll-to-top {
        bottom: 140px;
    }
}
