:root {
  /* Color Palette - Dark Theme */
  --bg-dark: #050810;
  --bg-card: rgba(18, 24, 38, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.7);
  
  --accent-primary: #FFB400; /* Gold */
  --accent-glow: rgba(255, 180, 0, 0.3);
  --accent-blue: #38bdf8;
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(16px);
  
  --font-main: 'Inter', sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(20, 30, 60, 0.6) 0%, transparent 50%),
    radial-gradient(circle at 85% 85%, rgba(40, 20, 10, 0.4) 0%, transparent 50%);
  color: var(--text-main);
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.wrapper {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Header / Navigation */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-blue);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.back-link:hover {
  gap: 12px;
  color: var(--accent-primary);
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 12px;
  margin: 20px 0;
}

.lang-btn {
  padding: 8px 18px;
  border-radius: 8px;
  background: rgba(255, 180, 0, 0.1);
  border: 1px solid rgba(255, 180, 0, 0.3);
  color: #FFB400;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  background: rgba(255, 180, 0, 0.2);
  border-color: #FFB400;
  transform: translateY(-2px);
}


/* Blog Article Styling */
.blog-article {
  display: flex;
  flex-direction: column;
  gap: 24px;
  line-height: 1.8;
}

/* Blog Post Title */
.blog-post-title {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  background: linear-gradient(to right, #fff, #94a3b8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Blog Post Meta Information */
.blog-post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.blog-post-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Paragraphs */
.blog-article p {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Headings */
.blog-article h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.blog-article h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.blog-article h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--text-main);
}

/* Blockquotes */
.blog-article blockquote,
.quote {
  border-left: 4px solid var(--accent-primary);
  background: rgba(255, 180, 0, 0.05);
  padding: 24px;
  padding-left: 20px;
  margin: 32px 0;
  border-radius: 4px;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.8;
}

/* Lists */
.blog-article ul,
.blog-article ol {
  margin: 24px 0;
  padding-left: 24px;
}

.blog-article li {
  margin-bottom: 12px;
  color: var(--text-main);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Ordered List */
.blog-article ol {
  list-style-type: decimal;
}

/* Unordered List */
.blog-article ul {
  list-style-type: disc;
}

/* Code Blocks */
.blog-article pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-family: var(--font-code);
  font-size: 0.9rem;
}

.blog-article code {
  color: var(--accent-blue);
  font-family: var(--font-code);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.blog-article pre code {
  background: none;
  padding: 0;
  color: var(--text-main);
}

/* Images */
.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 32px 0;
  border: 1px solid var(--border-light);
}

/* Links */
.blog-article a {
  color: var(--accent-blue);
  text-decoration: underline;
  transition: var(--transition);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

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

/* Horizontal Rule */
.blog-article hr {
  border: none;
  height: 1px;
  background: var(--border-light);
  margin: 40px 0;
}

/* Tables */
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  overflow: hidden;
}

.blog-article th {
  background: rgba(255, 180, 0, 0.1);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border-light);
  color: var(--accent-primary);
}

.blog-article td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-main);
}

.blog-article tr:last-child td {
  border-bottom: none;
}

/* Inline Elements */
.blog-article strong,
.blog-article b {
  font-weight: 600;
  color: var(--accent-primary);
}

.blog-article em,
.blog-article i {
  font-style: italic;
  color: var(--text-muted);
}

/* Background Callouts */
.callout {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  border-left: 4px solid var(--accent-blue);
}

.callout-title {
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.callout p {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 30px 16px;
  }

  .wrapper {
    gap: 30px;
  }

  .blog-post-title {
    font-size: 1.8rem;
  }

  .blog-article h2 {
    font-size: 1.5rem;
    margin-top: 32px;
  }

  .blog-article h3 {
    font-size: 1.2rem;
    margin-top: 24px;
  }

  .blog-article p {
    font-size: 1rem;
  }

  .blog-article blockquote,
  .quote {
    font-size: 1rem;
    padding: 20px;
    padding-left: 16px;
  }

  .back-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 600px) {
  body {
    padding: 20px 12px;
  }

  .wrapper {
    gap: 24px;
  }

  .blog-post-title {
    font-size: 1.5rem;
  }

  .blog-article h2 {
    font-size: 1.3rem;
  }

  .blog-post-meta {
    font-size: 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .blog-post-meta span {
    flex-basis: 100%;
  }

  .blog-article blockquote,
  .quote {
    font-size: 0.95rem;
  }

  .blog-article pre {
    font-size: 0.8rem;
    padding: 16px;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    padding: 0;
  }

  .header {
    display: none;
  }

  .blog-article {
    color: black;
  }

  .blog-post-title {
    color: black;
    background: none;
    -webkit-text-fill-color: unset;
  }

  a {
    color: #0066cc;
  }
}
