*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f8f9fb;
  --white: #ffffff;
  --text: #1a1a2e;
  --text-muted: #64748b;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
  --nav-bg: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  --card-shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 10px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAV */
nav {
  background: var(--nav-bg);
  padding: 0 20px;
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }

/* MAIN */
main { flex: 1; }

/* HERO */
.hero {
  text-align: center;
  padding: 48px 20px 32px;
}
.hero h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 8px;
}
.hero p {
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

/* CONVERTER CARD */
.converter-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
}
.input-row {
  display: flex;
  gap: 10px;
}
.input-row input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.input-row input:focus { border-color: var(--accent); }
.input-row button {
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.input-row button:hover { background: var(--accent-hover); }
.input-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* STATUS */
.status {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}
.status.loading {
  background: #eff6ff;
  color: var(--accent);
}
.status.error {
  background: #fef2f2;
  color: #dc2626;
}

/* RESULT */
.result {
  margin-top: 20px;
  text-align: center;
}
.video-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  word-break: break-word;
}
.download-btn {
  display: inline-block;
  padding: 14px 36px;
  background: #10b981;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  transition: background 0.2s;
}
.download-btn:hover { background: #059669; }

/* TRANSCRIPT */
.transcript-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 16px;
}
.action-btn {
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.action-btn:hover { background: var(--accent-hover); }
.action-btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.action-btn-outline:hover {
  background: var(--accent);
  color: #fff;
}
.transcript-box {
  max-height: 400px;
  overflow-y: auto;
  text-align: left;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
}
.transcript-line {
  padding: 4px 0;
  border-bottom: 1px solid #e2e8f0;
}
.transcript-line:last-child { border-bottom: none; }
.transcript-time {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  margin-right: 8px;
}

/* FEATURES */
.features {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
.feature-card-inner { padding: 20px; }
.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 14px;
}
.feature-card a { color: var(--accent); }

/* HOW-TO */
.how-to {
  max-width: 640px;
  margin: 0 auto;
  padding: 20px 20px 48px;
}
.how-to h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}
.how-to ol {
  padding-left: 24px;
}
.how-to li {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 15px;
}

/* FOOTER */
footer {
  background: var(--nav-bg);
  padding: 20px;
}
.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
footer p {
  color: rgba(255,255,255,0.5);
  font-size: 13px;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* FAQ */
.faq-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px;
}
.faq-section h1 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 32px;
}
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 12px;
  padding: 20px;
}
.faq-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.faq-item p {
  color: var(--text-muted);
  font-size: 14px;
}

/* BLOG LISTING */
.blog-listing {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 48px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card-inner {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.blog-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card h3 a:hover { color: var(--accent); }
.blog-card .blog-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.blog-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.blog-card .read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.blog-card .read-more:hover { text-decoration: underline; }

/* BLOG ARTICLE */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}
.back-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.back-link:hover { text-decoration: underline; }
.blog-article h1 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
}
.post-meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.post-body h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.post-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 8px;
}
.post-body p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 16px;
}
.post-body ul, .post-body ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.post-body li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 6px;
  color: var(--text);
}
.post-body a { color: var(--accent); }
.post-body strong { font-weight: 600; }

/* UTILITY */
.hidden { display: none !important; }

/* MOBILE */
@media (max-width: 640px) {
  .hero h1 { font-size: 24px; }
  .input-row { flex-direction: column; }
  .input-row button { width: 100%; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .transcript-actions { flex-direction: column; }
  .action-btn { width: 100%; }
}
