/* ═══════════════════════════════════════════════════════════
   STS TV — Design System v1.0
   Premium dark theme · Glassmorphism · Mobile-first
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand */
  --sts-blue: #1e40af;
  --sts-blue-light: #3b82f6;
  --sts-orange: #ff6b35;
  --sts-orange-hover: #ff8f5e;
  --sts-orange-glow: rgba(255, 107, 53, 0.35);

  /* Dark Theme */
  --bg-primary: #0b0f1a;
  --bg-secondary: #111827;
  --bg-card: #1a2236;
  --bg-card-hover: #1e2a42;
  --bg-glass: rgba(26, 34, 54, 0.65);
  --bg-glass-border: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: var(--sts-orange);

  /* Utility */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px var(--sts-orange-glow);
  --shadow-subtle: 0 2px 12px rgba(0, 0, 0, 0.15);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container: 780px;
  --container-wide: 1100px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--sts-blue-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sts-orange); }
img { max-width: 100%; height: auto; display: block; }

/* ── Container ────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 20px; }

/* ── Scroll Progress Bar ──────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 100;
  height: 3px; background: linear-gradient(90deg, var(--sts-orange), var(--sts-blue-light));
  width: 0%; transition: width 0.1s linear;
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 90;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid var(--bg-glass-border);
  padding: 12px 0;
}

.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container-wide); margin: 0 auto; padding: 0 20px;
}

.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700; color: var(--text-primary);
  text-decoration: none;
}

.navbar-brand img { width: 36px; height: 36px; border-radius: 8px; }

.navbar-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sts-orange); color: #fff;
  padding: 9px 18px; border-radius: var(--radius-full);
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.navbar-cta:hover {
  background: var(--sts-orange-hover); color: #fff;
  transform: translateY(-1px); box-shadow: var(--shadow-glow);
}

/* ── Breadcrumbs ──────────────────────────────────────────── */
.breadcrumbs {
  padding: 16px 0 8px;
  font-size: 0.82rem; color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--sts-orange); }
.breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }

/* ── Compact Hero ─────────────────────────────────────────── */
.page-hero {
  padding: 32px 0 28px;
  background: linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--bg-glass-border);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.25);
  padding: 5px 14px; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; color: var(--sts-orange);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px;
}
.hero-badge i { font-size: 0.7rem; }

.page-hero h1 {
  font-size: clamp(1.35rem, 5.5vw, 1.75rem); font-weight: 800;
  line-height: 1.25; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--sts-blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 0.8rem; color: var(--text-secondary);
}
.hero-meta span { display: flex; align-items: center; gap: 5px; }
.hero-meta i { color: var(--sts-orange); font-size: 0.75rem; }

/* ── Reading Time + TOC ───────────────────────────────────── */
.reading-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; margin: 4px 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.8rem; color: var(--text-muted);
}
.reading-bar i { color: var(--sts-blue-light); }

/* ── Table of Contents ────────────────────────────────────── */
.toc {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 40px 0 32px;
}
.toc-title {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-secondary);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.toc-title i { color: var(--sts-orange); }
.toc ol { list-style: none; counter-reset: toc-counter; padding: 0; }
.toc li {
  counter-increment: toc-counter;
  padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,0.03);
}
.toc li:last-child { border-bottom: none; }
.toc li::before {
  content: counter(toc-counter) ".";
  color: var(--sts-orange); font-weight: 700;
  margin-right: 8px; font-size: 0.85rem;
}
.toc a {
  color: var(--text-secondary); font-size: 0.9rem;
  transition: color var(--transition);
}
.toc a:hover { color: var(--sts-orange); }

/* ── Article Content ──────────────────────────────────────── */
.article-content { padding: 0 0 40px; }

.article-content h2 {
  font-size: 1.4rem; font-weight: 800;
  margin: 40px 0 16px; padding-top: 12px;
  color: var(--text-primary);
  border-left: 4px solid var(--sts-orange);
  padding-left: 16px;
}

.article-content h3 {
  font-size: 1.15rem; font-weight: 700;
  margin: 28px 0 12px; color: var(--text-primary);
}

.article-content p {
  margin-bottom: 18px; color: var(--text-secondary);
  font-size: 1rem; line-height: 1.8;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 20px; color: var(--text-secondary);
}
.article-content li { margin-bottom: 8px; line-height: 1.7; }
.article-content li::marker { color: var(--sts-orange); }

.article-content strong { color: var(--text-primary); font-weight: 600; }

/* ── Pro Tip Box ──────────────────────────────────────────── */
.pro-tip {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(30, 64, 175, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  position: relative;
}
.pro-tip::before {
  content: '💡';
  position: absolute; top: -12px; left: 18px;
  background: var(--bg-primary);
  padding: 0 8px; font-size: 1.1rem;
}
.pro-tip-title {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--sts-blue-light);
  margin-bottom: 8px;
}
.pro-tip p { margin-bottom: 0; font-size: 0.92rem; }

/* ── Warning Box ──────────────────────────────────────────── */
.warning-box {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(220, 38, 38, 0.06));
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  position: relative;
}
.warning-box::before {
  content: '⚠️';
  position: absolute; top: -12px; left: 18px;
  background: var(--bg-primary); padding: 0 8px; font-size: 1.1rem;
}
.warning-box-title {
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--sts-orange);
  margin-bottom: 8px;
}

/* ── Steps (Numbered Guide) ───────────────────────────────── */
.steps { margin: 28px 0; }
.step {
  display: flex; gap: 18px;
  padding: 20px; margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.step:hover {
  border-color: rgba(255, 107, 53, 0.2);
  transform: translateX(4px);
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--sts-orange), #e85d26);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; color: #fff;
}
.step-content h4 {
  font-size: 1rem; font-weight: 700; margin-bottom: 4px;
  color: var(--text-primary);
}
.step-content p { margin: 0; font-size: 0.9rem; color: var(--text-secondary); }

/* ── Feature Grid ─────────────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 24px 0;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--transition);
  text-align: center;
}
.feature-card:hover {
  border-color: rgba(255, 107, 53, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.feature-icon {
  font-size: 1.8rem; margin-bottom: 10px;
  display: block;
}
.feature-card h4 {
  font-size: 0.92rem; font-weight: 700;
  margin-bottom: 4px; color: var(--text-primary);
}
.feature-card p {
  font-size: 0.82rem; color: var(--text-muted);
  margin: 0; line-height: 1.5;
}

/* ── Comparison Table ─────────────────────────────────────── */
.comparison-table {
  width: 100%; border-collapse: collapse;
  margin: 24px 0;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--bg-glass-border);
}
.comparison-table th {
  background: rgba(255, 107, 53, 0.1);
  color: var(--sts-orange); font-weight: 700;
  padding: 12px 16px; text-align: left; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.comparison-table td {
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.9rem; color: var(--text-secondary);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: rgba(255, 107, 53, 0.03); }
.comparison-table .check { color: #22c55e; font-weight: 700; }
.comparison-table .cross { color: #ef4444; }

/* ── Inline CTA Banner ────────────────────────────────────── */
.cta-inline {
  background: linear-gradient(135deg, var(--sts-blue), var(--sts-blue-light));
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin: 32px 0;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-inline::before {
  content: ''; position: absolute;
  top: -50%; right: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inline h3 {
  font-size: 1.2rem; font-weight: 800;
  color: #fff; margin-bottom: 8px;
  position: relative;
}
.cta-inline p {
  font-size: 0.9rem; color: rgba(255,255,255,0.8);
  margin-bottom: 16px; position: relative;
}
.cta-inline .btn-cta { position: relative; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sts-orange); color: #fff;
  padding: 13px 28px; border-radius: var(--radius-full);
  font-size: 0.92rem; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase; letter-spacing: 0.5px;
  box-shadow: 0 4px 16px var(--sts-orange-glow);
}
.btn-cta:hover {
  background: var(--sts-orange-hover); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--sts-orange-glow);
}
.btn-cta i { font-size: 0.85rem; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  border: 2px solid var(--sts-blue-light);
  color: var(--sts-blue-light);
  padding: 11px 24px; border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 600;
  text-decoration: none; transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--sts-blue-light); color: #fff;
}

/* ── Author Card ──────────────────────────────────────────── */
.author-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 24px; margin: 40px 0;
  transition: all var(--transition);
}
.author-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 53, 0.2);
  box-shadow: var(--shadow-card);
}
.author-avatar {
  flex-shrink: 0; width: 72px; height: 72px;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--sts-orange);
  box-shadow: 0 0 15px var(--sts-orange-glow);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 {
  font-size: 1.05rem; font-weight: 800; color: var(--text-primary);
  margin-bottom: 6px;
}
.author-info h4 span {
  font-size: 0.75rem; font-weight: 500; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px; margin-right: 6px;
}
.author-info p {
  font-size: 0.92rem; color: var(--text-secondary); margin: 0; line-height: 1.6;
}
@media (max-width: 640px) {
  .author-card { flex-direction: column; text-align: center; gap: 16px; padding: 20px; }
}

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-section { margin: 40px 0; }
.faq-section h2 {
  border-left: none; padding-left: 0;
  text-align: center; margin-bottom: 24px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(255, 107, 53, 0.15); }

.faq-question {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
  padding: 16px 20px;
  background: none; border: none; cursor: pointer;
  color: var(--text-primary); font-size: 0.95rem;
  font-weight: 600; text-align: left;
  font-family: inherit;
  transition: color var(--transition);
}
.faq-question:hover { color: var(--sts-orange); }
.faq-question i {
  color: var(--sts-orange); font-size: 0.7rem;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item.open .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer-inner {
  padding: 0 20px 16px;
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7;
}

/* ── Related Pages ────────────────────────────────────────── */
.related-section {
  padding: 40px 0;
  border-top: 1px solid var(--bg-glass-border);
}
.related-section h2 {
  border-left: none; padding-left: 0;
  text-align: center; font-size: 1.3rem;
  margin-bottom: 24px;
}

.related-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 12px;
}
.related-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-decoration: none;
  transition: all var(--transition);
}
.related-card:hover {
  border-color: rgba(255, 107, 53, 0.25);
  transform: translateX(6px);
  box-shadow: var(--shadow-card);
}
.related-card-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(255,107,53,0.05));
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--sts-orange);
}
.related-card h4 {
  font-size: 0.92rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 2px;
}
.related-card p {
  font-size: 0.78rem; color: var(--text-muted); margin: 0;
}

/* ── Sticky Bottom CTA ────────────────────────────────────── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: linear-gradient(135deg, var(--sts-orange), #e85d26);
  padding: 12px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.sticky-cta.visible { transform: translateY(0); }

.sticky-cta-inner {
  max-width: var(--container-wide); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sticky-cta-text {
  font-size: 0.85rem; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sticky-cta-text small { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.85; }
.sticky-cta .btn-white {
  flex-shrink: 0;
  background: #fff; color: #1a1a1a;
  padding: 9px 20px; border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 700;
  text-decoration: none; transition: all var(--transition);
  white-space: nowrap;
}
.sticky-cta .btn-white:hover { background: #f0f0f0; transform: translateY(-1px); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-glass-border);
  padding: 32px 0 24px;
  text-align: center;
}
.footer-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; margin-bottom: 16px;
  font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
}
.footer-logo img { width: 32px; height: 32px; border-radius: 6px; }
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 16px;
  margin-bottom: 16px;
}
.footer-links a {
  font-size: 0.82rem; color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--sts-orange); }

.footer-disclaimer {
  font-size: 0.72rem; color: var(--text-muted);
  max-width: 600px; margin: 0 auto; line-height: 1.6;
}
.footer-copy {
  margin-top: 16px; font-size: 0.72rem; color: var(--text-muted);
}

/* ── Animations ───────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeIn 0.5s ease forwards; }

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 640px) {
  .page-hero h1 { font-size: 2rem; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .page-hero h1 { font-size: 2.2rem; }
  .article-content h2 { font-size: 1.55rem; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .sticky-cta-text small { display: inline; }
}

@media (min-width: 1024px) {
  .page-hero { padding: 40px 0 32px; }
  .page-hero h1 { font-size: 2.4rem; }
}

/* ── Reklama label ────────────────────────────────────────── */
.ad-label {
  font-size: 0.6rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 2px;
  text-align: center; margin-top: 6px; opacity: 0.6;
}

/* ── Statistics Counter ───────────────────────────────────── */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin: 24px 0;
}
.stat-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  padding: 16px; text-align: center;
}
.stat-value {
  font-size: 1.5rem; font-weight: 800;
  color: var(--sts-orange);
  display: block;
}
.stat-label {
  font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ── Highlight Quote ──────────────────────────────────────── */
.highlight-quote {
  border-left: 4px solid var(--sts-orange);
  background: rgba(255, 107, 53, 0.05);
  padding: 18px 22px;
  margin: 24px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
}
