/* Hebrew Words Game Plugin Styles */
#hebrew-words-game-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

#hebrew-words-game {
    min-height: 100vh;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #3730a3 100%);
    padding: 8px 12px;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

/* Animated background elements */
.game-bg-element {
    position: absolute;
    border-radius: 50%;
    blur: 3rem;
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
}

.game-bg-element:first-child {
    top: -160px;
    right: -160px;
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.game-bg-element:last-child {
    bottom: -160px;
    left: -160px;
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
    animation-delay: 1s;
}

/* Game controls card */
.game-controls {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 16px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

/* Timer and buttons layout */
.timer-buttons-layout {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.timer-display {
    flex-shrink: 0;
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #06b6d4);
    color: white;
    border-radius: 16px;
    padding: 8px 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    text-align: center;
    text-shadow: 0 0 10px currentColor;
}

.timer-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(236, 72, 153, 0.7);
    margin-bottom: 4px;
    letter-spacing: 0.1em;
}

.timer-value {
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
}

/* Control buttons */
.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.game-button {
    font-weight: 900;
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: scale(1);
    border: 4px solid rgba(255, 255, 255, 0.4);
    cursor: pointer;
    font-size: 18px;
    letter-spacing: 0.05em;
    color: white;
    text-decoration: none;
    border: none;
    width: 100%;
    text-align: center;
}

.game-button:hover {
    transform: scale(1.05);
}

.game-button:active {
    transform: scale(0.95);
}

.start-button {
    background: linear-gradient(90deg, #ea580c, #dc2626);
}

.start-button:hover {
    background: linear-gradient(90deg, #c2410c, #b91c1c);
}

.start-button:disabled {
    background: linear-gradient(90deg, #6b7280, #6b7280);
    cursor: not-allowed;
    transform: none;
}

.next-button {
    background: linear-gradient(90deg, #059669, #16a34a);
}

.next-button:hover {
    background: linear-gradient(90deg, #047857, #15803d);
}

/* Game stats */
.game-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    font-size: 12px;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.2), rgba(6, 182, 212, 0.2));
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 12px;
    border: 1px solid rgba(147, 51, 234, 0.3);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-weight: 900;
    font-size: 20px;
    color: #06b6d4;
    text-shadow: 0 0 10px currentColor;
    margin-bottom: 4px;
}

.stat-label {
    color: #c4b5fd;
    font-weight: 600;
}

/* Words display */
.words-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 16px;
    margin-bottom: 16px;
    position: relative;
    z-index: 10;
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.word-tile {
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 20px;
    min-height: 85px;
    border: 4px solid rgba(255, 255, 255, 0.6);
    text-align: center;
}

.word-tile:hover {
    box-shadow: 0 25px 30px -5px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

.word-tile:active {
    transform: scale(0.9) rotate(-2deg);
}

.word-number {
    font-size: 20px;
    font-weight: 900;
    color: white;
    opacity: 0.9;
    margin-bottom: 8px;
    text-shadow: 0 0 10px currentColor;
}

.word-text {
    font-size: 24px;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 10px currentColor;
}

/* Word tile gradients */
.word-tile-1 { background: linear-gradient(135deg, #a855f7, #ec4899, #ef4444); }
.word-tile-2 { background: linear-gradient(135deg, #06b6d4, #3b82f6, #8b5cf6); }
.word-tile-3 { background: linear-gradient(135deg, #10b981, #059669, #06b6d4); }
.word-tile-4 { background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899); }
.word-tile-5 { background: linear-gradient(135deg, #6366f1, #8b5cf6, #ec4899); }
.word-tile-6 { background: linear-gradient(135deg, #eab308, #f59e0b, #ef4444); }
.word-tile-7 { background: linear-gradient(135deg, #06b6d4, #06d6a0, #3b82f6); }
.word-tile-8 { background: linear-gradient(135deg, #ec4899, #f97316, #8b5cf6); }

/* Selected word effects */
.word-selected {
    border: 4px solid #06b6d4;
    transform: scale(1.1);
    animation: pulse-glow 1.5s ease-in-out infinite;
    filter: brightness(1.2) saturate(1.3);
}

/* Results display */
.results-display {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 16px;
    margin-bottom: 16px;
}

.results-title {
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 0 10px currentColor;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.result-word {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    color: white;
    text-shadow: 0 0 10px currentColor;
}

.no-results {
    text-align: center;
    color: #c4b5fd;
    font-weight: 600;
}

/* Instructions */
.game-instructions {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 24px;
}

.instructions-title {
    font-size: 20px;
    font-weight: 900;
    background: linear-gradient(90deg, #ec4899, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    text-shadow: 0 0 10px currentColor;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    color: #c4b5fd;
    font-weight: 600;
    font-size: 14px;
}

.instructions-list li span:first-child {
    margin-right: 12px;
    margin-top: 4px;
    font-size: 18px;
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); }
    50% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.8), 0 0 40px rgba(59, 130, 246, 0.4); }
}

/* Responsive design */
@media (max-width: 480px) {
    #hebrew-words-game {
        padding: 4px 8px;
    }
    
    .timer-buttons-layout {
        gap: 12px;
    }
    
    .timer-value {
        font-size: 28px;
    }
    
    .game-button {
        font-size: 16px;
        padding: 14px 20px;
    }
    
    .word-text {
        font-size: 20px;
    }
}