/* =========================================
   PREMIUM WHEEL STYLES (IMAGE BASED)
   Only strictly related to the Wheel component.
   Does not touch .wcc-box, .wcc-title or other common elements provided by style.css
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&display=swap');

.wcc-wheel-container {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
}

/* Base Asset Images */
.wcc-asset-bezel,
.wcc-asset-wheel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.wcc-asset-bezel {
    z-index: 5;
    /* Bezel frame is top level static */
}

/* Rotator Container */
.wcc-wheel-rotator {
    position: absolute;
    top: 25px;
    /* Offset to fit inside bezel */
    left: 25px;
    width: 350px;
    height: 350px;
    z-index: 2;
    /* Below bezel */
    transition: transform 5s cubic-bezier(0.15, 0.95, 0.25, 1);
}

.wcc-asset-wheel {
    /* The SVG is the background */
    z-index: 1;
}

/* Text Layer - Rotates with wheel */
.wcc-segments-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Center Button (Chrome/Gold Dome) */
.wcc-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    z-index: 20;

    /* Dark Metal Base */
    background: linear-gradient(135deg, #444 0%, #111 100%);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.8),
        /* Deeper shadow */
        0 0 0 4px #d4af37;
    /* Gold ring */

    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.1s;
    border: 1px solid #000;
}

.wcc-wheel-center:active {
    transform: translate(-50%, -50%) scale(0.96);
}

.wcc-center-inner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    /* Solid Black/Dark background for High Contrast */
    background: #000;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1);
    /* Subtle rim light */
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 14px;
    font-weight: 900;
    color: #FFD700;
    /* Gold Text */
    text-shadow: 0 0 2px rgba(255, 215, 0, 0.5);
    /* Glow */
    text-transform: uppercase;
    border: 1px solid #333;
}

/* Typography on Segments */
.wcc-wheel-segment-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    /* Radius */
    height: 40px;
    margin-top: -20px;
    transform-origin: 0% 50%;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
    padding-left: 45px;

    /* PREMIUM FONT: Serif */
    font-family: 'Cinzel', 'Playfair Display', 'Times New Roman', serif;
    font-weight: 700;
    font-size: 14px;
    /* Back to 14px as short text fits now */
    letter-spacing: 1px;
    color: #fff;
    /* Soft premium drop shadow */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    text-transform: uppercase;

    pointer-events: none;
    z-index: 10;
}

.wcc-wheel-segment-text span {
    display: block;
    line-height: 1;
    letter-spacing: 0.5px;
}

.wcc-wheel-segment-text.wcc-flip span {
    transform: rotate(180deg);
}

/* Pointer Asset */
.wcc-asset-pointer {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 70px;
    z-index: 30;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.5));
}

/* Hide separate spin button for wheel game (use Center Button instead) */
.wcc-box[data-game="wheel"] .wcc-btn-spin {
    display: none !important;
}

/* --- MOBILE OPTIMIZATION for WHEEL --- */
@media (max-width: 600px) {
    .wcc-wheel-container {
        width: 300px;
        height: 300px;
    }

    .wcc-wheel-rotator {
        top: 25px;
        left: 25px;
        width: 250px;
        height: 250px;
    }

    .wcc-wheel-segment-text {
        font-size: 11px;
        padding-right: 30px;
    }
}

/* =========================================
   GAME GRID STYLES
   ========================================= */
.wcc-game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Mobile */
    gap: 15px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .wcc-game-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .wcc-game-grid {
        /* Use CSS var from shortcode, or default to 6 */
        grid-template-columns: repeat(var(--wcc-cols, 6), 1fr);
    }
}

.wcc-game-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #111;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.wcc-game-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    z-index: 5;
}

.wcc-game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: filter 0.3s;
}

.wcc-game-card:hover img {
    filter: brightness(1.1);
}

.wcc-card-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    /* Use same font/styles as interface */
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.wcc-game-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* =========================================
   WINNERS TICKER STYLES
   ========================================= */
.wcc-winners-ticker {
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #1a1a2e 0%, #16213e 100%);
    padding: 15px 0;
    position: relative;
}

.wcc-winners-ticker::before,
.wcc-winners-ticker::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.wcc-winners-ticker::before {
    left: 0;
    background: linear-gradient(90deg, #1a1a2e 0%, transparent 100%);
}

.wcc-winners-ticker::after {
    right: 0;
    background: linear-gradient(270deg, #1a1a2e 0%, transparent 100%);
}

.wcc-ticker-track {
    display: flex;
    gap: 30px;
    animation: scroll-ticker var(--ticker-speed, 30s) linear infinite;
    will-change: transform;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.wcc-winner-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 16px;
    min-width: 280px;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.wcc-winner-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.3));
}

.wcc-winner-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wcc-winner-amount {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

.wcc-winner-details {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    gap: 4px;
}

.wcc-winner-name {
    font-weight: 600;
    color: #fff;
}

.wcc-winner-separator {
    opacity: 0.5;
}

.wcc-winner-game {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
}/* --- 4. PROMO SLIDER --- */
.wcc-promo-slider {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.wcc-promo-slider::-webkit-scrollbar {
    display: none;
}
.wcc-promo-track {
    display: flex;
    gap: 15px;
    padding: 0 5px;
}
.wcc-promo-card {
    flex: 0 0 300px;
    min-height: 160px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.wcc-promo-card:hover {
    transform: translateY(-3px);
}
@media (min-width: 768px) {
    .wcc-promo-card {
        flex: 1;
    }
}
.wcc-card-blue {
    background: linear-gradient(135deg, #001f3f 0%, #003366 100%);
}
.wcc-card-dark {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}
.wcc-card-teal {
    background: linear-gradient(135deg, #003333 0%, #004d4d 100%);
}
.wcc-promo-content {
    position: relative;
    z-index: 2;
    max-width: 65%;
}
.wcc-promo-title {

    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.wcc-promo-text {
    font-family: sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 15px 0;
    line-height: 1.4;
}
.wcc-btn-promo {
    display: inline-block;
    padding: 8px 16px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.wcc-btn-promo:hover {
    background: #0056b3;
    color: #fff;
}
.wcc-btn-white {
    background: #fff;
    color: #000;
}
.wcc-btn-white:hover {
    background: #e0e0e0;
    color: #000;
}
.wcc-promo-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40%;
    z-index: 1;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}
.wcc-bg-cashback {
    display: flex;
    align-items: center;
    justify-content: center;
}
.wcc-cashback-text {

    font-size: 32px;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,215,0, 0.5);
    transform: rotate(-10deg);
    opacity: 0.3;
}

/* --- FIX: Show only 3 cards on desktop (others scroll) --- */
@media (min-width: 768px) {
    .wcc-promo-card {
        flex: 0 0 calc(33.333% - 10px) !important;
        min-width: 300px; /* Ensure they don't get too small */
    }
}

/* --- FIX: Exact 3 columns + Dots --- */
@media (min-width: 768px) {
    .wcc-promo-card {
        flex: 0 0 calc(33.333% - 14px) !important;
        min-width: 0 !important;
    }
}

/* Dots Styling */
.wcc-promo-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}
.wcc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s;
}
.wcc-dot.active {
    background: #fff;
    transform: scale(1.4);
    width: 25px;
    border-radius: 10px;
}

/* --- 5. UIKIT VERSION PROMO CARD --- */
/* Layout handled by UIkit classes, this is purely visual */
.wcc-promo-card-uikit {
    min-height: 180px; /* Slight taller */
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    /* No width/flex here! UIkit does it. */
    height: 100%; /* Fill slide height */
}

/* Hover lift effect */
.wcc-promo-card-uikit:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Dots overrides to match dark theme */
.uk-dotnav > * > * {
    background: rgba(255,255,255,0.2);
    width: 10px;
    height: 10px;
    border: none;
}
.uk-dotnav > .uk-active > * {
    background-color: #fff;
    transform: scale(1.2);
}

