/* ==========================================================================
   DialloDev Blog & Editorial Stylesheet
   ========================================================================== */

:root {
  --bg-primary: #0a0c10;
  --bg-surface: #12161f;
  --bg-card: rgba(22, 27, 34, 0.75);
  --bg-card-hover: rgba(30, 38, 48, 0.9);
  --text-primary: #f0f6fc;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --cyan: #38bdf8;
  --purple: #a855f7;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(245, 158, 11, 0.35);
  --gradient-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #fbbf24;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-container {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1.1rem;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: 0 4px 14px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
  color: #000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: #fff;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fff;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #22bf5b;
  transform: translateY(-2px);
  color: #fff;
}

.btn-telegram {
  background: #0088cc;
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 136, 204, 0.3);
}

.btn-telegram:hover {
  background: #0077b5;
  transform: translateY(-2px);
  color: #fff;
}

/* ==========================================================================
   Hero & Header Section for Blog
   ========================================================================== */

.blog-hero {
  padding: 60px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-hero-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #f59e0b 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-hero-desc {
  max-width: 680px;
  margin: 0 auto 30px;
  color: var(--text-secondary);
  font-size: 1.15rem;
}

/* Category Filter Pills */
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--gold);
  color: #fff;
}

/* ==========================================================================
   Article Grid & Cards
   ========================================================================== */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.article-card-media {
  height: 200px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-card-media i {
  font-size: 64px;
  color: var(--gold);
  opacity: 0.85;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-media i {
  transform: scale(1.1);
}

.article-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
}

.article-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

.article-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 12px;
  color: #fff;
  transition: color 0.2s ease;
}

.article-card:hover .article-card-title {
  color: var(--gold);
}

.article-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.article-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold);
}

.read-more i {
  transition: transform 0.2s ease;
}

.article-card:hover .read-more i {
  transform: translateX(4px);
}

/* ==========================================================================
   Single Article Reading Page Styles
   ========================================================================== */

.article-header {
  padding: 50px 0 30px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.article-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
}

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

/* Article Content Typography */
.article-content {
  font-size: 1.12rem;
  line-height: 1.85;
  color: #d1d5db;
}

.article-content h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  margin: 44px 0 18px;
  letter-spacing: -0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin: 32px 0 14px;
}

.article-content p {
  margin-bottom: 24px;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 28px;
}

.article-content li {
  margin-bottom: 10px;
}

.article-content strong {
  color: #fff;
}

.article-content blockquote {
  background: rgba(245, 158, 11, 0.06);
  border-left: 4px solid var(--gold);
  padding: 18px 24px;
  border-radius: 0 12px 12px 0;
  margin: 30px 0;
  color: #f3f4f6;
  font-style: italic;
}

/* Key takeaways & Tip Boxes */
.tip-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 14px;
  padding: 22px;
  margin: 30px 0;
}

.tip-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.warning-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 14px;
  padding: 22px;
  margin: 30px 0;
}

.warning-box-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

/* Code Snippets */
pre code {
  display: block;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #58a6ff;
  overflow-x: auto;
  margin: 24px 0;
  line-height: 1.5;
}

code {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  color: #fca5a5;
}

/* Table of Contents */
.toc-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 36px;
}

.toc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list li {
  margin-bottom: 8px;
}

.toc-list a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.toc-list a:hover {
  color: var(--gold);
}

/* Article CTA Box */
.article-cta-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  padding: 36px;
  margin: 50px 0;
  text-align: center;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
}

.article-cta-box h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.article-cta-box p {
  max-width: 600px;
  margin: 0 auto 24px;
  color: #e5e7eb;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Author Bio Card */
.author-bio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin: 40px 0;
  display: flex;
  gap: 20px;
  align-items: center;
}

.author-bio-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  flex-shrink: 0;
}

.author-bio-info h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.author-bio-role {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.author-bio-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Footer */
.footer {
  background: #080a0d;
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 360px;
}

.footer-col h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-hero-title {
    font-size: 2.1rem;
  }
  .article-title {
    font-size: 1.9rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .author-bio-card {
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    display: none;
  }
}
