/* ═══════════════════════════════════════════
   BLOG.CSS — Modern blog styles
   ═══════════════════════════════════════════ */

/* ── Reading progress bar ── */
.read-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #c44dff, #ff6b9d);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── Shared tags ── */
.article-tag,
.blog-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
}
.tag-redflag    { background: rgba(255,68,68,0.15);   color: #ff4444; }
.tag-friendzone { background: rgba(79,195,247,0.15);  color: #4fc3f7; }
.tag-attraction { background: rgba(196,77,255,0.15);  color: #c44dff; }
.tag-psycho     { background: rgba(255,183,77,0.15);  color: #ffb74d; }

/* ── Buttons ── */
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, #c44dff, #ff6b9d);
  color: #fff !important;
  font-weight: 700;
  padding: 0.75rem 1.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.btn-cta:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-cta-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-outline {
  background: transparent !important;
  border: 1.5px solid rgba(196,77,255,0.5);
  color: #c44dff !important;
}
.btn-outline:hover { background: rgba(196,77,255,0.1) !important; }

/* ══════════════════════════════
   NAV
══════════════════════════════ */
.nav-blog {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(13,13,26,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  max-width: 100%;
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-blog-logo {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-blog-logo span {
  background: linear-gradient(135deg, #c44dff, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-blog-links {
  display: flex;
  gap: 0.2rem;
  margin-left: 1rem;
  flex: 1;
}
.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-link-active { color: #c44dff !important; }

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.blog-hero-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
}
.blog-hero-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c44dff;
  margin-bottom: 1rem;
}
.blog-hero-text h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}
.hero-gradient {
  background: linear-gradient(135deg, #c44dff, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.blog-hero-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 1.8rem;
}
.blog-hero-stats {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.hero-stat {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.hero-stat span {
  font-weight: 700;
  color: var(--text);
}
.hero-stat-sep { color: rgba(255,255,255,0.2); }

/* Featured card */
.featured-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1.4rem;
  padding: 1.8rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,68,68,0.06), rgba(255,152,0,0.04));
  pointer-events: none;
}
.featured-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(255,68,68,0.2);
}
.featured-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.featured-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffb74d;
  letter-spacing: 0.05em;
}
.featured-icon { font-size: 3rem; line-height: 1; }
.featured-card h2 {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  margin: 0;
}
.featured-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.featured-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-top: 0.8rem;
  border-top: 1px solid var(--card-border);
  margin-top: auto;
}
.featured-cta {
  color: #ff4444;
  font-weight: 700;
}

/* ══════════════════════════════
   FILTER TABS
══════════════════════════════ */
.blog-filters-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.blog-filters-wrap::-webkit-scrollbar { display: none; }
.blog-filters {
  display: flex;
  gap: 0.5rem;
  width: max-content;
}
.filter-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.filter-btn:hover { color: var(--text); border-color: rgba(196,77,255,0.4); }
.filter-active {
  background: linear-gradient(135deg, rgba(196,77,255,0.15), rgba(255,107,157,0.1));
  border-color: rgba(196,77,255,0.5);
  color: #c44dff;
}

/* ══════════════════════════════
   CAROUSEL
══════════════════════════════ */
.carousel-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.carousel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.carousel-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.carousel-nav { display: flex; gap: 0.5rem; }
.carousel-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  font-family: inherit;
}
.carousel-btn:hover { border-color: #c44dff; color: #c44dff; }

.carousel-track-wrap {
  overflow: hidden;
  border-radius: 1.2rem;
}
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* ── Carousel Card ── */
.ccard {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  border-radius: 1.2rem;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  min-height: 280px;
}
.ccard:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.ccard-bg {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
}
.ccard-bg-attraction { background: linear-gradient(135deg, #c44dff, #ff6b9d); }
.ccard-bg-redflag    { background: linear-gradient(135deg, #ff4444, #ff9800); }
.ccard-bg-friendzone { background: linear-gradient(135deg, #4fc3f7, #ab47bc); }
.ccard-bg-psycho     { background: linear-gradient(135deg, #ffb74d, #ff8a65); }

.ccard-content {
  position: relative;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.6rem;
}
.ccard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ccard-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.ccard-icon { font-size: 2.2rem; line-height: 1; }
.ccard-content h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
  flex: 1;
}
.ccard-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.ccard-footer {
  font-size: 0.82rem;
  font-weight: 700;
  color: #c44dff;
  margin-top: auto;
  padding-top: 0.8rem;
  border-top: 1px solid var(--card-border);
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--card-border);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.dot-active {
  background: #c44dff;
  width: 24px;
  border-radius: 4px;
}

/* ══════════════════════════════
   LIST VIEW (filtered)
══════════════════════════════ */
.blog-list-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}
.blog-list-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.blog-list-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  padding: 1.4rem 1.6rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  transition: border-color 0.2s, transform 0.2s;
}
.blog-list-card:hover { border-color: rgba(196,77,255,0.4); transform: translateX(4px); }
.blc-icon { font-size: 2.2rem; flex-shrink: 0; }
.blc-body { flex: 1; min-width: 0; }
.blc-top { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.blc-time { font-size: 0.78rem; color: var(--text-muted); }
.blc-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0 0 0.3rem; line-height: 1.35; }
.blc-body p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.blc-arrow { font-size: 1.2rem; color: var(--text-muted); flex-shrink: 0; transition: color 0.2s, transform 0.2s; }
.blog-list-card:hover .blc-arrow { color: #c44dff; transform: translateX(4px); }

/* ══════════════════════════════
   CTA BANNER
══════════════════════════════ */
.blog-cta-banner {
  margin: 2rem 2rem 4rem;
  border-radius: 1.6rem;
  background: linear-gradient(135deg, rgba(196,77,255,0.08), rgba(255,107,157,0.06));
  border: 1px solid rgba(196,77,255,0.2);
  overflow: hidden;
  position: relative;
}
.blog-cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(196,77,255,0.08);
  filter: blur(40px);
  pointer-events: none;
}
.blog-cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.blog-cta-text { flex: 1; min-width: 260px; }
.blog-cta-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.5rem;
}
.blog-cta-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
.blog-cta-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════
   ARTICLE PAGES
══════════════════════════════ */
.article-container {
  max-width: 740px;
  margin: 0 auto;
  padding: 2rem 1.2rem 5rem;
}
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card-bg);
  transition: color 0.2s, border-color 0.2s;
}
.article-back:hover { color: #c44dff; border-color: rgba(196,77,255,0.4); }
.article-tag { margin-bottom: 1rem; }
.article-hero-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 16px rgba(196,77,255,0.3));
}
.article-container h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.article-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.article-container h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 2.8rem 0 0.9rem;
  color: var(--text);
}
.article-container h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--text);
}
.article-container p {
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.1rem;
  font-size: 1rem;
}
.article-container ul,
.article-container ol {
  color: var(--text-muted);
  line-height: 1.85;
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
}
.article-container li { margin-bottom: 0.6rem; }

.article-callout {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid #c44dff;
  border-radius: 0.75rem;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.article-callout.danger { border-left-color: #ff4444; }
.article-callout.info   { border-left-color: #4fc3f7; }
.article-callout.warn   { border-left-color: #ffb74d; }

.article-stat {
  background: linear-gradient(135deg, rgba(196,77,255,0.08), rgba(255,107,157,0.05));
  border: 1px solid rgba(196,77,255,0.18);
  border-radius: 1.2rem;
  padding: 2rem 1.4rem;
  margin: 2rem 0;
  text-align: center;
}
.article-stat .stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #c44dff, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.article-stat .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(196,77,255,0.1), rgba(255,107,157,0.07));
  border: 1px solid rgba(196,77,255,0.3);
  border-radius: 1.4rem;
  padding: 2.2rem;
  text-align: center;
  margin: 3rem 0 1rem;
}
.article-cta-box h3 { margin: 0 0 0.6rem; color: var(--text); font-size: 1.2rem; }
.article-cta-box p { margin-bottom: 1.4rem; font-size: 0.95rem; color: var(--text-muted); }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 1024px) {
  .blog-hero-modern { grid-template-columns: 1fr; gap: 2rem; }
  .blog-hero-featured { max-width: 480px; }
  .ccard { flex: 0 0 calc((100% - 20px) / 2); }
}

@media (max-width: 768px) {
  .nav-blog { padding: 0.7rem 1rem; }
  .nav-blog-links { display: none; }
  .blog-hero-modern { padding: 2rem 1rem 2rem; }
  .carousel-section,
  .blog-filters-wrap,
  .blog-list-section { padding-left: 1rem; padding-right: 1rem; }
  .blog-cta-banner { margin: 1rem 1rem 3rem; }
  .blog-cta-inner { flex-direction: column; gap: 1.5rem; }
  .blog-cta-btns { width: 100%; justify-content: center; }
}

@media (max-width: 600px) {
  .ccard { flex: 0 0 calc(100% - 0px); }
  .article-container { padding: 1.5rem 1rem 4rem; }
  .blog-list-card { padding: 1rem 1.2rem; gap: 1rem; }
  .blc-icon { font-size: 1.8rem; }
}
