:root {
  --bg-primary: #120f3d;
  --bg-secondary: #1a1554;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --color-yellow: #f59e0b;
  --color-yellow-hover: #d97706;
  --border-color: rgba(255, 255, 255, 0.08);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  line-height: 1.7;
  padding: 2rem 1rem;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800;900&display=swap');

.brand-title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.brand-title .text-yellow {
  background: linear-gradient(180deg, #ffffff 0%, #fcd34d 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.45));
}

.brand-title .text-white {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(226, 232, 240, 0.2));
}

.btn-back {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Index page styling */
.blog-intro {
  margin-bottom: 3rem;
}

.blog-intro h1 {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.blog-intro p {
  font-size: 1.1rem;
}

.articles-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.article-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
}

.article-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-yellow);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.article-card h2 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Article detail styling */
.article-header {
  margin-bottom: 2.5rem;
}

.article-header h1 {
  font-size: 2.8rem;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-header .meta {
  font-family: var(--font-mono);
  color: var(--color-yellow);
  font-size: 0.85rem;
}

.article-content {
  font-size: 1.05rem;
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

footer {
  margin-top: 5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Custom scrollbar styling matching main store app */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-yellow);
  border: 2px solid #000;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-yellow-hover);
}

/* Scrollbar Buttons */
::-webkit-scrollbar-button:vertical:single-button {
  background-color: var(--color-yellow);
  border: 2px solid #000;
  display: block;
  height: 14px;
  width: 14px;
}

::-webkit-scrollbar-button:vertical:single-button:hover {
  background-color: var(--color-yellow-hover);
}

::-webkit-scrollbar-button:vertical:single-button:decrement {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='black'><polygon points='50,20 20,80 80,80'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

::-webkit-scrollbar-button:vertical:single-button:increment {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='black'><polygon points='50,80 20,20 80,20'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

html {
  scrollbar-color: var(--color-yellow) var(--bg-primary);
  scrollbar-width: thin;
}

/* Mobile Responsiveness Improvements */
@media (max-width: 600px) {
  body {
    padding: 1.5rem 0.75rem;
  }
  
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .brand-title {
    font-size: 1.3rem;
  }
  
  .btn-back {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .blog-intro h1 {
    font-size: 2rem;
  }
  
  .article-header h1 {
    font-size: 1.95rem;
  }
  
  .article-card {
    padding: 1.25rem;
  }
  
  .article-card h2 {
    font-size: 1.25rem;
  }
  
  .article-content {
    font-size: 1rem;
  }
  
  .article-content h2 {
    font-size: 1.45rem;
    margin-top: 2rem;
  }
}

@media (max-width: 400px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}
