/* ==========================================================================
   KMSP Beginner Guide — /start-martial-arts/
   Long-form SEO guide page styles
   v8.3.0
   ========================================================================== */

/* ---------- Reading Progress Bar ---------- */
.kmsp-guide-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #b71c1c, #ff5252);
  z-index: 99999;
  transition: width 80ms linear;
}

/* ---------- Guide Container ---------- */
.kmsp-guide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--kmsp-space-md, 1rem);
  color: var(--kmsp-text, #e8e8e8);
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.85;
  font-size: 16px;
}

/* ---------- Hero ---------- */
.kmsp-guide-hero {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: 16px;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.kmsp-guide-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(183, 28, 28, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255, 82, 82, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.kmsp-guide-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.75rem;
  line-height: 1.3;
  position: relative;
}
.kmsp-guide-hero h1 .emoji {
  font-size: 2.4rem;
  display: inline-block;
  animation: kmspGuidePunch 2s ease-in-out infinite;
}
@keyframes kmspGuidePunch {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg) scale(1.1); }
  75% { transform: rotate(8deg) scale(1.1); }
}
.kmsp-guide-hero .subtitle {
  font-size: 1.05rem;
  color: #a0aec0;
  margin: 0 0 1.5rem;
}
.kmsp-guide-hero .meta-info {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #718096;
}
.kmsp-guide-hero .meta-info span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---------- Table of Contents ---------- */
.kmsp-guide-toc {
  background: var(--kmsp-bg-card, #16213e);
  border: 1px solid rgba(255, 82, 82, 0.15);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}
.kmsp-guide-toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--kmsp-accent, #ff5252);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}
.kmsp-guide-toc-title::after {
  content: '▼';
  font-size: 0.7rem;
  transition: transform 0.3s;
  margin-left: auto;
}
.kmsp-guide-toc.collapsed .kmsp-guide-toc-title::after {
  transform: rotate(-90deg);
}
.kmsp-guide-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
  transition: max-height 0.4s ease, opacity 0.3s;
  overflow: hidden;
}
.kmsp-guide-toc.collapsed .kmsp-guide-toc-list {
  max-height: 0 !important;
  opacity: 0;
}
.kmsp-guide-toc-list li {
  counter-increment: toc;
  margin-bottom: 0.4rem;
}
.kmsp-guide-toc-list li a {
  color: var(--kmsp-text, #e8e8e8);
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.kmsp-guide-toc-list li a::before {
  content: counter(toc);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(183, 28, 28, 0.2);
  color: var(--kmsp-accent, #ff5252);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.kmsp-guide-toc-list li a:hover,
.kmsp-guide-toc-list li a.active {
  background: rgba(255, 82, 82, 0.1);
  color: var(--kmsp-accent, #ff5252);
}

/* ---------- Sections ---------- */
.kmsp-guide-section {
  margin-bottom: 3rem;
  scroll-margin-top: 80px;
}
.kmsp-guide-section > h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--kmsp-accent, #ff5252);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.kmsp-guide-section > h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 1.8rem 0 0.8rem;
}
.kmsp-guide-section p {
  color: var(--kmsp-text, #e8e8e8);
  margin: 0 0 1rem;
}

/* ---------- Style Cards Grid ---------- */
.kmsp-style-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 1.5rem 0;
}
.kmsp-style-card {
  background: var(--kmsp-bg-card, #16213e);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.4rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.kmsp-style-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 82, 82, 0.3);
}
.kmsp-style-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.kmsp-style-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.kmsp-style-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.kmsp-style-card-name-en {
  font-size: 0.78rem;
  color: #718096;
  font-weight: 400;
}
.kmsp-style-card-desc {
  font-size: 0.9rem;
  color: var(--kmsp-text-muted, #a0a0a0);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.kmsp-style-card-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.kmsp-style-card-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: #a0aec0;
}
.kmsp-style-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: var(--kmsp-accent, #ff5252);
  text-decoration: none;
  font-weight: 600;
  transition: gap 0.2s;
}
.kmsp-style-card-link:hover {
  gap: 0.6rem;
}

/* Style-specific icon backgrounds */
.style-mma .kmsp-style-card-icon { background: rgba(229, 62, 62, 0.15); }
.style-kickboxing .kmsp-style-card-icon { background: rgba(221, 107, 32, 0.15); }
.style-boxing .kmsp-style-card-icon { background: rgba(49, 130, 206, 0.15); }
.style-bjj .kmsp-style-card-icon { background: rgba(128, 90, 213, 0.15); }
.style-karate .kmsp-style-card-icon { background: rgba(56, 161, 105, 0.15); }
.style-judo .kmsp-style-card-icon { background: rgba(214, 158, 46, 0.15); }
.style-muaythai .kmsp-style-card-icon { background: rgba(237, 100, 166, 0.15); }
.style-taekwondo .kmsp-style-card-icon { background: rgba(252, 129, 129, 0.15); }

/* ---------- Comparison Table ---------- */
.kmsp-guide-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.kmsp-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}
.kmsp-guide-table thead th {
  background: rgba(183, 28, 28, 0.15);
  color: var(--kmsp-accent, #ff5252);
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}
.kmsp-guide-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--kmsp-text, #e8e8e8);
}
.kmsp-guide-table tbody tr:hover td {
  background: rgba(255, 82, 82, 0.04);
}
.kmsp-guide-table .stars {
  color: var(--kmsp-gold, #ffc107);
  letter-spacing: 1px;
}

/* ---------- Checklist ---------- */
.kmsp-guide-checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}
.kmsp-guide-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  background: var(--kmsp-bg-card, #16213e);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  transition: background 0.2s;
}
.kmsp-guide-checklist li:hover {
  background: var(--kmsp-bg-card-hover, #1a2744);
}
.kmsp-guide-checklist li::before {
  content: '✅';
  flex-shrink: 0;
  font-size: 1rem;
}

/* ---------- Tip Box / Callout ---------- */
.kmsp-guide-tip {
  background: rgba(183, 28, 28, 0.08);
  border-left: 4px solid var(--kmsp-accent, #ff5252);
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
}
.kmsp-guide-tip-title {
  font-weight: 700;
  color: var(--kmsp-accent, #ff5252);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.kmsp-guide-tip p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--kmsp-text, #e8e8e8);
}

/* ---------- FAQ Accordion ---------- */
.kmsp-guide-faq {
  margin: 1.5rem 0;
}
.kmsp-guide-faq-item {
  background: var(--kmsp-bg-card, #16213e);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color 0.2s;
}
.kmsp-guide-faq-item.open {
  border-color: rgba(255, 82, 82, 0.25);
}
.kmsp-guide-faq-q {
  padding: 1rem 1.3rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  transition: background 0.2s;
}
.kmsp-guide-faq-q:hover {
  background: rgba(255, 82, 82, 0.05);
}
.kmsp-guide-faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--kmsp-accent, #ff5252);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.kmsp-guide-faq-item.open .kmsp-guide-faq-q::after {
  content: '−';
  transform: rotate(180deg);
}
.kmsp-guide-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
}
.kmsp-guide-faq-item.open .kmsp-guide-faq-a {
  max-height: 500px;
  padding: 0 1.3rem 1.2rem;
}
.kmsp-guide-faq-a p {
  font-size: 0.93rem;
  margin: 0;
  color: var(--kmsp-text-muted, #a0a0a0);
  line-height: 1.75;
}

/* ---------- CTA Box ---------- */
.kmsp-guide-cta {
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(183, 28, 28, 0.12), rgba(255, 82, 82, 0.08));
  border: 1px solid rgba(255, 82, 82, 0.2);
  border-radius: 16px;
  margin: 2.5rem 0;
}
.kmsp-guide-cta h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.6rem;
}
.kmsp-guide-cta p {
  color: #a0aec0;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}
.kmsp-guide-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  background: linear-gradient(135deg, #b71c1c, #e53e3e);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.kmsp-guide-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(183, 28, 28, 0.4);
  color: #fff;
}

/* ---------- Popular Gyms Grid ---------- */
.kmsp-guide-popular {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.kmsp-guide-pop-card {
  background: var(--kmsp-bg-card, #16213e);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 1.2rem;
  transition: transform 0.2s, border-color 0.2s;
}
.kmsp-guide-pop-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 82, 82, 0.25);
}
.kmsp-guide-pop-rank {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--kmsp-accent, #ff5252);
  margin-bottom: 0.3rem;
}
.kmsp-guide-pop-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.3rem;
}
.kmsp-guide-pop-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.kmsp-guide-pop-name a:hover {
  color: var(--kmsp-accent, #ff5252);
}
.kmsp-guide-pop-info {
  font-size: 0.82rem;
  color: #718096;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.kmsp-guide-pop-stars {
  color: var(--kmsp-gold, #ffc107);
  font-size: 0.82rem;
}

/* ---------- Internal Link Cards ---------- */
.kmsp-guide-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.kmsp-guide-link-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  background: var(--kmsp-bg-card, #16213e);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  text-decoration: none;
  color: var(--kmsp-text, #e8e8e8);
  transition: border-color 0.2s, background 0.2s;
  font-size: 0.9rem;
  font-weight: 600;
}
.kmsp-guide-link-card:hover {
  border-color: rgba(255, 82, 82, 0.3);
  background: var(--kmsp-bg-card-hover, #1a2744);
  color: #fff;
}
.kmsp-guide-link-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ---------- Embed Sections ---------- */
.kmsp-guide-embed {
  margin: 2rem 0;
}
.kmsp-guide-embed h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

/* ---------- Breadcrumb ---------- */
.kmsp-guide-breadcrumb {
  font-size: 0.82rem;
  color: #718096;
  margin-bottom: 1rem;
  padding: 0;
}
.kmsp-guide-breadcrumb a {
  color: #718096;
  text-decoration: none;
  transition: color 0.2s;
}
.kmsp-guide-breadcrumb a:hover {
  color: var(--kmsp-accent, #ff5252);
}
.kmsp-guide-breadcrumb .sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* ---------- Article Footer ---------- */
.kmsp-guide-footer {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 2rem;
  font-size: 0.85rem;
  color: #718096;
  text-align: center;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  .kmsp-guide-hero {
    padding: 2rem 1rem;
  }
  .kmsp-guide-hero h1 {
    font-size: 1.6rem;
  }
  .kmsp-guide-section > h2 {
    font-size: 1.3rem;
  }
  .kmsp-style-cards {
    grid-template-columns: 1fr;
  }
  .kmsp-guide-popular {
    grid-template-columns: 1fr;
  }
  .kmsp-guide-links {
    grid-template-columns: 1fr;
  }
  .kmsp-guide-cta {
    padding: 1.8rem 1.2rem;
  }
  .kmsp-guide-toc {
    padding: 1rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .kmsp-guide {
    font-size: 15px;
  }
  .kmsp-guide-hero h1 {
    font-size: 1.35rem;
  }
  .kmsp-guide-hero .meta-info {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .kmsp-guide-table {
    font-size: 0.8rem;
  }
  .kmsp-guide-cta h3 {
    font-size: 1.15rem;
  }
}
