/*
Theme Name: HiAnime Site Maintenance Theme
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: ULTRA WordPress maintenance and announcement theme for moving from hianime.to to hianime.site with expanded SEO pages, segmented XML sitemaps, content hubs, and stronger internal linking.
Version: 5.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: hianime-maintenance-theme
*/

:root {
  --bg: #0b1020;
  --bg-2: #131a33;
  --card: rgba(255,255,255,0.08);
  --text: #eef2ff;
  --muted: #b7c0e0;
  --accent: #7c9cff;
  --accent-2: #9a7cff;
  --line: rgba(255,255,255,0.12);
  --success: #95f0c4;
  --warning: #ffd27a;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(124,156,255,0.20), transparent 30%),
    radial-gradient(circle at top right, rgba(154,124,255,0.16), transparent 24%),
    linear-gradient(180deg, #09111f 0%, #0d1326 50%, #0b1020 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: 72px 0; }
.grid { display: grid; gap: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow);
}
.btn.secondary {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.badge .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 12px rgba(255,210,122,.8);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(9,17,31,0.68);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 22px rgba(124,156,255,.4);
  position: relative;
}
.logo-mark::before,
.logo-mark::after {
  content: "";
  position: absolute;
  background: white;
  border-radius: 999px;
}
.logo-mark::before {
  width: 18px;
  height: 5px;
  transform: rotate(45deg);
  top: 11px;
  left: 11px;
}
.logo-mark::after {
  width: 18px;
  height: 5px;
  transform: rotate(-45deg);
  bottom: 11px;
  right: 11px;
}
.logo-image {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(124,156,255,.25);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 54px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.hero-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero-copy p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 700px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card .inner {
  padding: 22px;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}
.stat strong { display: block; font-size: 24px; margin-bottom: 6px; }
.stat span { color: var(--muted); font-size: 14px; }

.banner-panel,
.card,
.keyword-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.banner-card {
  overflow: hidden;
}
.banner-card .banner {
  height: 260px;
  position: relative;
}
.banner-card .caption {
  padding: 18px;
}
.banner-card h3 { margin: 0 0 10px; font-size: 22px; }
.banner-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}
.section-head p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.card { padding: 28px; }
.card h3 { margin-top: 0; font-size: 24px; }
.card p, .card li { color: var(--muted); line-height: 1.8; }
.card ul { padding-left: 20px; margin: 0; }

.keyword-box {
  padding: 24px;
}
.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.keyword-cloud span {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--line);
  color: #edf1ff;
  font-size: 14px;
}

.notice-bar {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(149,240,196,0.10);
  border: 1px solid rgba(149,240,196,0.25);
  color: var(--success);
}

.footer {
  padding: 34px 0 54px;
  color: var(--muted);
}
.footer-box {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.small { font-size: 14px; }

.anime-svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 980px) {
  .hero-grid,
  .info-grid,
  .banner-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    display: block;
  }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding-top: 42px; }
  .hero-copy p { font-size: 16px; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-box {
    flex-direction: column;
  }
}


.hero-card--banners {
  padding: 16px;
}
.hero-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 0 16px 16px;
}
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  aspect-ratio: 8 / 1;
}
.hero-banner--large {
  margin: 16px;
}
.hero-banner img,
.banner--wide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.banner-stack {
  display: grid;
  gap: 20px;
}
.banner-grid--two {
  grid-template-columns: 1fr 1fr;
}
.banner-card--wide .banner,
.banner--wide {
  aspect-ratio: 8 / 1;
  height: auto;
  min-height: 0;
}
.notice-bar {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124,156,255,0.16), rgba(154,124,255,0.16));
  border: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 980px) {
  .hero-grid,
  .info-grid,
  .banner-grid,
  .banner-grid--two {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: clamp(34px, 9vw, 54px);
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
  }
  .section {
    padding: 56px 0;
  }
  .hero-banner-grid {
    grid-template-columns: 1fr;
  }
  .hero-banner,
  .banner--wide {
    aspect-ratio: 4 / 1;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
}


.faq-grid { align-items: stretch; }
.centered-card { text-align: center; padding: 36px 28px; }
.centered-card h2 { margin-top: 0; }
.schema-copy-section { padding-top: 20px; }


.chat-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}
.chat-box, .chat-form-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.chat-box {
  padding: 20px;
}
.chat-messages {
  max-height: 520px;
  overflow-y: auto;
  display: grid;
  gap: 14px;
  padding-right: 6px;
}
.chat-message {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
}
.chat-message-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}
.chat-message-head strong {
  color: var(--text);
  font-size: 15px;
}
.chat-message p {
  margin: 0;
  color: var(--text);
  line-height: 1.7;
  word-break: break-word;
}
.chat-empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.14);
}
.chat-form-card {
  padding: 24px;
}
.chat-form {
  display: grid;
  gap: 14px;
}
.chat-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.chat-form input,
.chat-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(8,12,24,0.8);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
}
.chat-form textarea {
  min-height: 130px;
  resize: vertical;
}
.chat-help, .chat-status {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.chat-status.is-error { color: #ffb4b4; }
.chat-status.is-success { color: var(--success); }
@media (max-width: 980px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }
}


.custom-logo-link img,
.custom-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(124,156,255,.25);
}

.notice-bar {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(124,156,255,0.12);
  border: 1px solid rgba(124,156,255,0.25);
  color: var(--text);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.section-head {
  margin-bottom: 22px;
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px;
}

.keyword-cloud span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  padding: 12px;
}

.hero-banner--large img,
.hero-banner img,
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-banner--large {
  height: 260px;
}

.hero-banner {
  height: 180px;
  overflow: hidden;
  border-radius: 18px;
}

.banner-card--wide .banner--wide {
  height: 320px;
}

.caption {
  padding: 20px;
}

.banner-stack {
  display: grid;
  gap: 20px;
}

.banner-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid .card,
.info-grid .card {
  padding: 24px;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
}

.chat-box,
.chat-form-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.chat-box {
  min-height: 420px;
  overflow: hidden;
}

.chat-messages {
  padding: 18px;
  max-height: 420px;
  overflow-y: auto;
}

.chat-message {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  margin-bottom: 12px;
}

.chat-message__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.chat-form-card {
  padding: 22px;
}

.chat-form label {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
}

.chat-form input,
.chat-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #fff;
}

.chat-form textarea {
  min-height: 130px;
  resize: vertical;
}

.chat-status {
  margin-top: 12px;
  color: var(--muted);
}

.chat-status.is-success { color: var(--success); }
.chat-status.is-error { color: #ff9e9e; }
.chat-empty { color: var(--muted); padding: 18px; }

.centered-card {
  padding: 28px;
  text-align: center;
}

.footer {
  padding: 26px 0 40px;
}

.footer-box {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
}

.small { font-size: 14px; }

@media (max-width: 980px) {
  .hero-grid,
  .info-grid,
  .chat-layout,
  .banner-grid--two {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .container {
    width: min(100%, calc(100% - 20px));
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-banner--large {
    height: 220px;
  }

  .hero-banner {
    height: 130px;
  }

  .banner-card--wide .banner--wide {
    height: 220px;
  }
}


.page-shell {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.page-title {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}
.page-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  max-width: 860px;
}
.page-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.link-card {
  display: block;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(124,156,255,.55);
  background: rgba(124,156,255,0.10);
}


.cluster-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:24px; }
.mini-list { display:grid; gap:10px; margin:18px 0 0; padding:0; list-style:none; }
.mini-list a { color: var(--text); opacity:.92; }
.mini-list a:hover { color:white; }
.pill-grid { display:flex; flex-wrap:wrap; gap:12px; }
.pill-link { display:inline-flex; padding:10px 14px; border-radius:999px; background:rgba(255,255,255,.06); border:1px solid var(--line); }
.footer-links { display:flex; flex-wrap:wrap; gap:10px 14px; justify-content:center; margin-top:16px; }
.footer-links a { color:var(--muted); }
@media (max-width: 960px) { .cluster-grid { grid-template-columns:1fr; } }
