/* ==========================================================================
   FLOW INTERACTIVE — DESIGN SYSTEM & CORE STYLESHEET
   The Think Blog & User Experience Consultancy
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette - Dark Theme Default */
  --bg-primary: #090d16;
  --bg-secondary: #0f172a;
  --bg-card: rgba(17, 24, 39, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.85);
  --bg-surface: #1e293b;
  --bg-surface-glass: rgba(15, 23, 42, 0.72);
  --bg-input: #1e293b;
  --bg-modal: rgba(11, 15, 25, 0.85);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(56, 189, 248, 0.35);
  --border-accent: rgba(99, 102, 241, 0.45);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #38bdf8;

  /* Brand Accents */
  --brand-cyan: #00d2ff;
  --brand-blue: #3b82f6;
  --brand-indigo: #6366f1;
  --brand-purple: #8b5cf6;
  --brand-pink: #ec4899;
  --brand-emerald: #10b981;
  --brand-amber: #f59e0b;

  --grad-brand: linear-gradient(135deg, #00d2ff 0%, #3b82f6 50%, #8b5cf6 100%);
  --grad-surface: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, rgba(15, 23, 42, 0.5) 100%);
  --grad-hero-glow: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.15), transparent 70%);

  /* Shadows & Glass */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 40px -8px rgba(0, 0, 0, 0.5);
  --shadow-cyan-glow: 0 0 35px rgba(0, 210, 255, 0.25);
  --glass-blur: blur(16px);

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Newsreader', Georgia, Cambria, 'Times New Roman', serif;

  /* Spacing & Layout */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: #ffffff;
  --bg-surface: #e2e8f0;
  --bg-surface-glass: rgba(248, 250, 252, 0.82);
  --bg-input: #ffffff;
  --bg-modal: rgba(241, 245, 249, 0.9);

  --border-subtle: rgba(15, 23, 42, 0.1);
  --border-hover: rgba(2, 132, 199, 0.4);
  --border-accent: rgba(99, 102, 241, 0.4);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-accent: #0284c7;

  --grad-hero-glow: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.2), transparent 70%);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Reading Progress Bar */
#readingProgressBar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--grad-brand);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--grad-brand);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 210, 255, 0.45);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-surface-glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-logo-badge {
  height: 44px;
  width: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.4);
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}

.brand-logo-link:hover .brand-logo-badge {
  transform: scale(1.06) rotate(2deg);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.65);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-main-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-flow {
  color: var(--text-primary);
}

.brand-interactive {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 400;
  letter-spacing: 1px;
}

.brand-subtitle {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.35rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bookmark-counter {
  background: var(--brand-indigo);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  padding: 2rem 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  display: flex;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
  background-image: var(--grad-hero-glow);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
  color: var(--brand-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.3px;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.hero-card-wrap {
  position: relative;
}

.hero-image-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-cyan-glow);
  border: 1px solid var(--border-subtle);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.hero-image-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image-card img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.hero-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 13, 22, 0.95) 80%);
  color: white;
}

.hero-card-overlay h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.hero-card-overlay p {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* ==========================================================================
   FEATURED SPOTLIGHT SECTION
   ========================================================================== */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.3rem;
  letter-spacing: -0.8px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin-top: 0.5rem;
}

/* Spotlight Cards Grid */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.spotlight-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.spotlight-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.spotlight-card.featured-primary {
  grid-column: span 7;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border-color: rgba(56, 189, 248, 0.3);
}

.spotlight-card.featured-secondary {
  grid-column: span 5;
}

.spotlight-card.featured-tertiary {
  grid-column: span 6;
}

.card-meta-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.category-tag.case-study {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

.read-time-pill {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.spotlight-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.spotlight-card p.excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-author-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.author-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.author-chip img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
}

.author-chip .author-name {
  font-size: 0.88rem;
  font-weight: 600;
}

.author-chip .author-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bookmark-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  font-size: 1.15rem;
  transition: var(--transition);
}

.bookmark-btn:hover, .bookmark-btn.saved {
  color: var(--brand-pink);
  transform: scale(1.15);
}

/* ==========================================================================
   THE THINK BLOG — ARCHIVE, SEARCH & FILTER
   ========================================================================== */
.blog-controls-wrapper {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.search-bar-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.search-input-wrap {
  flex-grow: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 3rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

.clear-search-btn {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  display: none;
}

.sort-select {
  padding: 0.85rem 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.category-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-pill {
  padding: 0.45rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.filter-pill.active {
  background: var(--grad-brand);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.25);
}

.author-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.author-select {
  padding: 0.45rem 0.85rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

/* Post Cards Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.75rem;
}

.post-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.post-card .card-thumb-wrap {
  width: 100%;
  height: 190px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

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

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

.post-card h3 {
  font-size: 1.25rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.post-card:hover h3 {
  color: var(--brand-cyan);
}

.post-card .post-excerpt {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

/* No Results State */
.no-results-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
}

.no-results-box h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.no-results-box p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   ARTICLE READER MODAL & VIEW
   ========================================================================== */
.reader-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-modal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  overflow-y: auto;
  padding: 2.5rem 1rem;
}

.reader-modal-overlay.open {
  display: block;
}

.reader-container {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.reader-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--bg-surface-glass);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: var(--glass-blur);
}

.reader-breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reader-breadcrumbs a:hover {
  color: var(--brand-cyan);
}

.reader-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reader-content-body {
  padding: 3rem 2.5rem 4rem;
}

.reader-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.reader-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin: 1rem 0 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.reader-author-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-top: 1.5rem;
}

.reader-author-box img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border-hover);
}

.reader-author-info h4 {
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.reader-author-info p.role {
  font-size: 0.85rem;
  color: var(--brand-cyan);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.reader-author-info p.bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Editorial Body Typography */
.article-prose {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-prose p {
  margin-bottom: 1.6rem;
}

.article-prose h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.5px;
}

.article-prose h3 {
  font-size: 1.4rem;
  margin: 2rem 0 0.85rem;
}

.article-prose blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: rgba(99, 102, 241, 0.08);
  border-left: 4px solid var(--brand-indigo);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-primary);
}

.article-prose blockquote p {
  margin: 0;
}

.article-prose ul, .article-prose ol {
  margin: 1.5rem 0 2rem 2rem;
}

.article-prose li {
  margin-bottom: 0.65rem;
}

.article-prose img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin: 2rem auto;
  box-shadow: var(--shadow-md);
}

.article-prose a {
  color: var(--brand-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-prose a:hover {
  color: var(--brand-blue);
}

/* Discussion & Comments in Reader */
.reader-comments-section {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-subtle);
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.comment-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.comment-author {
  font-weight: 700;
  font-size: 0.95rem;
}

.comment-time {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.comment-form {
  background: var(--bg-secondary);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--brand-cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

/* ==========================================================================
   INTERACTIVE UX LAB & PRINCIPLES SIMULATOR
   ========================================================================== */
.simulator-box {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.slider-group {
  margin-bottom: 1.5rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.ux-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-surface);
  outline: none;
  -webkit-appearance: none;
}

.ux-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.6);
  border: 2px solid #ffffff;
}

.simulator-result-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  text-align: center;
  transition: var(--transition);
}

.simulator-score-badge {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 0.5rem;
}

.simulator-verdict {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.simulator-explanation {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Interaction Spectrum Visualizer */
.spectrum-track {
  position: relative;
  height: 80px;
  background: linear-gradient(90deg, #1e293b 0%, #0369a1 40%, #4338ca 70%, #d97706 100%);
  border-radius: var(--radius-full);
  margin: 3rem 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  border: 1px solid var(--border-subtle);
}

.spectrum-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  cursor: pointer;
  z-index: 2;
}

.spectrum-milestone .dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--brand-cyan);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease;
}

.spectrum-milestone:hover .dot, .spectrum-milestone.active .dot {
  transform: scale(1.3);
  border-color: #8b5cf6;
}

.spectrum-milestone .label {
  position: absolute;
  top: 36px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.spectrum-info-box {
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   CASE STUDIES & METHODOLOGIES
   ========================================================================== */
.case-study-hero {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  box-shadow: var(--shadow-md);
  margin-bottom: 3rem;
}

.case-study-media {
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.case-study-media img {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 400px;
}

.case-study-content {
  padding: 3rem;
}

.case-study-quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.client-quote-card {
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--brand-cyan);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.client-quote-author {
  margin-top: 0.75rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  color: var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   TEAM & AUTHORS
   ========================================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.team-avatar-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 3px solid var(--border-accent);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.team-avatar-wrap img {
  width: 100%;
  height: 100%;
}

.team-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.team-card .team-role {
  font-size: 0.8rem;
  color: var(--brand-cyan);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.team-card .team-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   CONTACT & INQUIRIES
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-detail-card {
  display: flex;
  gap: 1.25rem;
}

.contact-icon-bubble {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  color: var(--brand-indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-detail-card h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.contact-detail-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-form-panel {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

/* Bookmarks Drawer */
.bookmarks-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  z-index: 3000;
  box-shadow: var(--shadow-lg);
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.bookmarks-drawer.open {
  right: 0;
}

.bookmarks-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bookmarks-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bookmark-item {
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  position: relative;
  cursor: pointer;
}

.bookmark-item:hover {
  border-color: var(--border-hover);
}

.bookmark-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.bookmark-item .bookmark-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  padding: 0.85rem 1.4rem;
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: toastFadeIn 0.3s ease;
  pointer-events: auto;
}

@keyframes toastFadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
  max-width: 320px;
}

.footer-links h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand-cyan);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .spotlight-card.featured-primary,
  .spotlight-card.featured-secondary,
  .spotlight-card.featured-tertiary {
    grid-column: span 12;
  }
  .case-study-hero {
    grid-template-columns: 1fr;
  }
  .simulator-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-title {
    font-size: 2.35rem;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .reader-modal-overlay {
    padding: 0;
  }
  .reader-container {
    border-radius: 0;
    min-height: 100vh;
  }
  .reader-content-body {
    padding: 2rem 1.25rem;
  }
  .reader-title {
    font-size: 1.85rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
