/* symbol-game.css - Interactive map symbol game styles */
.symbol-game-wrapper {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: clamp(1rem, 3vw, 2.5rem);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.symbol-menu {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch;
}

.scale-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    flex: 1;
    min-width: 280px;
    max-width: 420px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.scale-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15);
}

.scale-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e293b;
    margin-bottom: 1rem;
}

.scale-desc {
    color: #475569;
    font-size: 1.15rem;
    line-height: 1.6;
}

/* --- Category Tabs --- */
.symbol-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scrollbar-width: thin;
}

.symbol-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid #cbd5e1;
}

.symbol-tab:hover {
    background: #e2e8f0;
}

.symbol-tab.active {
    background: #3b82f6;
    color: white;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Learning Phase Grid */
.symbol-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.symbol-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.symbol-card:hover {
    transform: scale(1.05);
    border-color: #94a3b8;
}

.symbol-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.symbol-card:hover .symbol-icon {
    transform: scale(1.15) rotate(3deg);
}

.symbol-icon.line-feature {
    width: 100%;
    height: 60px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 10px;
}

.symbol-name {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    font-weight: 800;
    color: #0f172a;
}

@media (max-width: 480px) {
    .symbol-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .symbol-card {
        padding: 1.25rem 0.75rem;
    }
    
    .symbol-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
}

/* Quiz Interface */
.symbol-quiz-container {
    background: white;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    padding: clamp(1.5rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    container-type: inline-size;
}

.quiz-question-text {
    font-size: clamp(1.2rem, 4cqi, 1.75rem);
    font-weight: 800;
    color: #000000;
    margin-bottom: 2.5rem;
}

.quiz-target-icon {
    width: clamp(80px, 20cqi, 140px);
    height: clamp(80px, 20cqi, 140px);
    object-fit: contain;
    margin: 0 auto 2.5rem;
    display: block;
}

.quiz-target-name {
    font-size: clamp(2rem, 8cqi, 3.5rem);
    font-weight: 900;
    color: #2563eb;
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.symbol-quiz-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .symbol-quiz-options {
        grid-template-columns: 1fr;
    }
}

.symbol-quiz-btn {
    background: #f8fafc;
    border: 3px solid #cbd5e1;
    border-radius: 16px;
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    min-height: 120px;
}

.symbol-quiz-btn img {
    width: clamp(40px, 10cqi, 70px);
    height: clamp(40px, 10cqi, 70px);
    object-fit: contain;
}

.symbol-quiz-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.symbol-quiz-btn.active-select {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #1d4ed8;
}

.symbol-quiz-btn.correct {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: #22c55e !important;
    color: #15803d !important;
}

.symbol-quiz-btn.wrong {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
}

.symbol-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 2px solid #cbd5e1;
    padding-bottom: 1.5rem;
}

.symbol-score {
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

@media (max-width: 480px) {
    .symbol-game-header h3 {
        font-size: 1.4rem;
    }
    
    .symbol-tabs {
        gap: 0.5rem;
    }
    
    .symbol-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

/* Fix button contrast for the symbol game (which has a light background) */
.symbol-game-wrapper .btn-outline {
    border-color: #94a3b8;
    color: #334155;
    background: white;
}

.symbol-game-wrapper .btn-outline:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #2563eb;
}

.symbol-game-wrapper .btn-primary {
    color: white !important; /* Ensure primary buttons always have white text */
}
