/* =========================================
   TOK FAST BLOG — blog.css
   Minimal soft light fashion design
   ========================================= */

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

:root {
  --bg:        #f7d6d6;       /* soft pastel pink matching the shop */
  --surface:   #ffffff;       /* clean white cards */
  --surface2:  #f0eaea;       /* slight grey-pink for image placeholders */
  --border:    rgba(0, 0, 0, 0.15); /* minimal thin borders */
  --accent:    #000000;       /* pure black */
  --accent2:   #333333;       /* dark grey */
  --text:      #111111;
  --muted:     #555555;
  --radius:    0px;           /* sharp minimal edges */
  --font-head: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
.blog-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 214, 214, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: block;
  text-decoration: none;
}
.site-logo {
  height: 24px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--text);
  padding: 4px 10px;
}

/* ── HERO ── */
.blog-hero {
  position: relative;
  padding: 100px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-inner { position: relative; z-index: 1; }

.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  padding: 6px 16px;
  margin-bottom: 28px;
}

.blog-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  color: var(--text);
}

.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-glow {
  display: none;
}

/* ── FILTER BAR ── */
.filter-bar {
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 0;
  scrollbar-width: none;
}
.filter-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 16px 20px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.filter-btn:hover { color: var(--text); }

.filter-btn.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* ── MAIN / GRID ── */
.blog-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* ── ARTICLE CARD ── */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.card-img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface2);
  position: relative;
  border-bottom: 1px solid var(--border);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .card-img-wrap img { transform: scale(1.05); }

.card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: var(--surface2);
}

.card-source-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--text);
  padding: 4px 10px;
}

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

.card-date {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-cta {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: gap 0.2s;
}

.article-card:hover .card-cta { gap: 10px; }

/* ── LOADING ── */
.loading-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--muted);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── ERROR ── */
.error-state {
  text-align: center;
  padding: 80px 24px;
}

.error-icon { font-size: 48px; margin-bottom: 16px; }

.error-state h2 {
  font-family: var(--font-head);
  font-size: 24px;
  margin-bottom: 8px;
}

.error-state p { color: var(--muted); margin-bottom: 24px; }

.retry-btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.2s;
}

.retry-btn:hover { 
  background: var(--text); 
  color: var(--bg); 
}

/* ── FOOTER ── */
.blog-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}

.footer-logo {
  margin-bottom: 16px;
}
.footer-logo .site-logo {
  height: 32px;
  margin: 0 auto;
}

.footer-inner > p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-copy {
  font-size: 12px;
  color: rgba(0,0,0,0.4);
}

/* ── HIDDEN ── */
.hidden { display: none !important; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .articles-grid { grid-template-columns: 1fr; }
  .blog-hero { padding: 60px 20px 50px; }
  .nav-badge { display: none; }
}
