/* =============================================
   TALENCE INFORMATIXS — Blog Stylesheet
   (loads after css/style.css — reuses its tokens)
   ============================================= */

/* ---- Nav "current page" state (blog pages) ---- */
.nav-links a.current { color: var(--primary); }
.nav-links a.current::after { width: 100%; }

/* =============================================
   BLOG HERO
   ============================================= */
.blog-hero {
  padding: calc(var(--nav-h) + 64px) 0 48px;
  background: var(--dark-2);
  text-align: center;
}
.blog-hero .section-label { margin-bottom: 16px; }
.blog-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.blog-hero-sub {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* =============================================
   BLOG TEASER (homepage)
   ============================================= */
.blog-teaser { background: var(--dark-2); }
.blog-teaser-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* =============================================
   BLOG LISTING
   ============================================= */
.blog-listing { background: var(--dark-2); padding-top: 48px; }

.blog-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}
.blog-tab {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
}
.blog-tab:hover { color: var(--primary); border-color: rgba(99,102,241,0.3); }
.blog-tab.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ---- Shared card body ---- */
.article-card, .video-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}
.article-card:hover, .video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(99,102,241,0.12);
  border-color: rgba(99,102,241,0.3);
}
.article-card-link { display: block; color: inherit; }

.article-cover, .video-thumb {
  position: relative;
  height: 168px;
  background: linear-gradient(135deg, var(--cov-a, #6366f1), var(--cov-b, #06b6d4));
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 16px;
  overflow: hidden;
}
.article-cover::before, .video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 20%, black 30%, transparent 90%);
  opacity: 0.6;
}
.cover-icon {
  position: absolute;
  right: 10px;
  bottom: -6px;
  width: 84px;
  height: 84px;
  color: rgba(255,255,255,0.22);
}
.cover-icon svg { width: 100%; height: 100%; }

.article-category, .video-category {
  position: relative;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,0.22);
  backdrop-filter: blur(4px);
  padding: 5px 12px;
  border-radius: 50px;
}

.video-thumb { align-items: center; justify-content: center; flex-direction: column; }
.video-play {
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition);
  margin-top: 12px;
}
.video-play svg { width: 22px; height: 22px; margin-left: 2px; }
.video-card:hover .video-play { transform: scale(1.1); }
.video-thumb .video-category { position: absolute; top: 16px; left: 16px; }
.video-duration {
  position: absolute;
  right: 12px; bottom: 12px;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0,0,0,0.5);
  padding: 3px 9px;
  border-radius: 6px;
}

.article-body { padding: 24px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }

.article-body h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
  line-height: 1.4;
}
.article-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.article-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.article-readmore svg { width: 14px; height: 14px; transition: transform var(--transition); }
.article-card:hover .article-readmore svg { transform: translateX(4px); }

/* =============================================
   VIDEO MODAL
   ============================================= */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,17,32,0.85);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 24px;
}
.video-modal.open { opacity: 1; pointer-events: all; }

.video-modal-inner {
  width: 100%;
  max-width: 900px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.video-modal.open .video-modal-inner { transform: translateY(0) scale(1); }

.video-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.video-modal-title { font-weight: 600; font-size: 0.95rem; }
.video-modal-close {
  background: var(--dark-3);
  border: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.video-modal-close:hover { background: var(--primary); color: #fff; }

.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* =============================================
   ARTICLE PAGE
   ============================================= */
.article-hero {
  padding: calc(var(--nav-h) + 56px) 0 0;
  background: var(--dark-2);
}
.article-hero .container { max-width: 760px; }
.article-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.article-breadcrumb a { color: var(--primary); }
.article-hero .article-category {
  position: static;
  display: inline-block;
  margin-bottom: 18px;
  color: var(--primary);
  background: rgba(99,102,241,0.12);
}
.article-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding-bottom: 32px;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  flex-shrink: 0;
}
.article-author strong { color: var(--text); font-weight: 600; }

.article-cover-banner { padding: 0 24px 0; }
.article-cover-banner .banner-inner {
  max-width: 760px;
  margin: 0 auto;
  height: 280px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cov-a, #6366f1), var(--cov-b, #06b6d4));
  position: relative;
  overflow: hidden;
  transform: translateY(32px);
}
.article-cover-banner .banner-inner::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 80% at 30% 20%, black 30%, transparent 90%);
}
.article-cover-banner .cover-icon { width: 140px; height: 140px; right: 20px; bottom: -20px; }

.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 24px 56px;
}
.article-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
}
.article-content h3 {
  font-size: 1.2rem;
  margin: 32px 0 14px;
}
.article-content > p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: #3a3f5c;
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 0 0 20px 0;
  padding-left: 22px;
}
.article-content li {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #3a3f5c;
  margin-bottom: 10px;
  list-style: disc;
}
.article-content ol li { list-style: decimal; }
.article-content blockquote {
  border-left: 3px solid var(--primary);
  background: var(--surface-2);
  padding: 20px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text);
  margin: 28px 0;
}
.article-content strong { color: var(--text); }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-tags li {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 4px 12px;
  border-radius: 50px;
}

.article-cta { max-width: 760px; margin: 0 auto 64px; padding: 0 24px; }
.article-cta-inner {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(6,182,212,0.08));
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
}
.article-cta-inner h3 { font-size: 1.3rem; margin-bottom: 10px; }
.article-cta-inner p { color: var(--text-muted); margin-bottom: 20px; }

.article-related { background: var(--dark-2); padding: 64px 0; }
.article-related .container { max-width: 1160px; }
.article-related h2 { font-size: 1.4rem; margin-bottom: 28px; text-align: center; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =============================================
   TEAM PROFILE PAGE
   ============================================= */
.profile-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  background: var(--dark-2);
  text-align: center;
}
.profile-hero .container { max-width: 640px; }

.profile-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  margin: 0 auto 24px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--av-a, #6366f1), var(--av-b, #06b6d4));
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar .avatar-initials {
  display: flex;
  font-size: 2.2rem;
}

.profile-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 10px;
}
.profile-role {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(99,102,241,0.1);
  padding: 5px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.profile-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 24px;
}
.profile-hero .team-socials {
  justify-content: center;
  margin: 0 auto;
}

.profile-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
}
.profile-section { margin-bottom: 48px; }
.profile-section:last-child { margin-bottom: 0; }
.profile-section h2 { font-size: 1.35rem; margin-bottom: 16px; }
.profile-section > p {
  font-size: 1rem;
  line-height: 1.85;
  color: #3a3f5c;
  margin-bottom: 16px;
}
.profile-articles { max-width: 380px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-tabs { flex-wrap: wrap; }
  .article-content { padding: 72px 20px 40px; }
  .article-cover-banner .banner-inner { height: 200px; }
}
