/**
 * ============================================
 * 📚 WORD BUILDER - PREMIUM STYLING
 * ============================================
 * A world-class, gamified grammar learning experience
 * With drag-and-drop sentence building
 */

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
    --wb-noun: #ef4444;
    --wb-verb: #3b82f6;
    --wb-adjective: #22c55e;
    --wb-article: #eab308;
    --wb-pronoun: #a855f7;
    --wb-adverb: #f97316;
    --wb-preposition: #06b6d4;
    --wb-conjunction: #ec4899;

    --wb-success: #22c55e;
    --wb-error: #ef4444;
    --wb-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --wb-card-bg: rgba(255, 255, 255, 0.95);
    --wb-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] {
    --wb-card-bg: rgba(30, 30, 40, 0.95);
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.word-builder-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--wb-bg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.word-builder-modal.active {
    display: flex;
    opacity: 1;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.wb-container {
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    background: var(--wb-card-bg);
    border-radius: 24px;
    box-shadow: var(--wb-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: wbSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wbSlideIn {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* ============================================
   HEADER
   ============================================ */
.wb-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.wb-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wb-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.wb-level-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.wb-level-icon {
    font-size: 2rem;
}

.wb-level-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.wb-level-desc {
    opacity: 0.9;
    font-size: 0.9rem;
}

.wb-progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.wb-progress-fill {
    height: 100%;
    background: white;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.wb-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

/* ============================================
   GAME BODY
   ============================================ */
.wb-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.wb-instruction {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Hindi Translation - Always Visible, More Prominent */
.wb-instruction-hindi {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* English Sentence - Hidden by Default */
.wb-instruction-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    margin: 0;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #667eea10, #764ba215);
    border-radius: 12px;
    border: 2px solid #667eea30;
    display: inline-block;
}

.wb-instruction-text.wb-hidden {
    display: none !important;
}

.wb-instruction-text.wb-revealed {
    display: inline-block;
    animation: wbRevealAnswer 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wbRevealAnswer {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Hint Container */
.wb-hint-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

/* Hint Button - Premium Animated Style */
.wb-hint-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    position: relative;
    overflow: hidden;
}

.wb-hint-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
}

.wb-hint-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.wb-hint-btn:hover::before {
    animation: wbShine 0.8s ease;
}

@keyframes wbShine {
    to {
        transform: translateX(100%);
    }
}

.wb-hint-btn .wb-hint-icon {
    font-size: 1.1rem;
    animation: wbPulse 2s ease-in-out infinite;
}

@keyframes wbPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

/* Hint Used Indicator */
.wb-hint-used {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50px;
    color: #dc2626;
    font-size: 0.85rem;
    font-weight: 500;
}

.wb-hint-used-icon {
    font-size: 1rem;
}

[data-theme="dark"] .wb-hint-used {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* ============================================
   DROP ZONE (Sentence Slots)
   ============================================ */
.wb-drop-zone {
    min-height: 80px;
    background: linear-gradient(145deg, #f0f4ff, #e8ecf8);
    border: 3px dashed #667eea;
    border-radius: 16px;
    padding: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

[data-theme="dark"] .wb-drop-zone {
    background: linear-gradient(145deg, #2a2a3a, #1e1e2e);
    border-color: #667eea;
}

.wb-drop-zone.drag-over {
    border-color: var(--wb-success);
    background: linear-gradient(145deg, #e8fff0, #d4f8e0);
    transform: scale(1.02);
}

.wb-drop-zone.correct {
    border-color: var(--wb-success);
    background: linear-gradient(145deg, #d4f8e0, #c0f0d0);
    animation: wbCorrectPulse 0.5s ease;
}

.wb-drop-zone.wrong {
    border-color: var(--wb-error);
    background: linear-gradient(145deg, #ffe8e8, #ffd4d4);
    animation: wbWrongShake 0.5s ease;
}

@keyframes wbCorrectPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes wbWrongShake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

.wb-slot-placeholder {
    width: 80px;
    height: 48px;
    border: 2px dashed rgba(102, 126, 234, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(102, 126, 234, 0.7);
    font-size: 1.5rem;
}

/* ============================================
   WORD BUBBLES (Draggable)
   ============================================ */
.wb-word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.wb-word {
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: grab;
    user-select: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    position: relative;
}

.wb-word:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.wb-word:active {
    cursor: grabbing;
    transform: scale(1.1);
}

.wb-word.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.wb-word.placed {
    opacity: 0.3;
    pointer-events: none;
}

/* Word Type Colors */
.wb-word[data-type="noun"] {
    background: var(--wb-noun);
    color: white;
}

.wb-word[data-type="verb"] {
    background: var(--wb-verb);
    color: white;
}

.wb-word[data-type="adjective"] {
    background: var(--wb-adjective);
    color: white;
}

.wb-word[data-type="article"] {
    background: var(--wb-article);
    color: #000;
}

.wb-word[data-type="pronoun"] {
    background: var(--wb-pronoun);
    color: white;
}

.wb-word[data-type="adverb"] {
    background: var(--wb-adverb);
    color: white;
}

.wb-word[data-type="preposition"] {
    background: var(--wb-preposition);
    color: white;
}

.wb-word[data-type="conjunction"] {
    background: var(--wb-conjunction);
    color: white;
}

/* Word in Drop Zone */
.wb-drop-zone .wb-word {
    animation: wbWordDrop 0.3s ease;
}

@keyframes wbWordDrop {
    from {
        transform: scale(1.2);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   WORD TYPE LEGEND
   ============================================ */
.wb-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
}

.wb-legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.wb-legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* ============================================
   TIP BOX
   ============================================ */
.wb-tip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.wb-tip-icon {
    font-size: 1.5rem;
}

.wb-tip-text {
    font-size: 0.9rem;
    color: #92400e;
    line-height: 1.5;
}

[data-theme="dark"] .wb-tip {
    background: linear-gradient(135deg, #422006, #78350f);
}

[data-theme="dark"] .wb-tip-text {
    color: #fde68a;
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.wb-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.wb-btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wb-btn:hover {
    transform: translateY(-2px);
}

.wb-btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.wb-btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.wb-btn-secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.wb-btn-secondary:hover {
    background: rgba(102, 126, 234, 0.2);
}

.wb-btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* ============================================
   FEEDBACK MODAL
   ============================================ */
.wb-feedback {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: wbFadeIn 0.3s ease;
}

.wb-feedback.active {
    display: flex;
}

@keyframes wbFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.wb-feedback-content {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
    max-width: 90%;
    animation: wbFeedbackPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wb-feedback-content .wb-btn {
    margin-top: 0.5rem;
}

[data-theme="dark"] .wb-feedback-content {
    background: #1e1e2e;
}

@keyframes wbFeedbackPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.wb-feedback-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.wb-feedback-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.wb-feedback-sentence {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.wb-feedback-translation {
    font-size: 0.9rem;
    color: var(--wb-verb);
    margin-bottom: 1rem;
}

.wb-feedback-xp {
    font-size: 1.25rem;
    font-weight: 700;
    color: #eab308;
    margin-bottom: 1rem;
}

/* ============================================
   LEVEL COMPLETE SCREEN
   ============================================ */
.wb-level-complete {
    text-align: center;
    padding: 2rem;
}

.wb-complete-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: wbTrophyBounce 1s ease infinite;
}

@keyframes wbTrophyBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.wb-complete-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.wb-complete-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.wb-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.wb-stat {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 16px;
    padding: 1rem;
}

.wb-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #667eea;
}

.wb-stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* ============================================
   LEVEL SELECT GRID (Replaces old grammar levels)
   ============================================ */
.wb-level-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.wb-level-card {
    background: var(--wb-card-bg);
    border-radius: 20px;
    padding: 1.5rem;
    cursor: default;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: visible;
}

.wb-level-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.wb-level-card.locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.wb-level-card.locked::after {
    content: '🔒';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.wb-level-card.completed {
    border-color: var(--wb-success);
}

.wb-level-card.completed::after {
    content: '✅';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.wb-level-card-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.wb-level-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.wb-level-card-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.wb-level-card-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
}

.wb-level-card-meta span {
    background: rgba(102, 126, 234, 0.1);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    color: #667eea;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .wb-container {
        max-height: 100vh;
        border-radius: 0;
    }

    .wb-header {
        padding: 1rem;
    }

    .wb-level-name {
        font-size: 1.25rem;
    }

    .wb-body {
        padding: 1rem;
    }

    .wb-word {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    .wb-drop-zone {
        min-height: 70px;
        padding: 0.75rem;
    }

    .wb-legend {
        padding: 0.5rem;
        gap: 0.4rem;
    }

    .wb-legend-item {
        font-size: 0.65rem;
    }

    .wb-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .wb-stat-value {
        font-size: 1.5rem;
    }

    /* Mobile Hint Styles */
    .wb-instruction-hindi {
        font-size: 1.15rem;
    }

    .wb-instruction-text {
        font-size: 1.1rem;
        padding: 0.6rem 1rem;
    }

    .wb-hint-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .wb-hint-used {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ============================================
   CONFETTI ANIMATION
   ============================================ */
.wb-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10001;
}

.wb-confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #667eea;
    animation: wbConfettiFall 3s linear forwards;
}

@keyframes wbConfettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   LEARN MODAL STYLES
   ============================================ */
.wb-learn-container {
    max-width: 550px;
}

.wb-lang-toggle {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.wb-lang-btn {
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wb-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.wb-lang-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
}

.wb-learn-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.wb-learn-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wb-learn-intro {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.wb-learn-concept {
    background: rgba(102, 126, 234, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
}

.wb-learn-concept h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.wb-learn-concept p {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.wb-learn-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wb-learn-example {
    background: white;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .wb-learn-example {
    background: rgba(255, 255, 255, 0.1);
    color: #a5b4fc;
}

.wb-learn-formula {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
}

[data-theme="dark"] .wb-learn-formula {
    background: linear-gradient(135deg, #064e3b, #065f46);
}

.wb-formula-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #155724;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .wb-formula-text {
    color: #a7f3d0;
}

.wb-formula-example {
    font-size: 1rem;
    color: #155724;
    font-style: italic;
}

[data-theme="dark"] .wb-formula-example {
    color: #6ee7b7;
}

.wb-learn-tip {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    color: #92400e;
    text-align: center;
    font-weight: 600;
}

[data-theme="dark"] .wb-learn-tip {
    background: linear-gradient(135deg, #422006, #78350f);
    color: #fde68a;
}

/* Level Card Buttons - PREMIUM DESIGN */
.wb-level-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.wb-level-card-actions .wb-btn {
    flex: 1;
    padding: 0.65rem 0.5rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
}

.wb-level-card-actions .wb-btn-secondary {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2847 100%);
    color: #60a5fa;
    border: 1.5px solid rgba(96, 165, 250, 0.4);
}

.wb-level-card-actions .wb-btn-secondary:hover {
    background: linear-gradient(135deg, #234b7a 0%, #1a3d5c 100%);
    border-color: rgba(96, 165, 250, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(96, 165, 250, 0.35);
}

.wb-level-card-actions .wb-btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.wb-level-card-actions .wb-btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

@media (max-width: 600px) {
    .wb-level-card-actions {
        gap: 0.4rem;
    }

    .wb-level-card-actions .wb-btn {
        padding: 0.6rem 0.4rem;
        font-size: 0.7rem;
    }

    .wb-lang-toggle {
        flex-direction: row;
    }

    .wb-lang-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .wb-learn-title {
        font-size: 1.25rem;
    }

    .wb-learn-concept {
        padding: 1rem;
    }

    .wb-learn-concept h3 {
        font-size: 1rem;
    }
}