/* --- Reset & Base --- */
.wcc-wrapper {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    box-sizing: border-box;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.wcc-wrapper * {
    box-sizing: border-box;
}

/* =========================================
   BASE DARK THEME STRUCTURE
   (Common styles for all 5 themes)
   ========================================= */
.wcc-box {
    background-color: #050505;
    /* Always black bg */
    color: #fff;
    border: 1px solid #333;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    /* Theme specific colors will be injected via variables or specific classes below */
}

/* Common Reel Style */
.wcc-reel-col {
    position: relative;
    height: 140px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(180deg, #111 0%, #000 50%, #111 100%);
    color: #fff;
    border-width: 2px;
    border-style: solid;
    /* Border color set by theme */
}

/* Common Text */
.wcc-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    text-align: center;
    letter-spacing: -1px;
    line-height: 1.2;
    z-index: 2;
    padding: 0 10px;
}

.wcc-subtitle {
    color: #888;
    margin-top: 5px;
    font-size: 1.1rem;
    z-index: 2;
    text-align: center;
}

/* Common Button */
.wcc-btn-spin {
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 220px;
    max-width: 100%;
    border: none;
    color: #000;
    /* Most buttons will have dark text on bright bg */
}

.wcc-btn-spin:active:not(:disabled) {
    transform: scale(0.95);
}

.wcc-btn-spin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.wcc-btn-spin:hover:not(:disabled) {
    transform: translateY(-2px);
}

/* Common Reels Container */
.wcc-reels-container {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
    perspective: 1000px;
}

.wcc-reel-strip {
    width: 100%;
    will-change: transform;
    text-align: center;
}

.wcc-symbol {
    height: 140px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    line-height: 1;
}

/* =========================================
   THEME 1: GOLD (Default)
   ========================================= */
.wcc-theme-gold .wcc-reel-col {
    border-color: #b8860b;
    box-shadow: inset 0 0 20px rgba(184, 134, 11, 0.2);
}

.wcc-theme-gold .wcc-btn-spin {
    background: linear-gradient(180deg, #ffd700 0%, #ff8c00 100%);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.4);
}

.wcc-theme-gold .wcc-modal-content {
    border-color: #ffd700;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.2);
}

.wcc-theme-gold .wcc-btn-claim {
    background: linear-gradient(90deg, #ffc800 0%, #ff8800 100%);
    color: #000;
}

/* =========================================
   THEME 2: CYBER (Purple/Neon)
   ========================================= */
.wcc-theme-cyber .wcc-reel-col {
    border-color: #d946ef;
    /* Fuchsia */
    box-shadow: inset 0 0 20px rgba(217, 70, 239, 0.2);
}

.wcc-theme-cyber .wcc-btn-spin {
    background: linear-gradient(180deg, #d946ef 0%, #7c3aed 100%);
    color: #fff;
    /* White text for purple btn */
    box-shadow: 0 0 30px rgba(217, 70, 239, 0.4);
}

.wcc-theme-cyber .wcc-modal-content {
    border-color: #d946ef;
    box-shadow: 0 0 50px rgba(217, 70, 239, 0.3);
}

.wcc-theme-cyber .wcc-btn-claim {
    background: linear-gradient(90deg, #e879f9 0%, #a855f7 100%);
    color: #fff;
}

.wcc-theme-cyber .wcc-modal-title {
    color: #e879f9;
}

/* =========================================
   THEME 3: FIRE (Red/Orange)
   ========================================= */
.wcc-theme-fire .wcc-reel-col {
    border-color: #ef4444;
    /* Red */
    box-shadow: inset 0 0 20px rgba(239, 68, 68, 0.2);
}

.wcc-theme-fire .wcc-btn-spin {
    background: linear-gradient(180deg, #ff5e5e 0%, #b91c1c 100%);
    color: #fff;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.4);
}

.wcc-theme-fire .wcc-modal-content {
    border-color: #ef4444;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.3);
}

.wcc-theme-fire .wcc-btn-claim {
    background: linear-gradient(90deg, #ff5e5e 0%, #ef4444 100%);
    color: #fff;
}

.wcc-theme-fire .wcc-modal-title {
    color: #ff5e5e;
}

/* =========================================
   THEME 4: OCEAN (Blue/Cyan)
   ========================================= */
.wcc-theme-ocean .wcc-reel-col {
    border-color: #06b6d4;
    /* Cyan */
    box-shadow: inset 0 0 20px rgba(6, 182, 212, 0.2);
}

.wcc-theme-ocean .wcc-btn-spin {
    background: linear-gradient(180deg, #22d3ee 0%, #0284c7 100%);
    color: #000;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

.wcc-theme-ocean .wcc-modal-content {
    border-color: #06b6d4;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.3);
}

.wcc-theme-ocean .wcc-btn-claim {
    background: linear-gradient(90deg, #67e8f9 0%, #06b6d4 100%);
    color: #000;
}

.wcc-theme-ocean .wcc-modal-title {
    color: #67e8f9;
}

/* =========================================
   THEME 5: EMERALD (Green/Matrix)
   ========================================= */
.wcc-theme-emerald .wcc-reel-col {
    border-color: #22c55e;
    /* Green */
    box-shadow: inset 0 0 20px rgba(34, 197, 94, 0.2);
}

.wcc-theme-emerald .wcc-btn-spin {
    background: linear-gradient(180deg, #4ade80 0%, #16a34a 100%);
    color: #000;
    box-shadow: 0 0 30px rgba(74, 222, 128, 0.4);
}

.wcc-theme-emerald .wcc-modal-content {
    border-color: #22c55e;
    box-shadow: 0 0 50px rgba(34, 197, 94, 0.3);
}

.wcc-theme-emerald .wcc-btn-claim {
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
    color: #000;
}

.wcc-theme-emerald .wcc-modal-title {
    color: #4ade80;
}


/* --- POPUP (Common) --- */
.wcc-modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    border-radius: 20px;
}

.wcc-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.wcc-modal-content {
    background: #000;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #fff;
    /* Fallback */
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    width: 360px;
    max-width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
}

.wcc-modal-backdrop.active .wcc-modal-content {
    transform: scale(1);
}

.wcc-modal-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.wcc-modal-title {
    font-size: 2rem;
    font-weight: 800;
    font-style: italic;
    margin: 0 0 10px 0;
}

.wcc-modal-text {
    color: #ccc;
    font-size: 1rem;
    margin-bottom: 25px;
}

.wcc-modal-text strong {
    color: #fff;
    font-weight: 700;
}

.wcc-btn-claim {
    display: block;
    width: 100%;
    padding: 16px 0;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 10px;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.wcc-btn-close {
    background: none;
    border: none;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 20px;
    font-size: 0.9rem;
}

/* --- MOBILE OPTIMIZATION (<600px) --- */
@media (max-width: 600px) {
    .wcc-box {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    .wcc-title {
        font-size: 1.75rem;
    }

    .wcc-subtitle {
        font-size: 0.9rem;
        margin-top: 2px;
    }

    .wcc-reels-container {
        gap: 6px;
    }

    .wcc-reel-col {
        height: 70px;
        border-radius: 8px;
        border-width: 1px;
    }

    .wcc-symbol {
        height: 70px;
        font-size: 1.8rem;
    }

    .wcc-btn-spin {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        min-width: 0;
        width: 100%;
    }

    .wcc-modal-content {
        padding: 20px;
    }
}