/* ── DoneAgo Blog — Shared Stylesheet ── */

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

:root {
  --bg:        #111111;
  --surface:   #1c1c1c;
  --surface2:  #262626;
  --border:    #2e2e2e;
  --border2:   #383838;
  --text:      #F5F5F5;
  --text-2:    #E5E5E5;
  --text-3:    #A3A3A3;
  --text-4:    #6B6B6B;
  --royal:     #6366F1;
  --royal-l:   #818CF8;
  --royal-dim: rgba(99,102,241,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text-2);
  overflow-x: hidden;
  padding-top: 69px;
  -webkit-font-smoothing: antialiased;
}

.wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrapper--wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}


/* ════════════════════════════════════
   BLOG INDEX PAGE
════════════════════════════════════ */

.blog-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}

.blog-hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--royal-l);
  margin-bottom: 12px;
  font-family: 'DM Mono', monospace;
}

.blog-hero h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.15;
}

.blog-hero-sub {
  font-size: 15px;
  color: var(--text-3);
  max-width: 480px;
  line-height: 1.7;
  font-weight: 300;
}

/* ── Post Grid ── */
.posts-grid {
  padding: 48px 0 96px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .15s;
}

.post-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
}

.post-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
}

.post-card-thumb-placeholder i {
  font-size: 36px;
  color: var(--text-4);
}

.post-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-card-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--royal-l);
  font-family: 'DM Mono', monospace;
}

.post-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -.01em;
}

.post-card-excerpt {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
  flex: 1;
}

.post-card-meta {
  font-size: 11px;
  color: var(--text-4);
  font-family: 'DM Mono', monospace;
  margin-top: 4px;
}


/* ════════════════════════════════════
   BLOG ARTICLE PAGE
════════════════════════════════════ */

/* ── Article Header ── */
.article-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.article-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--royal-l);
  font-family: 'DM Mono', monospace;
  margin-bottom: 16px;
}

.article-header h1 {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 640px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-meta-item {
  font-size: 12px;
  color: var(--text-4);
  font-family: 'DM Mono', monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-meta-item i {
  font-size: 14px;
}

.article-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border2);
}

/* ── Article Body ── */
.article-body {
  padding: 56px 0 96px;
}

.article-body p {
  font-size: 16px;
  color: var(--text-3);
  line-height: 1.85;
  margin-bottom: 24px;
  max-width: 660px;
}

.article-body p strong {
  color: var(--text-2);
  font-weight: 500;
}

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

/* ── Section Headings ── */
.article-section {
  margin-top: 64px;
  margin-bottom: 0;
}

.article-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-4);
  font-family: 'DM Mono', monospace;
  margin-bottom: 10px;
}

.article-section h2 {
  font-size: clamp(20px, 3.5vw, 26px);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.25;
  margin-bottom: 28px;
  max-width: 600px;
}

/* ── Pull Quote ── */
.pull-quote {
  border-left: 3px solid var(--royal);
  padding: 6px 0 6px 22px;
  margin: 36px 0;
  max-width: 580px;
}

.pull-quote p {
  font-size: 18px !important;
  font-weight: 500;
  color: var(--text-2) !important;
  line-height: 1.65 !important;
  margin-bottom: 0 !important;
  font-style: italic;
}

/* ── Article Images ── */
.article-img {
  margin: 40px 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.article-img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.article-img-placeholder {
  width: 100%;
  aspect-ratio: 16 / 8;
  background: var(--surface2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.article-img-placeholder i {
  font-size: 32px;
  color: var(--text-4);
}

.article-img-placeholder span {
  font-size: 11px;
  color: var(--text-4);
  font-family: 'DM Mono', monospace;
  letter-spacing: .04em;
}

.article-img-caption {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-4);
  font-family: 'DM Mono', monospace;
  border-top: 1px solid var(--border);
}

/* ── Comparison Table ── */
.comparison-wrap {
  margin: 36px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid var(--border2);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}

thead tr { background: var(--surface2); }

thead th {
  padding: 13px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: 'DM Mono', monospace;
  border-bottom: 1px solid var(--border2);
}

thead th:last-child { color: var(--royal-l); }

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface); }

tbody td {
  padding: 12px 16px;
  color: var(--text-3);
  vertical-align: middle;
  line-height: 1.5;
}

tbody td:first-child {
  color: var(--text-2);
  font-weight: 500;
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.check-yes  { background: rgba(34,197,94,0.12);  color: #22C55E; }
.check-no   { background: rgba(239,68,68,0.10);  color: #EF4444; }
.check-some { background: rgba(234,179,8,0.10);  color: #EAB308; }

/* ── App Screenshots Row ── */
.screenshots-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 36px 0;
}

.screenshot-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface2);
}

.screenshot-item img {
  width: 100%;
  display: block;
}

.screenshot-item-placeholder {
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
}

.screenshot-item-placeholder i {
  font-size: 28px;
  color: var(--text-4);
}

.screenshot-item-placeholder span {
  font-size: 10px;
  color: var(--text-4);
  font-family: 'DM Mono', monospace;
  text-align: center;
  letter-spacing: .04em;
}

@media (max-width: 480px) {
  .screenshots-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .screenshots-row .screenshot-item:last-child {
    display: none;
  }
}

/* ── CTA Block ── */
.article-cta {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 16px;
  padding: 32px 28px;
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 580px;
}

.article-cta-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--royal-l);
  font-family: 'DM Mono', monospace;
}

.article-cta h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.3;
}

.article-cta p {
  font-size: 14px !important;
  color: var(--text-3) !important;
  line-height: 1.7 !important;
  margin-bottom: 0 !important;
  max-width: none !important;
}

.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  font-size: 14px;
  font-weight: 500;
  margin-top: 4px;
  align-self: flex-start;
  transition: opacity .2s, transform .15s;
}

.article-cta-btn:hover { opacity: .85; transform: translateY(-1px); }
.article-cta-btn i { font-size: 18px; }

/* ── Back to Blog ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
  font-weight: 500;
  padding: 20px 0;
  transition: color .2s;
}

.back-link:hover { color: var(--text); }
.back-link i { font-size: 16px; }

/* ── Fade in animation ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.article-header > * { animation: fadeUp .5s ease both; }
.article-header > *:nth-child(1) { animation-delay: .05s; }
.article-header > *:nth-child(2) { animation-delay: .12s; }
.article-header > *:nth-child(3) { animation-delay: .19s; }
.article-header > *:nth-child(4) { animation-delay: .26s; }

.blog-hero > * { animation: fadeUp .5s ease both; }
.blog-hero > *:nth-child(1) { animation-delay: .05s; }
.blog-hero > *:nth-child(2) { animation-delay: .12s; }
.blog-hero > *:nth-child(3) { animation-delay: .19s; }

/* ── Mobile ── */
@media (max-width: 600px) {
  body { font-size: 15px; }

  .article-header { padding: 48px 0 36px; }
  .article-body { padding: 40px 0 72px; }
  .article-body p { font-size: 15px; line-height: 1.8; }
  .article-section { margin-top: 48px; }
  .article-cta { padding: 24px 20px; }
  .pull-quote p { font-size: 16px !important; }

  .posts-grid { padding: 36px 0 72px; grid-template-columns: 1fr; }
  .blog-hero { padding: 48px 0 40px; }

  .comparison-wrap { border-radius: 10px; }
}
