/* ============================================
   Press-News.org - Light Fintech Style
   ============================================ */

:root {
  --primary: #FFFFFF;
  --primary-light: #F8FAFC;
  --accent: #6366F1;
  --accent-hover: #4F46E5;
  --accent-light: #EEF2FF;
  --accent-dim: rgba(99, 102, 241, 0.08);
  --accent-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  --text: #1E293B;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --bg: #F1F5F9;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFBFF;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --border-accent: #C7D2FE;
  --green: #10B981;
  --green-light: #ECFDF5;
  --red: #EF4444;
  --blue: #3B82F6;
  --blue-light: #EFF6FF;
  --yellow: #F59E0B;
  --yellow-light: #FFFBEB;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition: 0.2s ease;
  --max-width: 1280px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

/* ---- Layout ---- */
.site-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

@media (max-width: 968px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Header / Navbar ---- */
header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.logo svg, .logo img {
  height: 28px;
  width: auto;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent-gradient);
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.logo-text {
  font-weight: 700;
}

.logo-text span {
  color: var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

nav a:hover {
  color: var(--text);
  background: var(--bg);
}

nav a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-cta {
  background: var(--accent-gradient) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  border-radius: 100px !important;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }
  nav.open { display: flex; }
  nav a { width: 100%; text-align: center; }
}

/* ---- Search Bar ---- */
.search-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.search-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 12px;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.875rem;
  color: var(--text);
  background: var(--primary-light);
  transition: all var(--transition);
  outline: none;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  background: var(--bg-white);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-btn {
  padding: 10px 24px;
  background: var(--accent-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.search-btn:hover {
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ---- Ticker Bar ---- */
.ticker-bar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  overflow: hidden;
}

.ticker-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ticker-label {
  background: var(--accent-gradient);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.65rem;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.ticker-items {
  display: flex;
  gap: 32px;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-items a {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.ticker-items a:hover {
  color: var(--accent);
}

/* ---- Category Pills ---- */
.categories-bar {
  padding: 16px 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
}

.categories-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.categories-inner::-webkit-scrollbar { display: none; }

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--bg-white);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.cat-pill:hover, .cat-pill.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1);
}

.cat-pill-icon {
  font-size: 0.9rem;
}

/* ---- Section Headers ---- */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.section-header a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* ---- Article Cards ---- */
.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.article-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.article-card-inner {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.article-card-img {
  flex-shrink: 0;
  width: 200px;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}

.article-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-img img {
  transform: scale(1.05);
}

.article-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.article-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.article-card-category {
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-card-date {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card h2 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.article-card h2 a {
  color: inherit;
  text-decoration: none;
}

.article-card h2 a:hover {
  color: var(--accent);
}

.article-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
}

.read-more {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.read-more:hover { gap: 8px; }

@media (max-width: 600px) {
  .article-card-inner {
    flex-direction: column;
    padding: 16px;
  }
  .article-card-img {
    width: 100%;
    height: 180px;
  }
}

/* ---- Featured / Hero Card ---- */
.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 8px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.featured-card .article-card-inner {
  padding: 28px;
}

.featured-card h2 {
  font-size: 1.35rem;
}

.featured-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.featured-label {
  background: var(--accent-gradient);
  color: #FFFFFF;
  padding: 3px 12px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- Single Article Page ---- */
.article-single {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.article-single h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 16px 0;
  letter-spacing: -0.03em;
}

.article-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-single-subtitle {
  font-size: 1rem;
  color: var(--accent-hover);
  font-style: italic;
  background: var(--accent-light);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  margin-bottom: 24px;
  line-height: 1.6;
}

.article-single-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  max-width: 100%;
}

.article-single-image img {
  width: 100%;
  border-radius: var(--radius);
}

.article-single-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
}

.article-single-body p {
  margin-bottom: 16px;
}

.article-single-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(99, 102, 241, 0.3);
}

.article-single-body a:hover {
  text-decoration-color: var(--accent);
}

.article-single-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-single-body h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--accent-gradient);
  border-radius: 2px;
  flex-shrink: 0;
}

.article-single-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin: 28px 0 12px;
}

.article-single-body ul,
.article-single-body ol {
  margin: 0 0 20px 24px;
  line-height: 1.8;
}

.article-single-body ul li,
.article-single-body ol li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.article-single-body ul li::marker {
  color: var(--accent);
}

.article-single-body strong {
  color: var(--text);
  font-weight: 650;
}

.article-single-body em {
  font-style: italic;
  color: var(--text-secondary);
}

.article-single-body blockquote {
  border-left: 3px solid var(--accent);
  background: var(--accent-light, #EEF2FF);
  padding: 16px 20px;
  margin: 20px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .article-single {
    padding: 24px 20px;
  }
  .article-single h1 {
    font-size: 1.5rem;
  }
}

/* ---- Sidebar ---- */
aside {
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.sidebar-widget-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-widget-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.sidebar-latest-list {
  list-style: none;
}

.sidebar-latest-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-latest-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-latest-list a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  display: block;
}

.sidebar-latest-list a:hover {
  color: var(--accent);
}

.sidebar-latest-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.sidebar-contact {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.sidebar-contact a {
  color: var(--accent);
}

/* ---- Newsletter Widget ---- */
.newsletter-widget {
  background: var(--accent-light);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.newsletter-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.newsletter-widget p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.newsletter-widget input[type="email"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-white);
  margin-bottom: 10px;
  outline: none;
  transition: all var(--transition);
}

.newsletter-widget input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.newsletter-widget button {
  width: 100%;
  padding: 10px;
  background: var(--accent-gradient);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.newsletter-widget button:hover {
  opacity: 0.9;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ---- Ad Slots ---- */
.ad-slot {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot-sidebar {
  padding: 12px;
}

/* ---- Pagination ---- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 32px 0;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--bg-white);
}

.pagination a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  box-shadow: var(--shadow-sm);
}

.pagination .current {
  background: var(--accent-gradient);
  color: #FFFFFF;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.pagination .dots {
  border: none;
  min-width: auto;
  padding: 0 4px;
  color: var(--text-muted);
  background: transparent;
}

.pagination .prev-next {
  font-weight: 600;
  gap: 4px;
}

/* ---- Footer ---- */
footer {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 48px 0 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 12px;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: all var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Related Articles ---- */
.related-section {
  margin-top: 32px;
}

.related-section h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-section h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: all var(--transition);
}

.related-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.related-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.related-card h3 a {
  color: var(--text);
}

.related-card h3 a:hover {
  color: var(--accent);
}

.related-card-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---- Info Pages (About, Contact, etc.) ---- */
.info-page {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 800px;
  box-shadow: var(--shadow-sm);
}

.info-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.info-page h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
}

.info-page p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.info-page ul {
  margin: 0 0 16px 24px;
  color: var(--text-secondary);
}

.info-page ul li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.info-page a {
  color: var(--accent);
}

@media (max-width: 600px) {
  .info-page {
    padding: 24px 20px;
  }
}

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 20px 0 16px;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span {
  margin: 0 8px;
  opacity: 0.5;
}

/* ---- Stats Bar ---- */
.stats-bar {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  margin-bottom: 24px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- Status Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-green {
  background: var(--green-light);
  color: var(--green);
}

.badge-blue {
  background: var(--blue-light);
  color: var(--blue);
}

.badge-yellow {
  background: var(--yellow-light);
  color: var(--yellow);
}

.badge-red {
  background: #FEF2F2;
  color: var(--red);
}

/* ---- Utilities ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-dark { color: var(--text); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- Selection ---- */
::selection {
  background: var(--accent);
  color: #FFFFFF;
}

/* ---- Skeleton loading ---- */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg) 25%, var(--border-light) 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ---- API Documentation Styles ---- */
.api-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-xs);
}

.api-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.api-endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.api-method {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.api-method-get { background: var(--green-light); color: var(--green); }
.api-method-post { background: var(--blue-light); color: var(--blue); }
.api-method-put { background: var(--yellow-light); color: var(--yellow); }
.api-method-delete { background: #FEF2F2; color: var(--red); }

.api-url {
  color: var(--text);
}

pre.api-code {
  background: #1E293B;
  color: #E2E8F0;
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 12px 0;
}

.api-param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 12px 0;
}

.api-param-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--primary-light);
  border-bottom: 2px solid var(--border);
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.api-param-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

.api-param-table code {
  background: var(--accent-light);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

/* ============================================
   Reading Progress Bar
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ============================================
   Reading Time Badge
   ============================================ */
.article-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.article-reading-time::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 6v6l4 2'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

/* ============================================
   Table of Contents (inline)
   ============================================ */
.toc {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.toc-title {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.toc li {
  padding: 0;
}
.toc a {
  display: block;
  padding: 6px 12px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition);
  font-weight: 500;
}
.toc a:hover,
.toc a.active {
  color: var(--accent);
  background: var(--accent-dim);
  border-left-color: var(--accent);
}

/* Sticky ToC (appears on scroll) */
.toc-sticky {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 260px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  scrollbar-width: thin;
}
.toc-sticky.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
@media (max-width: 1400px) {
  .toc-sticky { display: none !important; }
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
  margin-top: 40px;
  padding: 32px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.faq-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.faq-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}
.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.faq-question {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
}
.faq-answer {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Original Source Toggle
   ============================================ */
.original-source-toggle {
  margin-top: 32px;
  padding: 20px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.original-source-toggle summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  user-select: none;
}
.original-source-toggle summary:hover {
  color: var(--accent);
}
.original-source-content {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================
   Article Attachments
   ============================================ */
.article-attachments {
  margin-top: 24px;
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--primary-light);
}

/* ============================================
   Dark Mode
   ============================================ */
[data-theme="dark"] {
  --primary: #0F172A;
  --primary-light: #1E293B;
  --accent: #818CF8;
  --accent-hover: #6366F1;
  --accent-light: rgba(129, 140, 248, 0.1);
  --accent-dim: rgba(129, 140, 248, 0.06);
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --bg: #0B1120;
  --bg-white: #1E293B;
  --bg-card: #1E293B;
  --bg-card-hover: #263044;
  --border: #334155;
  --border-light: #1E293B;
  --border-accent: rgba(129, 140, 248, 0.3);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.2);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.4);
}
[data-theme="dark"] body {
  background: var(--bg);
  color: var(--text);
}
[data-theme="dark"] .article-single-body {
  color: var(--text);
}
[data-theme="dark"] img {
  opacity: 0.92;
}

/* ============================================
   Dark Mode Toggle Button
   ============================================ */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: flex;
  align-items: center;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================
   Smooth scrolling for ToC links
   ============================================ */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
