/* PrimeDev Studios — Blog styles
   Standalone CSS for /blog/ static HTML articles. Mirrors the main site's
   dark theme without depending on the React app's Tailwind bundle. */

:root {
  --violet: 139 92 246;
  --purple: 168 85 247;
  --slate-950: 15 23 42;
  --slate-900: 30 41 59;
  --slate-800: 30 41 59;
  --slate-700: 51 65 85;
  --slate-400: 148 163 184;
  --slate-300: 203 213 225;
  --slate-200: 226 232 240;
  --emerald: 16 185 129;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip; /* no horizontal scroll on narrow phones */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(180deg, rgb(15 23 42) 0%, rgb(15 23 42 / 0.85) 50%, rgb(15 23 42) 100%);
  color: rgb(226 232 240);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: rgb(167 139 250);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: rgb(196 181 253);
}

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

/* ---- NAVBAR ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgb(30 41 59 / 0.6);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Match the React Navbar exactly: logo image only (no brand text), 6 links
   centered, language toggle + phone + CTA on the right. */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .nav-logo img { width: 60px; height: 60px; }
}

.nav-links {
  display: none;
  gap: 4px;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; align-items: center; }
}

.nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: rgb(203 213 225);
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.nav-link:hover {
  background: rgb(30 41 59 / 0.5);
  color: white;
}

.nav-link-active {
  background: rgb(15 23 42 / 0.7);
  border-color: rgb(139 92 246 / 0.4);
  color: white;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(30 41 59 / 0.5);
  border: 1px solid rgb(51 65 85 / 0.5);
  color: rgb(203 213 225);
  font-size: 12px;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
}

@media (min-width: 1024px) {
  .nav-phone { display: inline-flex; }
}

.nav-phone:hover {
  color: white;
  border-color: rgb(139 92 246 / 0.4);
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(15 23 42 / 0.4);
  border: 1px solid rgb(51 65 85 / 0.6);
  color: rgb(226 232 240);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color 0.15s;
}

.nav-lang:hover {
  border-color: rgb(100 116 139);
  color: white;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(139 92 246), rgb(168 85 247));
  color: white !important;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 20px -8px rgb(139 92 246 / 0.5);
  transition: transform 0.15s, box-shadow 0.15s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 25px -8px rgb(139 92 246 / 0.7);
}

/* ---- MOBILE MENU — pure CSS <details>, no JavaScript ---- */
.nav-mobile {
  display: block;
  position: relative;
}

@media (min-width: 1024px) {
  /* On desktop the inline .nav-links are shown instead */
  .nav-mobile { display: none; }
}

.nav-burger {
  list-style: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgb(30 41 59 / 0.7);
  border: 1px solid rgb(51 65 85 / 0.6);
  color: white;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.nav-burger::-webkit-details-marker { display: none; }
.nav-burger:hover { background: rgb(51 65 85 / 0.9); }

/* Swap hamburger ↔ close icon depending on open state */
.nav-burger .icon-close { display: none; }
.nav-mobile[open] .nav-burger .icon-open { display: none; }
.nav-mobile[open] .nav-burger .icon-close { display: block; }

.nav-mobile-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 260px;
  max-width: calc(100vw - 32px);
  background: rgb(15 23 42);
  border: 1px solid rgb(51 65 85 / 0.7);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  z-index: 200;
}

.nav-mobile-panel a {
  padding: 12px 14px;
  border-radius: 10px;
  color: rgb(203 213 225);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.nav-mobile-panel a:hover,
.nav-mobile-panel a:active {
  background: rgb(30 41 59 / 0.8);
  color: white;
}

.panel-divider {
  height: 1px;
  background: rgb(51 65 85 / 0.5);
  margin: 6px 4px;
}

.panel-phone {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: rgb(148 163 184) !important;
  font-size: 14px !important;
}

@media (max-width: 1023px) {
  .nav-inner { padding: 12px 16px; }
}

/* Very small phones — tighten the navbar so logo + lang + CTA + burger
   all fit without clipping. */
@media (max-width: 400px) {
  .nav-cta { padding: 8px 12px; font-size: 13px; }
  .nav-lang { padding: 6px 9px; }
  .nav-right { gap: 6px; }
}

/* ---- ARTICLE ---- */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.article-header {
  margin-bottom: 40px;
}

.breadcrumb {
  font-size: 13px;
  color: rgb(148 163 184);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgb(148 163 184);
}

.breadcrumb a:hover {
  color: rgb(196 181 253);
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgb(139 92 246 / 0.1);
  border: 1px solid rgb(139 92 246 / 0.3);
  color: rgb(196 181 253);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.article h1 {
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgb(148 163 184);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgb(30 41 59 / 0.6);
}

.article-meta span { display: inline-flex; align-items: center; gap: 6px; }

.article-lead {
  font-size: 19px;
  line-height: 1.6;
  color: rgb(203 213 225);
  margin-bottom: 32px;
}

.article h2 {
  font-size: 24px;
  font-weight: 700;
  color: white;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}

.article h3 {
  font-size: 19px;
  font-weight: 700;
  color: white;
  margin: 28px 0 12px;
}

.article p {
  margin-bottom: 16px;
  color: rgb(203 213 225);
  font-size: 16px;
}

.article ul, .article ol {
  margin: 16px 0 20px 24px;
  color: rgb(203 213 225);
}

.article li {
  margin-bottom: 8px;
}

.article strong {
  color: white;
  font-weight: 600;
}

.article blockquote {
  border-left: 3px solid rgb(139 92 246);
  padding: 12px 20px;
  margin: 24px 0;
  background: rgb(139 92 246 / 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: rgb(226 232 240);
}

.article code {
  background: rgb(30 41 59);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.9em;
  color: rgb(196 181 253);
}

/* Price table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: rgb(30 41 59 / 0.3);
  border: 1px solid rgb(51 65 85 / 0.5);
  border-radius: 12px;
  overflow: hidden;
}

.price-table th,
.price-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgb(51 65 85 / 0.5);
}

.price-table th {
  background: rgb(30 41 59 / 0.6);
  color: white;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-table tr:last-child td { border-bottom: 0; }

.price-table td:first-child {
  font-weight: 600;
  color: white;
}

/* CTA block inside article */
.cta-block {
  background: linear-gradient(135deg, rgb(30 41 59 / 0.9), rgb(15 23 42 / 0.9));
  border: 1px solid rgb(139 92 246 / 0.3);
  border-radius: 16px;
  padding: 32px 24px;
  margin: 40px 0;
  text-align: center;
}

.cta-block h3 {
  margin-top: 0;
  font-size: 22px;
}

.cta-block p {
  color: rgb(203 213 225);
  margin-bottom: 20px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(139 92 246), rgb(168 85 247));
  color: white !important;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 25px -10px rgb(139 92 246 / 0.6);
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px rgb(139 92 246 / 0.8);
  color: white !important;
}

/* Inline callout */
.callout {
  background: rgb(139 92 246 / 0.06);
  border: 1px solid rgb(139 92 246 / 0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}

.callout strong:first-child {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(196 181 253);
  margin-bottom: 8px;
}

.callout p:last-child { margin-bottom: 0; }

/* Related articles */
.related {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgb(30 41 59 / 0.6);
}

.related h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(148 163 184);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.related-card {
  display: block;
  padding: 20px;
  border-radius: 12px;
  background: rgb(30 41 59 / 0.4);
  border: 1px solid rgb(51 65 85 / 0.5);
  transition: border-color 0.2s, transform 0.15s;
}

.related-card:hover {
  border-color: rgb(139 92 246 / 0.5);
  transform: translateY(-2px);
}

.related-card .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(196 181 253);
}

.related-card .title {
  display: block;
  margin-top: 6px;
  font-weight: 600;
  color: white;
  font-size: 15px;
  line-height: 1.3;
}

/* ---- FOOTER ---- */
.footer {
  border-top: 1px solid rgb(30 41 59 / 0.6);
  padding: 32px 24px;
  text-align: center;
  color: rgb(148 163 184);
  font-size: 13px;
}

.footer a { margin: 0 8px; }

/* ---- BLOG INDEX ---- */
.blog-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px 32px;
  text-align: center;
}

.blog-hero h1 {
  font-size: 44px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.blog-hero p {
  font-size: 18px;
  color: rgb(203 213 225);
  max-width: 600px;
  margin: 0 auto;
}

.blog-list {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .blog-list { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

@media (min-width: 1024px) {
  /* 3 columns on desktop (2 rows × 3 articles) */
  .blog-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.blog-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgb(30 41 59 / 0.6), rgb(15 23 42 / 0.6));
  border: 1px solid rgb(51 65 85 / 0.5);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.blog-card:hover {
  border-color: rgb(139 92 246 / 0.5);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgb(139 92 246 / 0.4);
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgb(30 41 59);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(15 23 42 / 0.7) 0%, rgb(15 23 42 / 0.2) 50%, transparent 100%);
  pointer-events: none;
}

.blog-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card .label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgb(196 181 253);
  background: rgb(139 92 246 / 0.1);
  border: 1px solid rgb(139 92 246 / 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.blog-card h2 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.35;
}

.blog-card p {
  color: rgb(203 213 225);
  font-size: 14px;
  margin-bottom: 14px;
  line-height: 1.5;
  flex: 1;
}

.blog-card .meta {
  font-size: 12px;
  color: rgb(148 163 184);
  padding-top: 12px;
  border-top: 1px solid rgb(51 65 85 / 0.4);
}

@media (max-width: 640px) {
  .article h1 { font-size: 28px; }
  .article-lead { font-size: 17px; }
  .blog-hero h1 { font-size: 32px; }
  .blog-hero p { font-size: 16px; }
  .blog-hero { padding: 40px 16px 24px; }
  .blog-list { padding: 0 16px 48px; }
  .article { padding: 32px 16px 64px; }
}
