/* ============================================================
   FUNWEEKNORD SLOT MODULE STYLES
   Nordic Week Festival Demo Slot Design
   ============================================================ */

/* ============================================================
   SLOT CONTAINER
   ============================================================ */

.fwn-slot {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    margin: 2rem auto;
    max-width: 500px;
    text-align: center;
    border: 2px solid var(--festival-blue);
    position: relative;
    overflow: hidden;
}

.fwn-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.05) 0%, 
        rgba(78, 205, 196, 0.05) 50%, 
        rgba(255, 107, 107, 0.05) 100%);
    pointer-events: none;
}

.fwn-slot__title {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--festival-blue), var(--festival-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

/* ============================================================
   SLOT FRAME & REELS
   ============================================================ */

.fwn-slot__frame {
    background: linear-gradient(135deg, var(--festival-gray), white);
    border-radius: 15px;
    padding: 1rem;
    margin: 1.5rem 0;
    box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    position: relative;
    z-index: 2;
}

.fwn-slot__reel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fwn-slot__cell {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--festival-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fwn-slot__cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(74, 144, 226, 0.1), 
        rgba(78, 205, 196, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fwn-slot__cell:hover::before {
    opacity: 1;
}

/* ============================================================
   FESTIVAL SYMBOL STYLES
   ============================================================ */

.fwn-slot__cell[data-symbol="bubble"] {
    background: linear-gradient(135deg, var(--festival-blue), var(--festival-mint));
    color: white;
    border-color: var(--festival-blue);
    box-shadow: var(--blue-glow);
}

.fwn-slot__cell[data-symbol="glow"] {
    background: linear-gradient(135deg, var(--festival-coral), var(--festival-yellow));
    color: white;
    border-color: var(--festival-coral);
    box-shadow: var(--coral-glow);
}

.fwn-slot__cell[data-symbol="festival"] {
    background: linear-gradient(135deg, var(--festival-mint), var(--festival-yellow));
    color: white;
    border-color: var(--festival-mint);
    box-shadow: var(--mint-glow);
}

.fwn-slot__cell[data-symbol="energy"] {
    background: linear-gradient(135deg, var(--festival-yellow), var(--festival-coral));
    color: white;
    border-color: var(--festival-yellow);
    box-shadow: var(--yellow-glow);
}

/* ============================================================
   SPIN BUTTON
   ============================================================ */

.fwn-slot__spin {
    background: linear-gradient(135deg, var(--festival-blue), var(--festival-mint));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--button-shadow);
    transition: all 0.3s ease;
    margin: 1rem 0;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fwn-slot__spin:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
    background: linear-gradient(135deg, var(--festival-coral), var(--festival-yellow));
}

.fwn-slot__spin:active {
    transform: translateY(0);
}

.fwn-slot__spin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   STATUS DISPLAY
   ============================================================ */

.fwn-slot__status {
    background: var(--festival-gray);
    color: var(--festival-dark);
    padding: 1rem;
    border-radius: 15px;
    margin-top: 1rem;
    font-weight: 500;
    border: 1px solid var(--festival-light);
    position: relative;
    z-index: 2;
}

.fwn-slot__status.spinning {
    background: linear-gradient(135deg, var(--festival-blue), var(--festival-mint));
    color: white;
    animation: statusPulse 1s ease-in-out infinite;
}

.fwn-slot__status.complete {
    background: linear-gradient(135deg, var(--festival-mint), var(--festival-yellow));
    color: white;
    box-shadow: var(--mint-glow);
}

/* ============================================================
   FESTIVAL EFFECT OVERLAY
   ============================================================ */

.fwn-festival-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, 
        rgba(74, 144, 226, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.fwn-slot.spinning .fwn-festival-effect {
    opacity: 1;
    animation: festivalPulse 1s ease-in-out infinite;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes festivalSpin {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes festivalBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-5px) scale(1.05); }
}

@keyframes festivalGlow {
    0%, 100% { box-shadow: var(--blue-glow); }
    25% { box-shadow: var(--coral-glow); }
    50% { box-shadow: var(--mint-glow); }
    75% { box-shadow: var(--yellow-glow); }
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes festivalShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================================
   SPINNING STATES
   ============================================================ */

.fwn-slot__cell.spinning {
    animation: festivalSpin 0.5s ease-in-out;
    border-color: var(--festival-coral);
}

.fwn-slot__cell.bouncing {
    animation: festivalBounce 0.6s ease-in-out;
}

.fwn-slot.spinning .fwn-slot__frame {
    box-shadow: 
        inset 0 4px 15px rgba(0, 0, 0, 0.1),
        0 0 30px rgba(74, 144, 226, 0.3);
}

.fwn-slot.spinning .fwn-slot__title {
    animation: festivalGlow 2s ease-in-out infinite;
}

/* ============================================================
   DEMO HEADER
   ============================================================ */

.demo-header {
    text-align: center;
    margin-bottom: 2rem;
}

.demo-header h2 {
    background: linear-gradient(135deg, var(--festival-blue), var(--festival-coral));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.demo-header p {
    color: var(--festival-dark);
    opacity: 0.8;
    font-size: 1.1rem;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 768px) {
    .fwn-slot {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .fwn-slot__frame {
        padding: 0.8rem;
        gap: 0.3rem;
    }
    
    .fwn-slot__cell {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .fwn-slot__spin {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .fwn-slot__title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .fwn-slot__cell {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .fwn-slot__spin {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .fwn-slot__frame {
        gap: 0.2rem;
    }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.fwn-slot__spin:focus {
    outline: 3px solid var(--festival-yellow);
    outline-offset: 2px;
}

.fwn-slot__cell:focus {
    outline: 2px solid var(--festival-blue);
    outline-offset: 1px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .fwn-slot__cell.spinning {
        animation: none;
        border-color: var(--festival-coral);
    }
    
    .fwn-slot__cell.bouncing {
        animation: none;
    }
    
    .fwn-slot.spinning .fwn-slot__title {
        animation: none;
    }
    
    .fwn-festival-effect {
        animation: none;
    }
}
