/* ============================================
   Casino Card Carousel v3 – Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ---------- Wrapper ---------- */
.ccc-wrapper {
    --ccc-card-w: 280px;
    --ccc-card-h: 440px;
    --ccc-wrapper-w: 900px;
    --ccc-bg: #e8e8e4;
    --ccc-h-size: 90px;
    --ccc-h-weight: 700;
    --ccc-h-style: normal;
    --ccc-h-color: #000;
    --ccc-h-opacity: 0.08;
    --ccc-n-size: 22px;
    --ccc-n-weight: 700;
    --ccc-n-style: normal;
    --ccc-n-color: #1a1a1a;
    --ccc-s-size: 15px;
    --ccc-s-weight: 400;
    --ccc-s-style: normal;
    --ccc-s-color: #555;
    --ccc-dot: #c4c4c4;
    --ccc-dot-active: #1a1a1a;
    --ccc-transition: 0.55s cubic-bezier(.4,.0,.2,1);

    position: relative;
    width: 100%;
    max-width: var(--ccc-wrapper-w);
    margin: 0 auto;
    padding: 40px 20px 50px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    overflow: hidden;
    user-select: none;
    background: var(--ccc-bg);
    border-radius: 12px;
}

/* ---------- Heading ---------- */
.ccc-heading {
    font-family: 'Bebas Neue', 'Arial Black', sans-serif;
    font-size: var(--ccc-h-size);
    font-weight: var(--ccc-h-weight);
    font-style: var(--ccc-h-style);
    letter-spacing: 0.04em;
    line-height: 1;
    color: var(--ccc-h-color);
    opacity: var(--ccc-h-opacity);
    margin-bottom: -30px;
    position: relative;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Stage ---------- */
.ccc-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 20px 0 10px;
}

.ccc-viewport {
    position: relative;
    width: 100%;
    height: calc(var(--ccc-card-h) + 20px);
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ccc-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------- Card Shell ---------- */
.ccc-card {
    position: absolute;
    width: var(--ccc-card-w);
    height: var(--ccc-card-h);
    transition: transform var(--ccc-transition), opacity var(--ccc-transition), filter var(--ccc-transition);
    cursor: pointer;
    will-change: transform, opacity;
}

.ccc-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    background: var(--card-bg, #fff);
    display: flex;
    flex-direction: column;
    position: relative;
}

.ccc-card.is-active .ccc-card-inner {
    box-shadow: 0 16px 48px rgba(0,0,0,.22);
}

/* ---------- Rank Badge ---------- */
.ccc-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

/* ---------- Logo Area ---------- */
.ccc-logo-area {
    position: relative;
    width: 100%;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: visible;
}

.ccc-logo-img {
    max-width: 70%;
    max-height: 55px;
    object-fit: contain;
    display: block;
    filter: brightness(1.05);
}

.ccc-logo-placeholder {
    color: rgba(255,255,255,.7);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.03em;
}

/* ---------- Badge / Tag ---------- */
.ccc-badge {
    position: absolute;
    bottom: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    z-index: 2;
}

/* ---------- Bonus Row ---------- */
.ccc-bonus-row {
    display: flex;
    gap: 0;
    padding: 18px 14px 10px;
    flex-shrink: 0;
}

.ccc-bonus-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2px;
}

.ccc-bonus-col + .ccc-bonus-col {
    border-left: 1px solid #e8e8e8;
}

.ccc-bonus-label {
    font-size: 11px;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.02em;
}

.ccc-bonus-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.ccc-bonus-value br + * {
    font-size: 12px;
    font-weight: 600;
}

/* ---------- Buttons ---------- */
.ccc-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 16px;
    flex-shrink: 0;
}

.ccc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.02em;
    cursor: pointer;
    line-height: 1.2;
}

.ccc-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.ccc-btn1 {
    box-shadow: 0 3px 10px rgba(46,204,64,.25);
}

.ccc-btn2 {
    background: transparent !important;
}

/* ---------- Trust Footer ---------- */
.ccc-trust {
    margin-top: auto;
    padding: 10px 14px 12px;
    font-size: 10px;
    color: #999;
    line-height: 1.5;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.ccc-trust a {
    color: #777;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ccc-trust a:hover {
    color: #333;
}

/* ---------- Nav ---------- */
.ccc-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(4px);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}

.ccc-nav:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    transform: translateY(-50%) scale(1.08);
}

.ccc-nav-left { left: 8px; }
.ccc-nav-right { right: 8px; }

/* ---------- Dots ---------- */
.ccc-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 0;
}

.ccc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--ccc-dot);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.ccc-dot.active {
    background: var(--ccc-dot-active);
    border-color: var(--ccc-dot-active);
    transform: scale(1.2);
}

.ccc-dot:hover:not(.active) {
    border-color: #888;
    background: #ccc;
}

/* ---------- Info Caption ---------- */
.ccc-info {
    margin-top: 20px;
    padding: 0 20px;
}

.ccc-info-line {
    width: 75%;
    max-width: 340px;
    height: 1px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

.ccc-info-line::before {
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #bbb 15%, #999 50%, #bbb 85%, transparent 100%);
}

.ccc-info-line::after {
    content: '\25C6   \25C6';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 6px;
    color: #999;
    letter-spacing: 4px;
    background: var(--ccc-bg);
    padding: 0 12px;
}

.ccc-info-name {
    font-size: var(--ccc-n-size);
    font-weight: var(--ccc-n-weight);
    font-style: var(--ccc-n-style);
    color: var(--ccc-n-color);
    margin: 12px 0 10px;
    letter-spacing: 0.02em;
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-height: 1.4em;
}

.ccc-info-subtitle {
    font-size: var(--ccc-s-size);
    font-weight: var(--ccc-s-weight);
    font-style: var(--ccc-s-style);
    color: var(--ccc-s-color);
    letter-spacing: 0.04em;
    margin-top: 10px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-height: 1.4em;
}

.ccc-info-name.is-changing,
.ccc-info-subtitle.is-changing {
    opacity: 0;
    transform: translateY(6px);
}

/* ---------- Dragging ---------- */
.ccc-wrapper.is-dragging .ccc-card {
    transition-duration: 0s !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .ccc-wrapper {
        padding: 24px 10px 36px;
    }
    .ccc-heading {
        font-size: calc(var(--ccc-h-size) * 0.5) !important;
        margin-bottom: -16px;
    }
    .ccc-nav { width: 36px; height: 36px; }
    .ccc-nav svg { width: 16px; height: 16px; }
    .ccc-nav-left { left: 2px; }
    .ccc-nav-right { right: 2px; }
}
