/* =============================================
   anime-sama.rest — Main Stylesheet
   Design: Dark anime theme · FR market · Bing SEO
   ============================================= */

:root {
  --bg:        #0d0f14;
  --bg2:       #161922;
  --bg3:       #1e2230;
  --surface:   #252a3a;
  --border:    #2e3449;
  --accent:    #6c8eff;
  --accent2:   #4f6ef7;
  --accent-glow: rgba(108,142,255,0.15);
  --success:   #22c55e;
  --warning:   #f59e0b;
  --danger:    #ef4444;
  --text:      #e8eaf0;
  --text2:     #9aa0b4;
  --text3:     #5c6278;
  --white:     #ffffff;
  --font-head: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 2px 16px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--white); text-decoration: underline; }

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

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.25;
  color: var(--white);
  font-weight: 700;
}
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); margin-bottom: 0.6em; }
h3 { font-size: 1.1rem; margin-bottom: 0.4em; }
p  { margin-bottom: 1em; color: var(--text); }
ul, ol { padding-left: 1.4em; margin-bottom: 1em; }
li { margin-bottom: 0.3em; }

/* ── LAYOUT ── */
.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 720px; margin: 0 auto; padding: 0 20px; }

section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }

/* ── HEADER ── */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo img {
  width: auto;
  height: 34px;
  max-width: 180px;
}
.site-logo:hover { text-decoration: none; }

.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
  color: var(--text2);
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover {
  background: var(--bg3);
  color: var(--white);
  text-decoration: none;
}
.site-nav a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent2) !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: 7px 16px !important;
}
.nav-cta:hover {
  background: var(--accent) !important;
  text-decoration: none;
}

/* ── HERO ── */
.hero {
  padding: 72px 0 56px;
  border-top: none;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-glow);
  border: 1px solid rgba(108,142,255,0.3);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero__badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { margin-bottom: 16px; }
.hero__sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 580px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none !important;
  border: none;
}
.btn-primary {
  background: var(--accent2);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent); color: var(--white); }
.btn-secondary {
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); color: var(--white); }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }

/* ── STATUS CARDS ── */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.status-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.status-card--online { border-left: 3px solid var(--success); }
.status-card--offline { border-left: 3px solid var(--danger); opacity: 0.7; }
.status-card--warning { border-left: 3px solid var(--warning); }
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.status-dot--online { background: var(--success); box-shadow: 0 0 8px var(--success); }
.status-dot--offline { background: var(--danger); }
.status-dot--warning { background: var(--warning); }
.status-card__body { flex: 1; }
.status-card__domain {
  font-weight: 700;
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.status-card__label { font-size: 0.82rem; color: var(--text2); margin-bottom: 10px; }
.status-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* ── INFO CARDS ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}
.card + .card { margin-top: 16px; }

/* ── METHOD STEPS ── */
.method-list { list-style: none; padding: 0; counter-reset: step; }
.method-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}
.method-list li:last-child { border-bottom: none; }
.method-num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: var(--accent-glow);
  border: 1px solid rgba(108,142,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}
.method-body strong { color: var(--white); display: block; margin-bottom: 4px; }
.method-body p { margin: 0; font-size: 0.9rem; color: var(--text2); }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1rem;
}
.faq-a { color: var(--text2); font-size: 0.93rem; margin: 0; }
.faq-a a { color: var(--accent); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th {
  background: var(--bg3);
  color: var(--text2);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg3); }
.td-good { color: var(--success); font-weight: 600; }
.td-bad  { color: var(--danger); }
.td-warn { color: var(--warning); }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--text3);
  margin-bottom: 24px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb span { color: var(--text); }

/* ── ALERT BOX ── */
.alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.9rem;
  margin: 20px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.alert-info { background: rgba(108,142,255,0.1); border: 1px solid rgba(108,142,255,0.25); color: var(--text); }
.alert-warn { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25); color: var(--text); }
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ── CODE ── */
code {
  font-family: 'Consolas', 'Fira Code', monospace;
  background: var(--bg3);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88em;
}

/* ── SECTION HEADER ── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size: 0.88rem; color: var(--text2); margin-top: 10px; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text3);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text2); font-size: 0.88rem; }
.footer-col a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text3);
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--text3); }
.footer-links a:hover { color: var(--text2); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  section { padding: 36px 0; }
  .hero { padding: 48px 0 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .site-nav a:not(.nav-cta) { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
