/* Miyuuverse informational / blog site — shared styles */
:root {
  --bg: #f8f6fc;
  --bg-soft: #fdfcff;
  --text-main: #3a2e5d;
  --text-muted: #8c7e9a;
  --accent: #eb6c93;
  --accent-hover: #d1567a;
  --card-bg: #ffffff;
  --border: rgba(58, 46, 93, 0.1);
  --gradient: linear-gradient(135deg, #f78ba7 0%, #a28dec 100%);
  --header-h: 72px;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(58, 46, 93, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 50% 0%, var(--bg-soft) 0%, transparent 55%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 5000;
  background: var(--text-main); color: #fff; padding: 10px 14px;
  border-radius: 10px; font-weight: 600; transition: top 0.2s ease;
}
.skip-link:focus { top: 10px; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--text-main); }
.brand img { height: 34px; width: 34px; border-radius: 8px; }
.brand span { color: var(--text-main); }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a.active { color: var(--text-main); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--text-main); cursor: pointer; }

@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: #fff; padding: 12px 24px 20px; border-bottom: 1px solid var(--border); }
  .nav.open { display: flex; }
  .nav a { padding: 8px 0; width: 100%; }
  .nav-toggle { display: block; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 0.95rem;
  background: var(--gradient); color: #fff; transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.92; transform: translateY(-1px); color: #fff; }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--text-main); }

/* ── Hero ── */
.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 15% 10%, rgba(247, 139, 167, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(162, 141, 236, 0.14) 0%, transparent 45%);
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem; color: var(--text-muted); font-weight: 700; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 14px 0 18px; max-width: 18ch; }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 56ch; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Sections ── */
.section { padding: 52px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.7rem; margin: 0; }
.section-head a { font-size: 0.92rem; }
.muted { color: var(--text-muted); }

/* ── Category chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }
.chip {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; color: var(--text-muted); font-weight: 600; font-size: 0.88rem;
}
.chip:hover, .chip.active { background: var(--gradient); color: #fff; border-color: transparent; }

/* ── Post grid + cards ── */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(58, 46, 93, 0.12); }
.card .cover { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: #ece7f5; }
.card .cover-fallback { aspect-ratio: 16 / 9; width: 100%; background: var(--gradient); }
.card .card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.badge { align-self: flex-start; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 700; color: var(--accent); background: rgba(235, 108, 147, 0.1); padding: 4px 10px; border-radius: 999px; }
.card h3 { margin: 0; font-size: 1.18rem; line-height: 1.3; }
.card h3 a { color: var(--text-main); }
.card h3 a:hover { color: var(--accent); }
.card .excerpt { color: var(--text-muted); font-size: 0.95rem; margin: 0; flex: 1; }
.card .meta { font-size: 0.82rem; color: var(--text-muted); margin: 0; }

/* ── Category highlight cards ── */
.cat-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cat-card { display: block; padding: 24px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform 0.18s ease; }
.cat-card:hover { transform: translateY(-3px); }
.cat-card h3 { margin: 0 0 6px; color: var(--text-main); font-size: 1.2rem; }
.cat-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ── Article ── */
.article-layout { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .article-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.article { max-width: 760px; }
.article .cover { width: 100%; border-radius: var(--radius); margin: 18px 0 28px; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.article h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 8px 0 12px; }
.article .post-meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 8px; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { font-size: 1.5rem; margin: 32px 0 12px; }
.prose h3 { font-size: 1.2rem; margin: 26px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 1.4rem; }
.prose img { border-radius: 12px; margin: 18px 0; }
.prose blockquote { margin: 18px 0; padding: 4px 18px; border-left: 4px solid var(--accent);
  color: var(--text-muted); background: rgba(235, 108, 147, 0.06); border-radius: 0 12px 12px 0; }
.prose pre { background: #1e1633; color: #f3eefb; padding: 16px; border-radius: 12px; overflow-x: auto; }
.prose code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 0.9em; }
.prose a { text-decoration: underline; }
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }

/* ── Ad slots ── */
.ad-slot { margin: 24px 0; display: flex; flex-direction: column; align-items: center; }
.ad-slot:empty { display: none; }
.ad-slot .ad-label { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px; }
.ad-slot a, .ad-slot .ad-inner { display: block; width: 100%; max-width: 970px; border-radius: 12px; overflow: hidden; }
.ad-slot img { width: 100%; height: auto; }
.ad-slot.placement-article_sidebar a, .ad-slot.placement-article_sidebar .ad-inner { max-width: 300px; }

/* ── Cards / panels (home) ── */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); }
.two-col { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.channel-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; color: var(--text-main); }
.channel-row:hover { border-color: var(--accent); }

/* ── Forms ── */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  font-family: inherit; font-size: 0.95rem; background: #fff; color: var(--text-main);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.form-inline input { flex: 1; min-width: 220px; }
.form-msg { font-size: 0.9rem; margin-top: 10px; min-height: 1.2em; }
.form-msg.ok { color: #16a34a; }
.form-msg.err { color: #dc2626; }

/* ── Misc ── */
.loading { text-align: center; color: var(--text-muted); padding: 40px 0; }
.empty { text-align: center; color: var(--text-muted); padding: 48px 0; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination button { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-family: inherit; color: var(--text-main); font-weight: 600; }
.pagination button:disabled { opacity: 0.4; cursor: default; }

/* ── Footer ── */
.site-footer { margin-top: auto; background: #fff; border-top: 1px solid var(--border); }
.site-footer .container { padding-top: 36px; padding-bottom: 36px; }
.foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.foot-grid h4 { margin: 0 0 12px; font-size: 0.95rem; }
.foot-grid a { display: block; color: var(--text-muted); font-weight: 500; font-size: 0.9rem; margin-bottom: 8px; }
.foot-grid a:hover { color: var(--accent); }
.foot-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border);
  text-align: center; color: var(--text-muted); font-size: 0.85rem; }
