/* ==========================================================================
   ComicReader Page Specific & Component Styles (style.css)
   ========================================================================== */

/* Hero Section */
.hero-section { padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-badge { margin-bottom: 24px; }
.hero-title { font-size: clamp(2.4rem, 4.2vw, 3.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero-desc { font-size: 1.15rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 34px; max-width: 580px; }
.hero-cta-group { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-meta-strip { display: flex; align-items: center; gap: 24px; padding-top: 24px; border-top: 1px solid var(--border-subtle); }
.meta-item { display: flex; flex-direction: column; }
.meta-num { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); }
.meta-label { font-size: 0.82rem; color: var(--text-tertiary); }
.meta-divider { width: 1px; height: 32px; background-color: var(--border-subtle); }

/* Device Mockup */
.hero-mockup-wrapper { position: relative; display: flex; justify-content: center; }
.device-mockup {
  position: relative; width: 100%; max-width: 380px; border-radius: 40px; padding: 12px;
  background: #252836; box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.device-screen { background: #121319; border-radius: 30px; overflow: hidden; height: 500px; display: flex; flex-direction: column; position: relative; }
.mockup-header-bar {
  padding: 14px 18px; background: rgba(20,22,31,0.9); display: flex; align-items: center;
  justify-content: space-between; font-size: 0.78rem; border-bottom: 1px solid var(--border-subtle);
}
.mockup-pill, .mockup-tag { color: var(--text-tertiary); font-size: 0.72rem; }
.mockup-title { font-weight: 600; color: var(--text-primary); }
.mockup-comic-canvas { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 0; background: #1c1c1e; }
.mockup-panel { flex: 1; border-bottom: 2px dashed rgba(255,255,255,0.05); position: relative; display: flex; align-items: center; justify-content: center; padding: 16px; }
.mockup-art-scene {
  width: 100%; height: 100%; background: radial-gradient(circle at center, #2e3448 0%, #171822 100%);
  border-radius: 12px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.mockup-caption { position: absolute; top: 10px; left: 12px; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); }
.mockup-speech-bubble {
  background: #fff; color: #111; padding: 8px 14px; border-radius: 14px; font-size: 0.85rem;
  font-weight: 700; box-shadow: 0 6px 16px rgba(0,0,0,0.4); position: relative; z-index: 2;
}
.mockup-bottom-hud { padding: 12px 18px; background: rgba(20,22,31,0.95); border-top: 1px solid var(--border-subtle); }
.hud-progress-bar { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; margin-bottom: 6px; overflow: hidden; }
.hud-progress-fill { height: 100%; background: var(--accent-blue); }
.hud-meta-text { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-tertiary); }

/* Features Grid */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.feature-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  padding: 34px 28px; transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.feature-icon-box { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.bg-blue { background: rgba(10, 132, 255, 0.15); color: #0a84ff; }
.bg-purple { background: rgba(191, 90, 242, 0.15); color: #bf5af2; }
.bg-amber { background: rgba(255, 159, 10, 0.15); color: #ff9f0a; }
.bg-green { background: rgba(52, 199, 89, 0.15); color: #34c759; }
.bg-red { background: rgba(255, 69, 58, 0.15); color: #ff453a; }
.bg-indigo { background: rgba(94, 92, 230, 0.15); color: #5e5ce6; }
.feature-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 12px; }
.feature-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; }

/* Interactive Showcase */
.interactive-showcase { max-width: 860px; margin: 0 auto; }
.showcase-controls {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
  background: var(--bg-surface-elevated); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 16px 24px; margin-bottom: 24px;
}
.control-group { display: flex; align-items: center; gap: 14px; }
.control-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }
.segmented-control { display: flex; background: rgba(0, 0, 0, 0.3); padding: 3px; border-radius: var(--radius-sm); }
.segment-btn {
  background: none; border: none; color: var(--text-secondary); font-size: 0.85rem; font-weight: 500;
  padding: 6px 14px; border-radius: 6px; cursor: pointer; transition: var(--transition-fast);
}
.segment-btn.active { background: var(--bg-surface-elevated); color: var(--text-primary); box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
.color-swatches { display: flex; gap: 8px; }
.swatch-btn {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.15s, border-color 0.15s;
}
.swatch-btn:hover { transform: scale(1.15); }
.swatch-btn.active { border-color: var(--accent-blue); transform: scale(1.18); }

.showcase-stage {
  border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); padding: 40px 20px 24px;
  display: flex; flex-direction: column; align-items: center; transition: background-color var(--transition-smooth);
}
.showcase-reader-frame { width: 100%; max-width: 520px; display: flex; flex-direction: column; gap: 0; transition: all var(--transition-smooth); }
.showcase-reader-frame.mode-manga { flex-direction: row-reverse; gap: 16px; }
.showcase-reader-frame.mode-western { flex-direction: row; gap: 16px; }
.reader-page { flex: 1; }
.comic-strip { display: flex; flex-direction: column; gap: 12px; }
.panel-box {
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px; padding: 24px; text-align: center; transition: var(--transition-fast);
}
.panel-tag { font-size: 0.72rem; font-weight: 700; color: var(--accent-blue); letter-spacing: 0.06em; }
.panel-box h4 { margin: 8px 0 4px; font-size: 1.05rem; }
.panel-box p { font-size: 0.85rem; color: var(--text-secondary); }
.showcase-caption-bar { margin-top: 24px; font-size: 0.85rem; color: var(--text-secondary); }

/* Library Grid */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.check-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.check-list li { position: relative; padding-left: 28px; font-size: 0.98rem; color: var(--text-secondary); }
.check-list li strong { color: var(--text-primary); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #34c759; font-weight: bold; }
.library-cards-stack { position: relative; display: flex; flex-direction: column; gap: 20px; }
.stack-card {
  display: flex; background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md); padding: 16px; gap: 20px; box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.card-cover-art { width: 90px; height: 124px; border-radius: 8px; position: relative; display: flex; align-items: flex-end; padding: 8px; }
.manga-bg-1 { background: linear-gradient(135deg, #ff7e5f, #feb47b); }
.manga-bg-2 { background: linear-gradient(135deg, #6a11cb, #2575fc); }
.card-vol-badge { background: rgba(0, 0, 0, 0.7); font-size: 0.68rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.card-info { display: flex; flex-direction: column; justify-content: center; }
.card-info h4 { font-size: 1.05rem; margin-bottom: 8px; }
.card-meta { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--text-tertiary); }
.tag-status { font-size: 0.72rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; }
.tag-status.reading { background: rgba(10, 132, 255, 0.2); color: #0a84ff; }
.tag-status.finished { background: rgba(52, 199, 89, 0.2); color: #34c759; }

/* FAQ Accordion */
.faq-accordion { display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--bg-surface-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; padding: 20px 24px;
  color: var(--text-primary); font-size: 1.05rem; font-weight: 600; display: flex;
  justify-content: space-between; align-items: center; cursor: pointer;
}
.faq-chevron { font-size: 1.4rem; font-weight: 300; color: var(--text-secondary); transition: transform var(--transition-fast); }
.faq-item.open .faq-chevron { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-answer p { padding: 0 24px 22px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* CTA Section */
.cta-section { padding: 100px 0; background: radial-gradient(circle at center, #1b2234 0%, var(--bg-main) 70%); border-top: 1px solid var(--border-subtle); }
.cta-icon { border-radius: 18px; box-shadow: 0 8px 24px rgba(0,0,0,0.5); margin-bottom: 24px; }
.cta-title { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 700; margin-bottom: 14px; }
.cta-desc { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 32px; }
.cta-foot-note { margin-top: 16px; font-size: 0.85rem; color: var(--text-tertiary); }

/* Responsive Media Queries */
@media (max-width: 900px) {
  .hero-grid, .grid-2-col, .footer-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-mockup-wrapper { order: -1; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; width: 100%;
    background: var(--bg-surface); flex-direction: column; padding: 24px; border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.active { display: flex; }
  .mobile-menu-toggle { display: flex; }
  .showcase-controls { flex-direction: column; align-items: flex-start; }
}
