@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&family=Nunito:wght@400;600;700&family=Inter:wght@400;600&family=Courier+Prime:wght@400;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Nunito', sans-serif; overflow-x: hidden; }

/* ================= BUILDER DASHBOARD UI ================= */
.dashboard-bg { background: #f8fafc; color: #333; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.nav-pro { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 2px dashed #e2e8f0; margin-bottom: 20px; }
.nav-pro .logo { font-size: 1.5rem; font-weight: 700; color: #d32f2f; font-family: 'Fredoka', sans-serif; text-decoration: none; }
.dashboard-grid { display: grid; grid-template-columns: 400px 1fr; gap: 30px; padding-bottom: 40px; }
.panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 25px; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; color: #475569; }
.form-group input, .form-group textarea { width: 100%; padding: 10px; border: 2px solid #e2e8f0; border-radius: 8px; font-family: inherit; transition: all 0.2s; }
.form-group input:focus { outline: none; border-color: #d32f2f; }

.theme-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 20px; }
.theme-card { border: 2px solid #e2e8f0; border-radius: 8px; padding: 12px; cursor: pointer; transition: 0.2s; display: flex; align-items: center; gap: 10px; }
.theme-card h4 { font-family: 'Fredoka'; font-size: 1.1rem; }
.theme-card.active { border-color: #d32f2f; background: #fef2f2; }

/* ================= 4-STEP STORY ENGINE (UNIVERSAL) ================= */
.card-scene { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; position: relative; transition: background 0.5s ease; }
.pill-header { padding: 10px 25px; border-radius: 30px; font-size: 1.2rem; font-weight: 600; margin-bottom: 20px; text-align: center; animation: float 3s infinite; z-index: 10; transition: all 0.3s ease; }
.journey-card { padding: 30px 20px; width: 100%; max-width: 380px; text-align: center; position: relative; transition: all 0.3s ease; }
.step { display: none; opacity: 0; flex-direction: column; align-items: center; }
.step.active { display: flex; animation: fadeIn 0.5s forwards; }
.cute-gif { width: 120px; height: 120px; object-fit: contain; margin-bottom: 15px; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; width: 100%; }
.gallery-grid img { width: 100%; height: 110px; object-fit: cover; }
.card-btns { display: flex; gap: 10px; justify-content: center; margin-top: 15px; width: 100%; }
.card-btns button { padding: 10px 20px; font-size: 1rem; cursor: pointer; border: none; font-weight: bold; transition: 0.2s; }
.btn-no { position: relative; transition: top 0.2s, left 0.2s; }

/* ================= TEMA 1: THE PICNIC (Reference Style) ================= */
.theme-picnic { background-color: white; background-image: repeating-linear-gradient(transparent, transparent 20px, rgba(211,47,47,0.15) 20px, rgba(211,47,47,0.15) 40px), repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(211,47,47,0.15) 20px, rgba(211,47,47,0.15) 40px); font-family: 'Nunito', sans-serif; color: #333; }
.theme-picnic .pill-header { background: white; color: #d32f2f; box-shadow: 0 4px 15px rgba(0,0,0,0.08); font-family: 'Fredoka', cursive; }
.theme-picnic .journey-card { background: white; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border: 4px solid white; }
.theme-picnic .gallery-grid img { border-radius: 12px; }
.theme-picnic .card-btns button { border-radius: 50px; font-family: 'Nunito'; }
.theme-picnic .btn-yes { background: #d32f2f; color: white; box-shadow: 0 4px 10px rgba(211,47,47,0.3); }
.theme-picnic .btn-no { background: #e2e8f0; color: #333; }
.theme-picnic h3, .theme-picnic h2 { font-family: 'Fredoka'; color: #d32f2f; }

/* ================= TEMA 2: THE MIDNIGHT (Dark/Modern) ================= */
.theme-midnight { background: #0f172a; background-image: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%); font-family: 'Inter', sans-serif; color: #f8fafc; }
.theme-midnight .pill-header { background: rgba(30,41,59,0.8); color: #a855f7; border: 1px solid #334155; backdrop-filter: blur(10px); }
.theme-midnight .journey-card { background: rgba(30,41,59,0.6); border-radius: 16px; border: 1px solid #334155; backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.theme-midnight .gallery-grid img { border-radius: 8px; border: 1px solid #334155; }
.theme-midnight .card-btns button { border-radius: 8px; font-family: 'Inter'; }
.theme-midnight .btn-yes { background: #a855f7; color: white; box-shadow: 0 4px 15px rgba(168,85,247,0.4); }
.theme-midnight .btn-no { background: #334155; color: white; }
.theme-midnight h3, .theme-midnight h2 { color: #e879f9; }

/* ================= TEMA 3: THE RETRO (Vintage/Brutalist) ================= */
.theme-retro { background: #fdf6e3; background-image: radial-gradient(#d4c5b0 1px, transparent 1px); background-size: 20px 20px; font-family: 'Courier Prime', monospace; color: #1e1e1e; }
.theme-retro .pill-header { background: #fef08a; color: #1e1e1e; border: 2px solid #1e1e1e; box-shadow: 4px 4px 0px #1e1e1e; border-radius: 0; transform: rotate(-1deg); }
.theme-retro .journey-card { background: #fff; border: 3px solid #1e1e1e; border-radius: 0; box-shadow: 8px 8px 0px #1e1e1e; }
.theme-retro .gallery-grid img { border-radius: 0; border: 2px solid #1e1e1e; filter: sepia(0.3); }
.theme-retro .card-btns button { border-radius: 0; border: 2px solid #1e1e1e; font-family: 'Courier Prime'; text-transform: uppercase; }
.theme-retro .btn-yes { background: #4ade80; color: #1e1e1e; box-shadow: 3px 3px 0px #1e1e1e; }
.theme-retro .btn-yes:active { transform: translate(3px, 3px); box-shadow: 0px 0px 0px #1e1e1e; }
.theme-retro .btn-no { background: #cbd5e1; color: #1e1e1e; }
.theme-retro h3, .theme-retro h2 { font-weight: bold; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 768px) { .dashboard-grid { grid-template-columns: 1fr; } }