/* ==========================================================================
   Yo-Yo Companion Guides Module Styles (Maintenance, Starter, App User Guide)
   ========================================================================== */

/* Settings Menu Item (Guides & Support) */
.menu-list-group {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.menu-row {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border, #e2e8f0);
  cursor: pointer;
  background: #fff;
  transition: background 0.15s ease;
  user-select: none;
}
.menu-row:last-child {
  border-bottom: none;
}
.menu-row:active {
  background: #f1f5f9;
}
.menu-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
}
.menu-desc {
  font-size: 0.7rem;
  color: var(--text-muted, #64748b);
}
.menu-chevron {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 800;
}

/* Guide Modals (Dark Theme) */
.guide-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 14px;
}
.guide-modal-overlay.open {
  display: flex;
}

.guide-modal-content {
  background: #0f172a;
  color: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #334155;
  box-shadow: 0 25px 35px rgba(0, 0, 0, 0.7);
  animation: guideModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes guideModalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.guide-modal-header {
  padding: 12px 16px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.guide-modal-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}
.guide-modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.guide-modal-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Accordion Common */
.guide-acc-group {
  border: 1px solid #334155;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #1e293b;
}

.guide-acc-item {
  border-bottom: 1px solid #334155;
  display: flex;
  flex-direction: column;
}
.guide-acc-item:last-child {
  border-bottom: none;
}

.guide-acc-header {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}
.guide-acc-header:hover {
  background: rgba(255, 255, 255, 0.02);
}
.guide-acc-item.open .guide-acc-header {
  background: rgba(59, 130, 246, 0.08);
  border-bottom: 1px solid #334155;
}

.guide-acc-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.guide-channel-tag {
  font-size: 0.62rem;
  font-weight: 700;
  color: #38bdf8;
}
.guide-acc-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.guide-acc-sub {
  font-size: 0.68rem;
  color: #94a3b8;
}
.guide-acc-arrow {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 800;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}
.guide-acc-item.open .guide-acc-arrow {
  transform: rotate(90deg);
  color: #3b82f6;
}

.guide-acc-panel {
  display: none;
  padding: 12px;
  background: #0f172a;
  flex-direction: column;
  gap: 10px;
}
.guide-acc-item.open .guide-acc-panel {
  display: flex;
}

/* 16:9 Video Player Box */
.guide-player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #334155;
}
.guide-player-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Chapter Fast-Jump Pills */
.guide-chaps-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.guide-chaps-scroll::-webkit-scrollbar {
  display: none;
}
.guide-chap-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.guide-chap-btn:active {
  transform: scale(0.97);
}
.guide-chap-btn.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.guide-chap-time {
  font-family: monospace;
  font-size: 0.62rem;
  opacity: 0.75;
}

/* Points Card */
.guide-point-box {
  background: rgba(30, 41, 59, 0.6);
  border-left: 3px solid #3b82f6;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
.guide-point-box strong {
  color: #fff;
}

/* Style Tabs (Starter Guide) */
.guide-style-pills-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
  flex-shrink: 0;
}
.guide-style-pills-row::-webkit-scrollbar {
  display: none;
}
.guide-style-pill {
  background: #1e293b;
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.guide-style-pill.active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

/* Chapter 2-layer accordion (2A style) */
.guide-chap-wrapper {
  border: 1px solid #334155;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #1e293b;
  margin-bottom: 8px;
}
.guide-chap-wrapper:last-child {
  margin-bottom: 0;
}
.guide-chap-header {
  padding: 11px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: #1e293b;
  user-select: none;
}
.guide-chap-wrapper.open .guide-chap-header {
  border-bottom: 1px solid #334155;
  background: #243248;
}
.guide-chap-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}
.guide-chap-badge {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 10px;
  background: #334155;
  color: #94a3b8;
  font-weight: 600;
}
.guide-chap-arrow {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 800;
  transition: transform 0.2s ease;
}
.guide-chap-wrapper.open .guide-chap-arrow {
  transform: rotate(90deg);
  color: #3b82f6;
}
.guide-chap-body {
  display: none;
  background: #0f172a;
  padding: 8px;
}
.guide-chap-wrapper.open .guide-chap-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
