"""
zones.py — Art skill pack zones for Primer.
"""

from engine.zone import Zone
from engine.challenge import Challenge

ZONE_ORDER = [
    "colors_and_mixing",
    "shapes_and_patterns",
    "art_tools",
    "famous_artwork",
    "art_elements",
    "famous_artists",
]

ZONES = {
    "colors_and_mixing": Zone(
        id="colors_and_mixing",
        title="Colors and Mixing",
        description="Learn about primary, secondary, and complementary colors and how to mix them.",
        challenges=[
            Challenge(
                id="art_primary_colors",
                type="quiz",
                prompt="What are the three primary colors?",
                options=["Green, Orange, Purple", "Red, Yellow, Blue", "Pink, White, Black", "Brown, Gray, Silver"],
                answer="b",
                explanation="Red, yellow, and blue are the primary colors! They can't be made by mixing other colors, but they can be mixed together to make all other colors.",
                xp=10,
            ),
            Challenge(
                id="art_mix_red_yellow",
                type="quiz",
                prompt="What color do you get when you mix red and yellow together?",
                options=["Purple", "Green", "Orange", "Brown"],
                answer="c",
                explanation="Red + yellow = orange! Orange is a secondary color because it's made by mixing two primary colors.",
                xp=10,
            ),
            Challenge(
                id="art_mix_blue_yellow",
                type="quiz",
                prompt="What color do you get when you mix blue and yellow?",
                options=["Orange", "Purple", "Green", "Gray"],
                answer="c",
                explanation="Blue + yellow = green! Like the color of leaves and grass. Green is another secondary color.",
                xp=10,
            ),
            Challenge(
                id="art_mix_red_blue",
                type="quiz",
                prompt="What color do you get when you mix red and blue?",
                options=["Orange", "Purple", "Green", "Pink"],
                answer="b",
                explanation="Red + blue = purple! Purple is the third secondary color. The three secondary colors are orange, green, and purple.",
                xp=10,
            ),
            Challenge(
                id="art_warm_cool",
                type="quiz",
                prompt="Which group of colors feels warm, like sunshine and fire?",
                options=["Blue, green, purple", "Red, orange, yellow", "Black, white, gray", "Pink, lavender, mint"],
                answer="b",
                explanation="Red, orange, and yellow are warm colors! They remind us of the sun, fire, and warmth. Blue, green, and purple are cool colors — like water, trees, and sky.",
                xp=10,
            ),
            Challenge(
                id="art_white_black",
                type="fill_blank",
                prompt="When you mix all the colors of paint together, you get a dark muddy _____.",
                answer="brown",
                explanation="Mixing lots of paint colors together makes a muddy brown (not black like mixing light does). In painting, black is usually used directly rather than mixed.",
                xp=15,
                hints=["It's a dark earthy color", "The color of mud or chocolate"],
            ),
        ],
    ),
    "shapes_and_patterns": Zone(
        id="shapes_and_patterns",
        title="Shapes and Patterns",
        description="Discover geometric shapes, symmetry, and repeating patterns in art.",
        challenges=[
            Challenge(
                id="art_shapes_basic",
                type="quiz",
                prompt="A shape that has 4 equal sides and 4 equal corners is called a:",
                options=["Rectangle", "Triangle", "Square", "Circle"],
                answer="c",
                explanation="A square has 4 equal sides and 4 right angle corners. Squares are everywhere in art — tiles, windows, and grids!",
                xp=10,
            ),
            Challenge(
                id="art_symmetry",
                type="quiz",
                prompt="A butterfly has symmetry. What does that mean?",
                options=[
                    "It has many different colors",
                    "Both sides look the same — if you fold it in half, the wings match",
                    "It can fly very fast",
                    "It has a pattern of dots",
                ],
                answer="b",
                explanation="Symmetry means both sides are mirror images of each other. Butterflies, human faces, and many works of art use symmetry because it looks balanced and beautiful.",
                xp=10,
            ),
            Challenge(
                id="art_pattern",
                type="quiz",
                prompt="A pattern repeats. Which of these is a pattern?",
                options=[
                    "A single red circle",
                    "A random collection of shapes",
                    "Circle, square, circle, square, circle, square...",
                    "One big yellow triangle",
                ],
                answer="c",
                explanation="A pattern repeats in a predictable way! Artists use patterns in fabric, tiles, wallpaper, and paintings. Patterns can use colors, shapes, lines, or pictures.",
                xp=10,
            ),
            Challenge(
                id="art_triangle_sides",
                type="fill_blank",
                prompt="A triangle has _____ sides.",
                answer="3",
                explanation="A triangle has 3 sides and 3 corners (angles). 'Tri' means three — like tricycle (3 wheels) or tripod (3 legs). Triangles appear in art, architecture, and nature!",
                xp=10,
            ),
            Challenge(
                id="art_abstract_shapes",
                type="quiz",
                prompt="In art, an 'organic' shape looks like:",
                options=[
                    "A perfect circle drawn with a compass",
                    "A grid of equal squares",
                    "A free-flowing shape like a leaf, cloud, or puddle",
                    "A triangle with equal sides",
                ],
                answer="c",
                explanation="Organic shapes are irregular and natural-looking, like shapes found in nature — leaves, clouds, puddles, animals. Geometric shapes (circles, squares) are more precise and mathematical.",
                xp=15,
                hints=["Think of shapes you find outside in nature"],
            ),
            Challenge(
                id="art_tessellation",
                type="quiz",
                prompt="When shapes fit together perfectly with no gaps (like a tile floor), it's called a:",
                options=["Symphony", "Tessellation", "Gradient", "Silhouette"],
                answer="b",
                explanation="A tessellation is when shapes fit together without gaps or overlaps, like bathroom tiles or honeycomb! The artist M.C. Escher made famous tessellations using birds and fish.",
                xp=15,
                hints=["Think of a tiled floor or bathroom wall"],
            ),
        ],
    ),
    "art_tools": Zone(
        id="art_tools",
        title="Art Tools and Materials",
        description="Learn about the different tools and materials artists use to create.",
        challenges=[
            Challenge(
                id="art_pencil",
                type="quiz",
                prompt="What does HB mean on a pencil?",
                options=[
                    "Hard Blue — for drawing in blue",
                    "Hard and Black — a medium pencil good for writing",
                    "High Brightness — for glowing drawings",
                    "Heavy Bold — for thick lines only",
                ],
                answer="b",
                explanation="HB stands for Hard and Black — it's a medium pencil perfect for writing and drawing. H pencils are harder (lighter lines), B pencils are softer (darker, smudgier lines).",
                xp=10,
            ),
            Challenge(
                id="art_watercolor",
                type="quiz",
                prompt="Watercolor paint is special because it:",
                options=[
                    "Never dries and stays wet forever",
                    "Can only be used in black and white",
                    "Is transparent — you can see layers through each other",
                    "Must be heated to use",
                ],
                answer="c",
                explanation="Watercolor is transparent (see-through), which makes it magical — light reflects off the white paper through the paint. Artists build up layers of color, each one showing through the last.",
                xp=10,
            ),
            Challenge(
                id="art_sculpture",
                type="fill_blank",
                prompt="Art that you can touch from all sides and has height, width, AND depth is called _____ art.",
                answer="sculpture",
                explanation="Sculpture is 3-dimensional (3D) art! You can walk around it. A painting is 2D (flat). Sculptures can be made from clay, stone, wood, metal, or even ice!",
                xp=15,
                hints=["Think of statues", "Starts with 'S', rhymes with 'culture'"],
            ),
            Challenge(
                id="art_canvas",
                type="quiz",
                prompt="What do most painters use to paint on?",
                options=["A window", "A canvas", "A mirror", "A chalkboard"],
                answer="b",
                explanation="A canvas is a special stretched fabric that painters use. Before canvas, artists painted on wooden panels, walls (frescoes), or even on ceiling (like Michelangelo in the Sistine Chapel)!",
                xp=10,
            ),
            Challenge(
                id="art_collage",
                type="quiz",
                prompt="A collage is made by:",
                options=[
                    "Drawing with pencils only",
                    "Cutting and gluing different materials (paper, fabric, photos) onto a surface",
                    "Painting with your fingers",
                    "Carving shapes from stone",
                ],
                answer="b",
                explanation="Collage (from the French word 'coller', to glue) is the art of assembling different materials! The artist Pablo Picasso helped make collage famous as a serious art form.",
                xp=10,
            ),
            Challenge(
                id="art_perspective",
                type="quiz",
                prompt="In a drawing, why do faraway objects look smaller than nearby objects?",
                options=[
                    "They actually ARE smaller",
                    "The artist uses perspective to make flat pictures look 3-dimensional",
                    "Light makes them shrink",
                    "It's just a mistake",
                ],
                answer="b",
                explanation="Perspective is a technique artists use to make flat (2D) drawings look 3-dimensional! Objects farther away are drawn smaller. Artists discovered perspective during the Renaissance around 500 years ago.",
                xp=15,
                hints=["It's a technique for making flat art look deep"],
            ),
        ],
    ),
    "famous_artwork": Zone(
        id="famous_artwork",
        title="Famous Artwork",
        description="Recognize and learn about some of the most famous paintings and sculptures in the world.",
        challenges=[
            Challenge(
                id="art_mona_lisa",
                type="quiz",
                prompt="The Mona Lisa, one of the most famous paintings in the world, shows:",
                options=["A queen on a throne", "A smiling woman with a mysterious expression", "A battle scene", "A bowl of fruit"],
                answer="b",
                explanation="The Mona Lisa is a portrait of a woman with a famous mysterious smile! Leonardo da Vinci painted it around 1503-1519. It hangs in the Louvre museum in Paris, France.",
                xp=10,
            ),
            Challenge(
                id="art_starry_night",
                type="quiz",
                prompt="The Starry Night, with its swirling sky and bright stars, was painted by:",
                options=["Claude Monet", "Pablo Picasso", "Vincent van Gogh", "Frida Kahlo"],
                answer="c",
                explanation="Vincent van Gogh painted The Starry Night in 1889. He used thick, swirling brushstrokes to show a night sky full of energy. It's now in the Museum of Modern Art in New York.",
                xp=10,
            ),
            Challenge(
                id="art_david",
                type="quiz",
                prompt="The statue of David — a giant marble sculpture of a young man — was carved by:",
                options=["Leonardo da Vinci", "Rembrandt", "Michelangelo", "Raphael"],
                answer="c",
                explanation="Michelangelo carved the statue of David from a single block of marble between 1501 and 1504. It's over 5 meters (17 feet) tall and stands in Florence, Italy.",
                xp=10,
            ),
            Challenge(
                id="art_sistine",
                type="fill_blank",
                prompt="Michelangelo painted famous scenes from the Bible on the _____ of the Sistine Chapel.",
                answer="ceiling",
                explanation="Michelangelo spent 4 years painting the Sistine Chapel ceiling! He had to lie on scaffolding high above the ground. It shows the story of creation, including the famous image of God reaching toward Adam.",
                xp=15,
                hints=["He had to look UP while painting", "The top of a room"],
            ),
            Challenge(
                id="art_water_lilies",
                type="quiz",
                prompt="The series of paintings called Water Lilies, showing a garden pond, was painted by:",
                options=["Vincent van Gogh", "Claude Monet", "Pablo Picasso", "Salvador Dalí"],
                answer="b",
                explanation="Claude Monet painted over 250 Water Lilies paintings! He built a special pond in his garden in Giverny, France, just to paint it. Monet was a famous Impressionist painter.",
                xp=10,
            ),
            Challenge(
                id="art_guernica",
                type="quiz",
                prompt="The painting Guernica, which shows the suffering caused by war in black and white and gray, was painted by:",
                options=["Pablo Picasso", "Leonardo da Vinci", "Frida Kahlo", "Claude Monet"],
                answer="a",
                explanation="Pablo Picasso painted Guernica in 1937 after a town in Spain was bombed during a war. It's a powerful protest against violence — one of the most important political paintings ever made.",
                xp=15,
                hints=["He's also famous for Cubism", "Spanish artist, rhymes with 'Picasso'"],
            ),
        ],
    ),
    "art_elements": Zone(
        id="art_elements",
        title="Elements of Art",
        description="Discover the basic building blocks that every artist uses: line, shape, color, texture, and space.",
        challenges=[
            Challenge(
                id="art_line_types",
                type="quiz",
                prompt="In art, a zigzag line usually makes a picture feel:",
                options=["Calm and peaceful", "Exciting, energetic, or tense", "Sad", "Round and soft"],
                answer="b",
                explanation="Different lines create different feelings! Zigzag lines feel energetic and exciting. Wavy lines feel calm and gentle. Diagonal lines feel like movement. Horizontal lines feel restful.",
                xp=10,
            ),
            Challenge(
                id="art_texture",
                type="quiz",
                prompt="In art, texture means:",
                options=[
                    "The size of the painting",
                    "How a surface feels (rough, smooth, bumpy) — or how it LOOKS like it would feel",
                    "The brightness of colors",
                    "Whether the painting has people in it",
                ],
                answer="b",
                explanation="Texture is how something feels to touch — or in a painting, how it LOOKS like it would feel. A painting of tree bark can look rough and bumpy even though the canvas is flat!",
                xp=10,
            ),
            Challenge(
                id="art_foreground_background",
                type="quiz",
                prompt="In a painting, the 'foreground' is:",
                options=[
                    "The very back of the scene, far away",
                    "The sky at the top",
                    "The part of the scene that is closest to the viewer",
                    "The frame around the painting",
                ],
                answer="c",
                explanation="The foreground is the front of the picture — the part closest to you. The background is the far-away part. The middle ground is in between! Artists use these to create depth.",
                xp=10,
            ),
            Challenge(
                id="art_contrast",
                type="fill_blank",
                prompt="Placing light colors next to dark colors creates _____ in artwork.",
                answer="contrast",
                explanation="Contrast means big differences — light next to dark, big next to small, rough next to smooth. Artists use contrast to make things stand out and to create exciting, dramatic effects.",
                xp=15,
                hints=["When opposites are placed next to each other"],
            ),
            Challenge(
                id="art_negative_space",
                type="quiz",
                prompt="In art, 'negative space' is:",
                options=[
                    "A painting that feels sad",
                    "The empty space AROUND and between the objects in a picture",
                    "Dark colors only",
                    "A painting with nothing in it",
                ],
                answer="b",
                explanation="Negative space is the space around objects — the background, the empty areas. The object itself is 'positive space.' Smart artists design both! The FedEx logo hides an arrow in its negative space.",
                xp=15,
                hints=["It's what's NOT the object — the space around it"],
            ),
            Challenge(
                id="art_proportion",
                type="quiz",
                prompt="If an artist draws a person with a HUGE head and tiny body, they are using:",
                options=[
                    "Perspective",
                    "Proportion — deliberately making parts different sizes for effect",
                    "Tessellation",
                    "Impressionism",
                ],
                answer="b",
                explanation="Proportion is the size relationship between parts. Cartoons and caricatures often exaggerate proportions for humor. Renaissance artists studied proportion carefully to make figures look realistic.",
                xp=10,
            ),
        ],
    ),
    "famous_artists": Zone(
        id="famous_artists",
        title="Famous Artists",
        description="Learn about the most celebrated artists in history and what made them unique.",
        challenges=[
            Challenge(
                id="art_da_vinci",
                type="quiz",
                prompt="Leonardo da Vinci was famous for being both an artist AND a:",
                options=[
                    "King of Italy",
                    "Scientist and inventor — he designed flying machines, studied anatomy, and engineered canals",
                    "Professional musician",
                    "Sailor who explored new continents",
                ],
                answer="b",
                explanation="Leonardo da Vinci (1452-1519) was a Renaissance genius — artist, scientist, engineer, and inventor. He designed early flying machines, studied the human body, and filled thousands of notebook pages with ideas!",
                xp=10,
            ),
            Challenge(
                id="art_frida_kahlo",
                type="quiz",
                prompt="Frida Kahlo, a famous Mexican artist, is known for painting:",
                options=[
                    "Large battle scenes and wars",
                    "Seascapes and ocean waves",
                    "Self-portraits that expressed her pain and Mexican culture",
                    "Abstract shapes with no recognizable objects",
                ],
                answer="c",
                explanation="Frida Kahlo (1907-1954) painted dozens of self-portraits that showed her inner feelings, physical pain, and pride in Mexican culture. She's one of the most celebrated female artists ever.",
                xp=10,
            ),
            Challenge(
                id="art_impressionism",
                type="quiz",
                prompt="Impressionist painters like Monet painted:",
                options=[
                    "Exactly what things look like with every tiny detail",
                    "Abstract shapes with no connection to real life",
                    "The feeling and impression of light and movement, with loose brushstrokes",
                    "Only religious subjects from the Bible",
                ],
                answer="c",
                explanation="Impressionists (1860s-1890s) wanted to capture a MOMENT — light changing on water, wind moving through grass. They used quick, visible brushstrokes outdoors. The name came from Monet's painting 'Impression, Sunrise.'",
                xp=10,
            ),
            Challenge(
                id="art_georgia_okeeffe",
                type="fill_blank",
                prompt="Georgia O'Keeffe, an American artist famous for giant close-up paintings of flowers and bones, was inspired by the landscapes of New _____ (US state).",
                answer="Mexico",
                explanation="Georgia O'Keeffe (1887-1986) moved to New Mexico and painted the desert landscapes, skulls, flowers, and sky in large, dramatic close-ups. She's one of America's most important modern artists.",
                xp=15,
                hints=["A southwestern US state", "It starts with 'M'"],
            ),
            Challenge(
                id="art_picasso_cubism",
                type="quiz",
                prompt="Pablo Picasso invented Cubism — a style where:",
                options=[
                    "Everything is painted in cubes of perfect geometry",
                    "Subjects are shown from multiple viewpoints at once, fragmented and reassembled",
                    "Only the color blue is used",
                    "Paintings look like photographs",
                ],
                answer="b",
                explanation="Cubism shows things from MULTIPLE angles at the same time — like seeing the front, side, and back of a face all at once. Picasso and Georges Braque invented it around 1907-1914.",
                xp=15,
                hints=["Multiple viewpoints simultaneously"],
            ),
            Challenge(
                id="art_basquiat",
                type="quiz",
                prompt="Jean-Michel Basquiat, who became famous as a young Black artist in New York in the 1980s, started his art career:",
                options=[
                    "At a prestigious art school",
                    "By painting graffiti and tagging buildings in New York City",
                    "Working as a museum curator",
                    "By winning a national art contest",
                ],
                answer="b",
                explanation="Jean-Michel Basquiat (1960-1988) started by spray-painting poetry and imagery on buildings in Manhattan. His energetic, raw style combined words, figures, and symbols. By 20, he was showing in major galleries worldwide.",
                xp=15,
                hints=["Started on city streets, not in a gallery"],
            ),
        ],
    ),
}
