:root {
    --primary: #0EA968;
    --primary-hover: #078754;
    --secondary: #3B6CF4;
    --bg-main: #F8FAFC;
    --surface: #FFFFFF;
    --text-dark: #0F172A;
    --text-muted: #475569;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Pretendard', sans-serif; background-color: var(--bg-main); color: var(--text-dark); line-height: 1.6; }

/* Header */
.header { display: flex; justify-content: space-between; align-items: center; padding: 15px 30px; background: var(--surface); border-bottom: 1px solid var(--border); }
.logo { font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--text-dark); }
.hub-link { font-size: 0.9rem; text-decoration: none; color: var(--text-muted); }

/* Layout */
.container { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.hero { text-align: center; margin-bottom: 40px; }
.hero h1 { font-size: 2rem; margin-bottom: 10px; }
.hero p { color: var(--text-muted); }

/* Grid Gallery */
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 50px; }
.recipe-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.recipe-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--primary); }
.recipe-card img { width: 100%; height: 160px; object-fit: cover; }
.recipe-card h3 { padding: 15px; font-size: 1.1rem; text-align: center; }

/* Viewer Section */
.viewer-section { background: var(--surface); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); margin-bottom: 40px; border-top: 4px solid var(--primary); }
.viewer-content img { width: 100%; border-radius: 12px; margin-bottom: 20px; }
.why-it-works { background: #F0FDF4; padding: 15px; border-radius: 8px; margin-top: 15px; color: #166534; font-size: 0.95rem; }

/* Customize Panel */
.customize-panel { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-top: 15px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; }
.form-group select { width: 100%; padding: 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-main); font-family: inherit; font-size: 0.95rem; }

/* Actions */
.action-panel { margin-top: 30px; padding: 20px; background: var(--bg-main); border-radius: 12px; text-align: center; }
.platform-select { margin-bottom: 20px; }
.platform-select label { margin: 0 10px; font-weight: 600; cursor: pointer; }
.button-group { display: flex; gap: 10px; justify-content: center; }
button { padding: 12px 24px; border-radius: 8px; font-size: 1rem; font-weight: 700; cursor: pointer; border: none; transition: 0.2s; }
.btn-primary { background: var(--primary); color: white; flex: 2; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--border); color: var(--text-dark); flex: 1; }
.btn-secondary:hover { background: #cbd5e1; }
.save-notice { font-size: 0.75rem; color: var(--text-muted); margin-top: 10px; }

/* Ad Slot & Guide */
.ad-slot { margin: 40px 0; padding: 40px 20px; text-align: center; background: #f1f5f9; border: 2px dashed #cbd5e1; border-radius: 12px; color: #64748b; }
.related-guide { text-align: center; padding: 30px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); }
.guide-btn { display: inline-block; margin-top: 15px; padding: 10px 20px; background: var(--secondary); color: white; text-decoration: none; border-radius: 8px; font-weight: bold; }

/* Toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: #333; color: #fff; padding: 10px 20px; border-radius: 20px; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 1000; }
.toast.show { opacity: 1; visibility: visible; }

/* --- 신규 추가: UI/UX 개선 스타일 --- */
.onboarding-guide { margin-top: 15px; background: var(--surface); padding: 12px 24px; border-radius: 8px; display: inline-block; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); border: 1px solid var(--border); }
.onboarding-guide span { margin: 0 6px; }

.image-wrapper { position: relative; width: 100%; text-align: center; margin-bottom: 20px; }
.image-wrapper img { margin-bottom: 8px !important; }

.example-badge { position: absolute; top: 15px; left: 15px; background: rgba(15, 23, 42, 0.75); color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 0.8rem; font-weight: bold; backdrop-filter: blur(4px); z-index: 10; }
.preview-notice { font-size: 0.85rem; color: #64748b; margin-top: 4px; }
