/* ============================================================
   1. STILURI VIZUALE DE BAZĂ (Modal + Preview)
============================================================ */
.slot-preview-wrap {
    background: #26404D;
    color: #fff;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.slot-preview-body {
    padding: 16px 18px 20px;
    position: relative;
    z-index: 2;
    background: #26404D;
}

/* Topbar mobil cu drag + X */
.slot-preview-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 42px;
    background: #26404D;
    z-index: 50;
    /* peste restul conținutului din modal */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px 10px 0 0;
}

/* Drag handle centrat în bară */
.slot-preview-handle {
    width: 80px;
    height: 4px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.4);
}

/* Buton X în dreapta barei */
.slot-preview-close {
    position: absolute;
    right: 8px;
    top: 5px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 60;
    transition: background 0.2s;
}

.slot-preview-close:hover {
    background: rgba(0, 0, 0, 0.5);
}

.slot-preview-close::before,
.slot-preview-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #fff;
    transform: translate(-50%, -50%) rotate(45deg);
}

.slot-preview-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}


/* IMAGINE HERO */
/* Container imagine */
.slot-preview-media {
    position: relative;
    overflow: hidden;
    margin-top: 42px;
    max-height: 260px;
    transition:
        max-height 0.35s ease,
        opacity 0.25s ease;
}

/* Imagine full width curată */
.slot-preview-media img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.slot-preview-media::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    box-shadow:
        inset 0 0 28px rgba(0, 0, 0, 0.45),
        inset 0 0 50px rgba(0, 0, 0, 0.25);
    z-index: 2;
}
.slot-preview-media::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at center,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.22) 100%),
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0) 55%,
            rgba(0, 0, 0, 0.35) 100%);
    mix-blend-mode: multiply;
    z-index: 3;
}



/* ============================================================
   BUTON PRINCIPAL — Play for Free
============================================================ */

.slot-btn-primary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
    background: linear-gradient(180deg, #4ade80 0%, #22c55e 100%); /* verde premium */
    border: none;
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    text-align: left;
    color: #fff;
    transition: all 0.15s ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.2),
        inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}

.slot-btn-primary:hover {
    background: linear-gradient(180deg, #5ff38e 0%, #27d068 100%);
    transform: translateY(-1px);
    box-shadow:
        0 3px 5px rgba(0, 0, 0, 0.25),
        inset 0 -3px 0 rgba(0, 0, 0, 0.2);
}

.slot-btn-primary:active {
    transform: scale(0.98);
}

/* Icon în cerc alb */
.slot-btn-icon {
    min-width: 40px;
    min-height: 40px;
    background: white;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22c55e; /* culoarea icon-ului */
    flex-shrink: 0;
}

/* Textele */
.slot-btn-labels {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.slot-btn-title {
    font-size: 20px;
    font-weight: 800;
}

.slot-btn-sub {
    font-size: 12px;
    opacity: 0.9;
}

.slot-preview-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 14px;
}

.slot-preview-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.slot-preview-provider {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.slot-rating-btn {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.slot-btn {
    width: 100%;
    border-radius: 10px;
    padding: 12px 14px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.1s;
}

.slot-btn:active {
    transform: scale(0.98);
}


.slot-btn-secondary {
    /* background: #334155; */
    background: #F36720;
    color: #f1f5f9;
    border: 1px solid orangered;
    display: flex;
    gap:10px;
    flex-direction: row !important;
    align-items: center;
    justify-content: center;
}

/* Link spre pagina jocului */
.slot-preview-single-link {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #cbd5f5;
    opacity: 0.85;
    font-size: 14px;
    font-weight: 500;
    transition: opacity .2s ease, transform .2s ease;
}

.slot-preview-single-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

/* Săgeată fancy */
.slot-single-arrow {
    stroke: #cbd5f5;
    transition: transform .25s cubic-bezier(.25,1,.4,1);
}

.slot-preview-single-link:hover .slot-single-arrow {
    transform: translateX(3px);
}



/* Icon săgeată în buton */
.cz-toggle-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Wrapper listă cazinouri în modal */
.slot-preview-real-wrapper {
    margin-top: 0;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.slot-preview-real-list {
    padding-top: 16px;
    padding-bottom: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}
/* când lista e deschisă (după ce s-a încărcat AJAX) */
.cz-modal-overlay.slot-casinos-open .slot-preview-real-list {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   2. STRUCTURA NATIVĂ (Overlay + Dialog)
============================================================ */
.cz-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cz-modal-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.cz-modal-dialog {
    width: 100%;
    max-width: 460px;
    margin: 20px;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cz-modal-overlay.is-open .cz-modal-dialog {
    transform: scale(1);
}

/* ============================================================
   3. MOBILE BOTTOM SHEET & ANIMATION
============================================================ */
@media (max-width: 991.98px) {

    .cz-modal-overlay {
        align-items: flex-end;
        background: rgba(0, 0, 0, 0.5);
        padding: 0;
    }

    .cz-modal-dialog {
        margin: 0;
        max-width: 100%;
        width: 100%;
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1);
        touch-action: none;
    }

    .cz-modal-overlay.is-open .cz-modal-dialog {
        transform: translateY(0);
    }

    .cz-modal-dialog.is-dragging {
        transition: none !important;
    }

    .slot-preview-wrap {
        border-radius: 16px 16px 0 0 !important;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    /* Când lista de cazinouri e deschisă */
    .cz-modal-overlay.slot-casinos-open .slot-preview-media {
        max-height: 0;
        opacity: 0;
        /* transform: scale(0.9); */
    }

    .cz-modal-overlay.slot-casinos-open .slot-preview-real-wrapper {
        max-height: 55vh;
        opacity: 1;
        margin-top: 10px;
    }

    .cz-modal-overlay.slot-casinos-open .cz-toggle-icon {
        transform: rotate(180deg);
    }

    .slot-preview-real-wrapper {
        overflow-y: auto;
        touch-action: pan-y;
        overscroll-behavior-y: contain;
    }
}

/* ============================================================
   4. LISTA DE CAZINOURI — CARDURI MARI & AERISITE
============================================================ */

/* Listă verticală */
.slot-preview-real-casinos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* CARD CLICKABIL */
.slot-casino-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #1f2937;
    background: #0b1120;
    text-decoration: none;
    color: #e5e7eb;
    min-height: 80px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
.cz-modal-overlay.slot-casinos-open .slot-casino-row {
    opacity: 1;
    transform: translateY(0);
}

/* Săgeată hint (mai mare) */
.slot-casino-row::after {
    content: '›';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 70px;
    opacity: 0.4;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.slot-casino-row:hover {
    background: #111827;
    border-color: #f97316;
    box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.3);
    transform: translateY(-1px);
}

.slot-casino-row:hover::after {
    opacity: 0.9;
    transform: translate(4px, -50%);
}

/* LOGO MARE pe mobile (80px) */
.slot-casino-logo img {
    width: 80px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* fallback logo */
.slot-casino-fallback {
    font-size: 14px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.8);
    color: #e2e8f0;
}

/* ZONĂ TEXT */
.slot-casino-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

/* TITLU MARE */
.slot-casino-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* BONUSURI — UNA SUB ALTA */
.slot-casino-bonuses {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* BONUSURI pe mobile – 11px */
.slot-casino-bonuses .bonus {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    white-space: nowrap;
}

/* Casino style: verde / roșu, dar UX friendly pe dark bg */
.bonus-main {
    color: #22c55e;
    font-weight: 700;
    border: 1px solid #22c55e;
}

.bonus-sec {
    color: white;
    border: 1px solid gainsboro;
}
/* Loader mic în butonul "Joacă pe bani" */
.slot-btn-loader {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 2px solid rgba(248, 250, 252, 0.3);
    border-top-color: #facc15;
    margin-left: 8px;
    display: none;
    box-sizing: border-box;
    animation: slot-btn-spin 0.6s linear infinite;
}

/* când butonul e în loading */
.slot-preview-real-btn.is-loading .slot-btn-loader {
    display: inline-block;
}

.slot-preview-real-btn.is-loading .slot-btn-text {
    opacity: 0.7;
}

/* opțional: dezactivat vizual */
.slot-preview-real-btn.is-loading {
    cursor: wait;
}

/* animația spinnerului */
@keyframes slot-btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* DESKTOP – CARDURI MAI MARI + SCROLL STILIZAT, imagine ascunsă */
@media (min-width: 992px) {
    .cz-modal-overlay.slot-casinos-open .slot-preview-real-wrapper {
        max-height: 60vh;
        opacity: 1;
        margin-top: 20px;
        overflow-y: auto;
        scrollbar-width: thin;
        /* Firefox */
        scrollbar-color: #1f2937 #020617;
        /* thumb / track */
    }

    .cz-modal-overlay.slot-casinos-open .cz-modal-dialog {
        max-height: 90vh;
        /* dialogul poate ocupa până la 90% din înălțimea ferestrei */
    }

    /* WebKit scrollbars (Chrome, Edge, Safari) */
    .slot-preview-real-wrapper::-webkit-scrollbar {
        width: 6px;
    }

    .slot-preview-real-wrapper::-webkit-scrollbar-track {
        background: #020617;
    }

    .slot-preview-real-wrapper::-webkit-scrollbar-thumb {
        background: #1f2937;
        border-radius: 999px;
    }

    .slot-preview-real-wrapper::-webkit-scrollbar-thumb:hover {
        background: #334155;
    }

    /* Ascundem imaginea și pe desktop când lista e deschisă, ca pe mobile */
    .cz-modal-overlay.slot-casinos-open .slot-preview-media {
        max-height: 0;
        opacity: 0;
        /* transform: scale(0.9); */
    }

    .slot-casino-row {
        padding: 16px 20px;
        min-height: 90px;
        gap: 20px;
    }

    .slot-casino-logo img {
        width: 110px;
        /* logo mai mare pe desktop */
    }

    .slot-casino-title {
        font-size: 18px;
    }

    .slot-casino-bonuses .bonus {
        font-size: 13px;
        padding: 5px 10px;
    }
}



.slot-preview-rating {
    display: flex;
    gap: 10px;
}