import pandas as pd
from services.data_loader import load_questions

def debug_grit_chunk1():
    questions_map = load_questions()
    grit_qs = [q for q in questions_map.get('Grit', []) if '14-17' in q.get('age_group', '')]
    
    if not grit_qs:
        print("❌ No Grit questions found for 14-17")
        return

    chunk_size = 35
    chunk1 = grit_qs[:chunk_size]
    
    print(f"📊 Grit Chunk 1: {len(chunk1)} questions")
    for q in chunk1:
        print(f"[{q['q_code']}] {q['question'][:100]}...")

if __name__ == "__main__":
    debug_grit_chunk1()
