/* ============================================================
   VEGANORDLAS SLOT STYLES - ECO NATURE DESIGN
   Символы: blader, naturkuler, røtter, glødende planteikon
   Стиль: organisk, grønne toner, myke runde former
   ============================================================ */

/* Vega Slot Container */
.veg-slot {
    max-width: 400px;
    margin: 2rem auto;
    background: rgba(248, 250, 246, 0.95);
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-strong);
    border: 2px solid rgba(156, 175, 136, 0.3);
    position: relative;
    overflow: hidden;
}

.veg-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M20,30 Q30,20 40,30 Q50,40 40,50 Q30,60 20,50 Q10,40 20,30" fill="rgba(156,175,136,0.05)"/><circle cx="70" cy="20" r="3" fill="rgba(168,213,186,0.08)"/><path d="M80,70 Q85,65 90,70 Q85,75 80,70" fill="rgba(106,142,90,0.06)"/></svg>');
    animation: organicPattern 15s infinite linear;
    pointer-events: none;
}

.veg-slot__title {
    text-align: center;
    font-size: 1.4rem;
    color: var(--eco-forest);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    position: relative;
    z-index: 2;
}

/* Slot Frame - 3x3 Grid */
.veg-slot__frame {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: var(--bg-earth);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 2;
}

/* Individual Slot Reels */
.veg-slot__reel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Slot Cells */
.veg-slot__cell {
    width: 80px;
    height: 80px;
    background: rgba(248, 250, 246, 0.9);
    border: 2px solid rgba(156, 175, 136, 0.4);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: var(--transition-organic);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.veg-slot__cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-organic);
    opacity: 0;
    transition: var(--transition-smooth);
}

.veg-slot__cell:hover::before {
    opacity: 0.1;
}

/* Eco Symbol Styles */
.veg-slot__cell[data-symbol="leaf"] {
    color: var(--eco-mint);
    animation: leafGlow 3s infinite;
}

.veg-slot__cell[data-symbol="orb"] {
    color: var(--eco-teal);
    animation: orbPulse 2.5s infinite;
}

.veg-slot__cell[data-symbol="root"] {
    color: var(--eco-moss);
    animation: rootGrow 4s infinite;
}

.veg-slot__cell[data-symbol="plant"] {
    color: var(--eco-sage-light);
    animation: plantShine 3.5s infinite;
}

.veg-slot__cell[data-symbol="nature"] {
    color: var(--eco-forest);
    animation: natureBreathe 3s infinite;
}

.veg-slot__cell[data-symbol="eco"] {
    color: var(--eco-salvie);
    animation: ecoGlow 2.8s infinite;
}

/* Spinning Animation */
.veg-slot__cell.spinning {
    animation: ecoSpin 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-color: var(--leaf-glow);
    box-shadow: 0 0 20px rgba(168, 213, 186, 0.4);
}

/* Spin Button */
.veg-slot__spin {
    width: 100%;
    padding: var(--spacing-md);
    background: var(--bg-nature);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-organic);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-organic);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.veg-slot__spin::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.veg-slot__spin:hover::before {
    left: 100%;
}

.veg-slot__spin:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-strong);
}

.veg-slot__spin:active {
    transform: translateY(-1px);
}

.veg-slot__spin:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Slot Note */
.veg-slot__note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-medium);
    margin: var(--spacing-sm) 0;
    font-style: italic;
    position: relative;
    z-index: 2;
}

/* Status Display */
.veg-slot__status {
    background: rgba(156, 175, 136, 0.1);
    border: 2px solid rgba(156, 175, 136, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    text-align: center;
    font-weight: 600;
    color: var(--eco-forest);
    margin-top: var(--spacing-md);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.veg-slot__status.success {
    background: rgba(168, 213, 186, 0.2);
    border-color: var(--eco-mint);
    color: var(--eco-forest);
    animation: successGlow 2s infinite;
}

.veg-slot__status.spinning {
    background: rgba(74, 155, 142, 0.1);
    border-color: var(--eco-teal);
    animation: statusPulse 1s infinite;
}

/* Eco Effect Overlay */
.veg-eco-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(168, 213, 186, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.veg-slot.active .veg-eco-effect {
    opacity: 1;
    animation: ecoRipple 2s infinite;
}

/* Eco Symbol Animations */
@keyframes leafGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(168, 213, 186, 0.5);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(168, 213, 186, 0.8), 0 0 30px rgba(156, 175, 136, 0.3);
        transform: scale(1.05);
    }
}

@keyframes orbPulse {
    0%, 100% {
        text-shadow: 0 0 8px rgba(74, 155, 142, 0.4);
        transform: scale(1) rotate(0deg);
    }
    50% {
        text-shadow: 0 0 16px rgba(74, 155, 142, 0.7);
        transform: scale(1.08) rotate(180deg);
    }
}

@keyframes rootGrow {
    0%, 100% {
        text-shadow: 0 0 12px rgba(106, 142, 90, 0.4);
        transform: scale(1);
    }
    25% {
        transform: scale(1.03) rotate(-2deg);
    }
    75% {
        transform: scale(1.03) rotate(2deg);
    }
    50% {
        text-shadow: 0 0 18px rgba(106, 142, 90, 0.6);
        transform: scale(1.06);
    }
}

@keyframes plantShine {
    0%, 100% {
        text-shadow: 0 0 15px rgba(184, 197, 166, 0.5);
        transform: scale(1);
    }
    33% {
        transform: scale(1.04) rotate(-1deg);
    }
    66% {
        transform: scale(1.04) rotate(1deg);
    }
    50% {
        text-shadow: 0 0 25px rgba(184, 197, 166, 0.8);
        transform: scale(1.07);
    }
}

@keyframes natureBreathe {
    0%, 100% {
        text-shadow: 0 0 10px rgba(90, 124, 80, 0.4);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(90, 124, 80, 0.7);
        transform: scale(1.05);
    }
}

@keyframes ecoSpin {
    0% {
        transform: rotateY(0deg) scale(1);
    }
    50% {
        transform: rotateY(180deg) scale(1.1);
        background: var(--bg-leaf);
    }
    100% {
        transform: rotateY(360deg) scale(1);
    }
}

@keyframes organicPattern {
    0% {
        transform: translateX(-50px) rotate(0deg);
    }
    100% {
        transform: translateX(50px) rotate(360deg);
    }
}

@keyframes ecoRipple {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

@keyframes successGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(168, 213, 186, 0.3);
    }
    50% {
        box-shadow: 0 0 25px rgba(168, 213, 186, 0.6);
    }
}

@keyframes statusPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.8;
    }
}

/* Responsive Design for Slots */
@media (max-width: 768px) {
    .veg-slot {
        max-width: 350px;
        padding: var(--spacing-md);
    }
    
    .veg-slot__cell {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .veg-slot__title {
        font-size: 1.2rem;
    }
    
    .veg-slot__spin {
        padding: var(--spacing-sm);
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .veg-slot {
        max-width: 300px;
    }
    
    .veg-slot__cell {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .veg-slot__frame {
        gap: 6px;
        padding: var(--spacing-sm);
    }
    
    .veg-slot__title {
        font-size: 1.1rem;
    }
}

@media (max-width: 360px) {
    .veg-slot__cell {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .veg-slot__frame {
        gap: 4px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .veg-slot__spin {
        min-height: 48px;
        font-size: 1.1rem;
    }
    
    .veg-slot__cell {
        min-width: 48px;
        min-height: 48px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .veg-slot__cell {
        border-width: 3px;
    }
    
    .veg-slot__status {
        border-width: 3px;
    }
    
    .veg-slot {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .veg-slot__cell,
    .veg-slot__spin,
    .veg-slot__status,
    .veg-eco-effect {
        animation: none;
        transition: none;
    }
    
    .veg-slot__cell.spinning {
        animation: none;
        background: var(--bg-leaf);
    }
}
