/* ===================================================================
   FREE FIRE NAME RULES GUIDE — STYLESHEET
   FreeFireNicknamePro.com Informational & Tool-First Guides System
   =================================================================== */

.guide-page-wrapper {
  position: relative;
  overflow-x: hidden;
}

/* ===================================================================
   HERO & ARTICLE HEADER
   =================================================================== */
.guide-hero-section {
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
}

.guide-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.12) 0%, rgba(255, 170, 0, 0.04) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.guide-hero-section .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumb Navigation */
.guide-breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.guide-breadcrumb-nav a {
  color: var(--text-med, #cbd5e1);
  text-decoration: none;
  transition: color var(--transition-fast, 0.2s ease);
}

.guide-breadcrumb-nav a:hover {
  color: var(--fire-gold, #ffaa00);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
}

/* Hero Badge */
.guide-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 87, 34, 0.12);
  border: 1px solid rgba(255, 170, 0, 0.4);
  padding: 0.38rem 1.15rem;
  border-radius: var(--radius-pill, 9999px);
  font-family: var(--font-gaming, 'Chakra Petch', sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--fire-gold, #ffaa00);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.2);
}

/* H1 Hero Title */
.guide-hero-title {
  font-family: var(--font-gaming, 'Chakra Petch', sans-serif);
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0 auto 1.15rem;
  max-width: 980px;
}

.guide-hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, #ffaa00 55%, #ff5722 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Meta Strip */
.guide-meta-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0 auto 2rem;
  flex-wrap: wrap;
  max-width: 880px;
}

.guide-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill, 9999px);
}

/* Problem-Agitate-Solution Intro Card */
.guide-pas-card {
  max-width: 880px;
  margin: 0 auto 2.5rem;
  text-align: left;
  background: linear-gradient(180deg, rgba(22, 28, 42, 0.96) 0%, rgba(13, 17, 28, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 4px solid var(--fire-primary, #ff5722);
  border-radius: var(--radius-md, 14px);
  padding: 1.6rem 2rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 87, 34, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.guide-pas-card p {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.04rem;
  line-height: 1.78;
  color: #cbd5e1;
  margin: 0;
}

.guide-pas-card strong {
  color: #ffffff;
  font-weight: 600;
}

/* ===================================================================
   INTERACTIVE NICKNAME INSPECTOR WIDGET (TOOL-FIRST)
   =================================================================== */
.rules-inspector-widget {
  background: linear-gradient(180deg, rgba(20, 26, 40, 0.96) 0%, rgba(11, 15, 25, 0.99) 100%);
  border: 1px solid rgba(255, 170, 0, 0.35);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  margin: 0 auto 3rem;
  max-width: 880px;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 87, 34, 0.12);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.rules-inspector-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fire-gradient-gold, linear-gradient(90deg, #ff5722, #ffaa00));
}

.inspector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inspector-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inspector-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(255, 170, 0, 0.4));
}

.inspector-title {
  font-family: var(--font-gaming, 'Chakra Petch', sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin: 0;
}

.inspector-badge {
  font-family: var(--font-gaming, 'Chakra Petch', sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill, 9999px);
  background: rgba(255, 87, 34, 0.15);
  border: 1px solid rgba(255, 87, 34, 0.4);
  color: var(--fire-gold, #ffaa00);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Preset Quick Test Buttons */
.inspector-presets {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.inspector-preset-label {
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-preset-test {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: var(--font-gaming, 'Chakra Petch'), 'Segoe UI Symbol', 'Apple Symbols', sans-serif;
  font-size: 0.84rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: all var(--transition-fast, 0.2s ease);
}

.btn-preset-test:hover {
  background: rgba(255, 170, 0, 0.15);
  border-color: var(--fire-gold, #ffaa00);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Input Row */
.inspector-input-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.inspector-input-wrap {
  flex: 1;
  min-width: 260px;
  position: relative;
}

.inspector-input {
  width: 100%;
  background: #080b12;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md, 10px);
  padding: 0.95rem 1.25rem;
  color: #ffffff;
  font-family: var(--font-gaming, 'Chakra Petch'), 'Segoe UI Symbol', 'Noto Sans Tibetan', 'Apple Symbols', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 1px;
  transition: all var(--transition-fast, 0.2s ease);
}

.inspector-input:focus {
  outline: none;
  border-color: var(--fire-primary, #ff5722);
  box-shadow: 0 0 16px rgba(255, 87, 34, 0.35);
  background: #0b0f19;
}

.btn-inspector-action {
  background: var(--fire-gradient, linear-gradient(135deg, #ff5722 0%, #ff9800 100%));
  border: none;
  color: #ffffff;
  font-family: var(--font-gaming, 'Chakra Petch', sans-serif);
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0 1.35rem;
  border-radius: var(--radius-md, 10px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast, 0.2s ease);
  white-space: nowrap;
}

.btn-inspector-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
}

.btn-inspector-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  font-family: var(--font-gaming, 'Chakra Petch', sans-serif);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0 1.15rem;
  border-radius: var(--radius-md, 10px);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all var(--transition-fast, 0.2s ease);
  white-space: nowrap;
}

.btn-inspector-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: var(--fire-gold, #ffaa00);
}

/* Inspector Metrics Grid */
.inspector-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md, 10px);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
}

.metric-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.metric-value {
  font-family: var(--font-gaming, 'Chakra Petch', sans-serif);
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
}

.metric-value.safe {
  color: #34d399;
}

.metric-value.warning {
  color: #fbbf24;
}

.metric-value.danger {
  color: #f87171;
}

.metric-desc {
  font-size: 0.78rem;
  color: var(--text-muted, #94a3b8);
}

/* Inspector Feedback Box */
.inspector-diagnostic-box {
  background: rgba(15, 20, 32, 0.95);
  border-radius: var(--radius-md, 10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.diagnostic-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.diagnostic-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill, 9999px);
  font-family: var(--font-gaming, 'Chakra Petch', sans-serif);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.diagnostic-status-tag.safe {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.diagnostic-status-tag.caution {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.diagnostic-status-tag.danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.diagnostic-message {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

/* Character Tokens Breakdown */
.char-tokens-container {
  margin-top: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.char-tokens-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}

.char-tokens-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.char-token {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  min-width: 44px;
}

.char-token-char {
  font-family: var(--font-gaming, 'Chakra Petch'), 'Segoe UI Symbol', 'Noto Sans Tibetan', 'Apple Symbols', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.char-token-code {
  font-size: 0.65rem;
  color: #94a3b8;
  font-family: monospace;
}

.char-token.symbol {
  border-color: rgba(255, 170, 0, 0.4);
  background: rgba(255, 170, 0, 0.08);
}
.char-token.symbol .char-token-char {
  color: var(--fire-gold, #ffaa00);
}

.char-token.invisible {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
}
.char-token.invisible .char-token-char {
  color: #f87171;
}

/* Clean Fallback Result Box */
.fallback-box {
  display: none;
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm, 6px);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.fallback-box.show {
  display: flex;
}

.fallback-text {
  font-size: 0.88rem;
  color: #cbd5e1;
}

.fallback-val {
  font-family: var(--font-gaming, 'Chakra Petch', sans-serif);
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.5px;
}

/* ===================================================================
   VISUAL FIGURES WITH CAPTIONS
   =================================================================== */
.guide-infographic-figure {
  margin: 2rem 0 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 170, 0, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 87, 34, 0.1);
  background: #090c14;
}

.guide-infographic-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.guide-infographic-figure figcaption {
  padding: 0.9rem 1.4rem;
  background: rgba(15, 20, 32, 0.98);
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.guide-infographic-figure figcaption strong {
  color: var(--fire-gold, #ffaa00);
}

/* ===================================================================
   CHECKLIST INTERACTIVE WIDGET (FINAL CHECKLIST)
   =================================================================== */
.rules-checklist-card {
  background: var(--bg-surface, #111522);
  border: 1px solid rgba(255, 170, 0, 0.28);
  border-radius: var(--radius-lg, 16px);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-card, 0 8px 30px rgba(0, 0, 0, 0.5)), 0 0 25px rgba(255, 87, 34, 0.1);
  margin: 1.75rem 0;
  position: relative;
  overflow: hidden;
}

.rules-checklist-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fire-gradient-gold, linear-gradient(90deg, #ff5722, #ffaa00));
}
