/* ==========================================================================
   CSS Variables - Light Mode (Default)
   ========================================================================== */

:root {
  --jt-bg-primary: #f8f8f4;
  --jt-bg-secondary: #ffffff;
  --jt-text-primary: #1a1a1a;
  --jt-text-secondary: #555555;
  --jt-text-muted: #888888;
  --jt-accent: #3b82f6;
  --jt-accent-hover: #2563eb;
  --jt-nav-bg: rgba(255, 255, 255, 0.85);
  --jt-nav-icon: #1a1a1a;
  --jt-nav-icon-hover: var(--jt-accent);
  --jt-card-bg: #1a1a1a;
  --jt-card-text: #ffffff;
  --jt-card-border: #e5e5e5;
  --jt-transition: 0.3s ease;
  --jt-font-heading: 'Archivo Black', sans-serif;
  --jt-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --jt-sidebar-width: 80px;
  --jt-content-max-width: 800px;
  --jt-section-padding: 60px;
}

[data-theme="dark"] {
  --jt-bg-primary: #0f172a;
  --jt-bg-secondary: #1e293b;
  --jt-text-primary: #f1f5f9;
  --jt-text-secondary: #94a3b8;
  --jt-text-muted: #64748b;
  --jt-nav-bg: rgba(30, 41, 59, 0.85);
  --jt-nav-icon: #f1f5f9;
  --jt-card-bg: #1e293b;
  --jt-card-border: #334155;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, html body, body.jt-theme {
  font-family: var(--jt-font-body) !important;
  background-color: var(--jt-bg-primary) !important;
  color: var(--jt-text-primary) !important;
  line-height: 1.7;
  margin: 0;
  padding: 0;
  padding-left: var(--jt-sidebar-width) !important;
  transition: background-color 0.5s ease, color 0.3s ease;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   Dappled Light Effect - Soft natural light through blinds
   ========================================================================== */

:root {
  --bounce-light: rgba(255, 248, 235, 0.6);
  --shadow-color: rgba(26, 25, 23, 0.08);
  --shutter-height: 40px;
  --shutter-gap: 60px;
  --timing-fn: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bounce-light: rgba(30, 50, 80, 0.3);
  --shadow-color: rgba(3, 3, 7, 0.4);
  --shutter-height: 80px;
  --shutter-gap: 20px;
}

#dappled-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Warm glow from bottom-left corner */
#glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(309deg, var(--bounce-light), var(--bounce-light) 20%, transparent);
  opacity: 0.5;
  transition: background 1s var(--timing-fn), opacity 1s var(--timing-fn);
}

/* Secondary bounce light */
#glow-bounce {
  position: absolute;
  inset: 0;
  background: linear-gradient(355deg, var(--bounce-light) 0%, transparent 30%, transparent 100%);
  opacity: 0.5;
  transition: background 1s var(--timing-fn), opacity 1s var(--timing-fn);
}

/* Perspective container - creates the diagonal slant */
.perspective {
  position: absolute;
  inset: 0;
  transform: matrix3d(0.75, -0.0625, 0, 0.0008, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  transform-origin: 100% 0;
  opacity: 0.07;
  transition: opacity 1s var(--timing-fn), transform 1s var(--timing-fn);
}

[data-theme="dark"] .perspective {
  transform: matrix3d(0.8333, 0.0833, 0, 0.0003, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  opacity: 0.3;
}

/* Blinds container */
#blinds {
  display: flex;
  flex-direction: column;
  gap: var(--shutter-gap);
  height: 200%;
  width: 200%;
  margin-left: -50%;
  margin-top: -20%;
  transition: gap 1s var(--timing-fn);
}

/* Individual shutter slats with natural movement */
.shutter {
  flex-shrink: 0;
  height: var(--shutter-height);
  background: var(--shadow-color);
  transition: height 1s var(--timing-fn), background 1s var(--timing-fn);
  filter: blur(8px);
  animation: sway 20s ease-in-out infinite;
}

/* Stagger animations for natural randomness */
.shutter:nth-child(1) { animation-delay: 0s; animation-duration: 18s; }
.shutter:nth-child(2) { animation-delay: -3s; animation-duration: 22s; }
.shutter:nth-child(3) { animation-delay: -7s; animation-duration: 19s; }
.shutter:nth-child(4) { animation-delay: -2s; animation-duration: 24s; }
.shutter:nth-child(5) { animation-delay: -9s; animation-duration: 17s; }
.shutter:nth-child(6) { animation-delay: -4s; animation-duration: 21s; }
.shutter:nth-child(7) { animation-delay: -11s; animation-duration: 23s; }
.shutter:nth-child(8) { animation-delay: -1s; animation-duration: 18s; }
.shutter:nth-child(9) { animation-delay: -6s; animation-duration: 25s; }
.shutter:nth-child(10) { animation-delay: -8s; animation-duration: 20s; }
.shutter:nth-child(11) { animation-delay: -5s; animation-duration: 22s; }
.shutter:nth-child(12) { animation-delay: -10s; animation-duration: 19s; }

/* Vary shutter heights slightly for more organic feel */
.shutter:nth-child(odd) { transform: scaleY(0.9); }
.shutter:nth-child(3n) { transform: scaleY(1.1); }
.shutter:nth-child(4n) { transform: scaleY(0.85); }

@keyframes sway {
  0%, 100% {
    transform: translateX(0) scaleY(1);
    opacity: 1;
  }
  25% {
    transform: translateX(2%) scaleY(1.05);
    opacity: 0.85;
  }
  50% {
    transform: translateX(-1%) scaleY(0.95);
    opacity: 1;
  }
  75% {
    transform: translateX(1.5%) scaleY(1.02);
    opacity: 0.9;
  }
}

/* Progressive blur for depth */
#progressive-blur {
  position: absolute;
  inset: 0;
}

#progressive-blur > div {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask: linear-gradient(252deg, transparent, transparent 0%, black 40%, black);
  -webkit-mask: linear-gradient(252deg, transparent, transparent 0%, black 40%, black);
}

#progressive-blur > div:nth-child(2) {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  mask: linear-gradient(252deg, transparent, transparent 40%, black 80%, black);
  -webkit-mask: linear-gradient(252deg, transparent, transparent 40%, black 80%, black);
}

#progressive-blur > div:nth-child(3) {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  mask: linear-gradient(252deg, transparent, transparent 70%, black 90%, black);
  -webkit-mask: linear-gradient(252deg, transparent, transparent 70%, black 90%, black);
}

/* ==========================================================================
   Sidebar Navigation - Elegant unified bar
   ========================================================================== */

.jt-sidebar {
  position: fixed;
  left: 20px;
  top: 32%;
  transform: translateY(-50%);
  z-index: 1000;
  background: var(--jt-nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.jt-sidebar:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.06);
}

.jt-sidebar__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.jt-sidebar__link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: transparent;
  color: var(--jt-text-muted) !important;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jt-sidebar__link:hover {
  color: var(--jt-text-primary) !important;
  background: rgba(0,0,0,0.04);
}

[data-theme="dark"] .jt-sidebar__link:hover {
  background: rgba(255,255,255,0.06);
}

.jt-sidebar__link.active {
  color: var(--jt-text-primary) !important;
  background: rgba(0,0,0,0.06);
}

[data-theme="dark"] .jt-sidebar__link.active {
  background: rgba(255,255,255,0.1);
}

.jt-sidebar__link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.jt-sidebar__link:hover svg {
  transform: scale(1.08);
}

.jt-sidebar__link::after { display: none; }

/* Divider line */
.jt-sidebar__divider {
  width: 24px;
  height: 1px;
  background: var(--jt-card-border);
  margin: 6px 0;
  opacity: 0.5;
}

.jt-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: transparent;
  border: none;
  color: var(--jt-text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 2px;
}

.jt-theme-toggle:hover {
  color: var(--jt-text-primary);
  background: rgba(0,0,0,0.04);
}

[data-theme="dark"] .jt-theme-toggle:hover {
  background: rgba(255,255,255,0.06);
}

.jt-theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.jt-theme-toggle:hover svg {
  transform: rotate(20deg);
}

.jt-theme-toggle .icon-sun { display: none; }
.jt-theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .jt-theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .jt-theme-toggle .icon-moon { display: none; }

/* ==========================================================================
   Main Content
   ========================================================================== */

.jt-main {
  position: relative;
  z-index: 1;
  max-width: var(--jt-content-max-width);
  margin: 0 auto;
  padding: 40px 40px 100px;
}

.jt-section { padding: var(--jt-section-padding) 0; }

/* ==========================================================================
   Hero Section
   ========================================================================== */

.jt-hero { padding-top: 20px; }

.jt-hero__logo {
  display: block;
  max-width: 280px;
  height: auto;
  margin: 0 auto 40px;
  transition: filter 0.5s ease;
}

[data-theme="dark"] .jt-hero__logo {
  filter: invert(1) brightness(2);
}

.jt-hero__tagline {
  font-family: var(--jt-font-body) !important;
  font-size: 1.25rem;
  color: var(--jt-text-primary) !important;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 40px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.jt-hero__bio {
  max-width: 600px;
  margin-bottom: 24px;
}

.jt-hero__bio p {
  font-size: 1rem;
  color: var(--jt-text-secondary) !important;
  line-height: 1.8;
  margin: 0 0 1em;
}

.jt-hero__bio p:last-child {
  margin-bottom: 0;
}

.jt-facts {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jt-facts__item {
  font-size: 0.9375rem;
  color: var(--jt-text-muted) !important;
}

.jt-more-btn {
  background: none;
  border: 1px solid var(--jt-card-border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--jt-text-secondary);
  cursor: pointer;
  margin-bottom: 24px;
  transition: all var(--jt-transition);
}

.jt-more-btn:hover { border-color: var(--jt-text-secondary); }

/* ==========================================================================
   Social Links
   ========================================================================== */

.jt-social {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.jt-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jt-text-primary) !important;
  text-decoration: none;
  transition: all var(--jt-transition);
}

.jt-social__link:hover {
  color: var(--jt-accent) !important;
  transform: translateY(-2px);
}

.jt-social__link svg { width: 22px; height: 22px; }

/* ==========================================================================
   Section Titles
   ========================================================================== */

.jt-section__title {
  font-family: var(--jt-font-heading) !important;
  font-size: 1.5rem;
  margin-bottom: 24px;
  color: var(--jt-text-primary) !important;
}


/* ==========================================================================

/* ==========================================================================
   Project Cards - Clean, Professional Design
   ========================================================================== */

.jt-projects {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 24px 0 48px;
  margin: 0 -24px;
  padding-left: 24px;
  padding-right: 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.jt-projects::-webkit-scrollbar {
  display: none;
}

.jt-project-card {
  flex: 0 0 300px;
  height: 420px;
  border-radius: 0 !important;
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Card image - fills entire card */
.jt-project-card__image {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.jt-project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 85% !important;
  transition: transform 0.4s ease;
}

.jt-project-card--active:hover .jt-project-card__image img {
  transform: scale(1.05);
}

/* Gradient backgrounds for cards without images */
.jt-project-card__image--pvre {
  background: #1a1a1a;
}

.jt-project-card__image--onetruetribe {
  background: linear-gradient(160deg, #166534 0%, #22c55e 100%);
}

.jt-project-card__image--socialwizard {
  background: linear-gradient(160deg, #6d28d9 0%, #a78bfa 100%);
}

/* Abbreviation text */
.jt-project-card__abbrev {
  font-family: var(--jt-font-heading);
  font-size: 1.5rem;
  color: rgba(255,255,255,0.9) !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Content overlay - subtle gradient */
.jt-project-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, 
    rgba(0,0,0,0.75) 0%, 
    rgba(0,0,0,0.4) 50%, 
    transparent 100%);
  z-index: 2;
}

.jt-project-card__title {
  font-family: var(--jt-font-body) !important;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: white !important;
  letter-spacing: 0.01em;
}

.jt-project-card__tagline {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7) !important;
  margin: 0;
  line-height: 1.5;
}

/* Active cards */
.jt-project-card--active {
  cursor: pointer;
}

.jt-project-card--active:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.25);
}

.jt-project-card--active:focus {
  outline: 2px solid var(--jt-accent);
  outline-offset: 2px;
}

/* Subtle press animation */
.jt-project-card--active:active {
  transform: scale(0.98);
  transition: transform 0.1s ease;
}

/* Locked cards */
.jt-project-card--locked {
  cursor: not-allowed;
}

.jt-project-card--locked .jt-project-card__image {
  filter: brightness(0.85);
}

.jt-project-card--locked:hover {
  transform: none;
  box-shadow: none;
}

.jt-project-card__lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3;
}

.jt-project-card__lock svg {
  color: rgba(255,255,255,0.8);
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Project Modal - True Full Screen
   ========================================================================== */

.jt-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.jt-modal[hidden] {
  display: none;
}

.jt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: var(--jt-bg-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.jt-modal.jt-modal--open .jt-modal__backdrop {
  opacity: 1;
}

.jt-modal__container {
  position: absolute;
  inset: 0;
  background: var(--jt-bg-primary);
  overflow-y: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.jt-modal.jt-modal--open .jt-modal__container {
  opacity: 1;
  transform: translateY(0);
}

.jt-modal__close {
  position: fixed;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--jt-bg-secondary);
  border: 1px solid var(--jt-card-border);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jt-text-primary);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10001;
}

.jt-modal__close:hover {
  background: var(--jt-bg-primary);
  transform: scale(1.05);
}

.jt-modal__content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.jt-modal__header {
  padding: 80px 48px 32px 160px !important;
  max-width: 900px;
}

.jt-modal__title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.jt-modal__title {
  font-family: var(--jt-font-heading) !important;
  font-size: 2.5rem;
  margin: 0;
  color: var(--jt-text-primary) !important;
  letter-spacing: -0.02em;
}

.jt-modal__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--jt-text-primary);
  border-radius: 50%;
  color: var(--jt-bg-primary) !important;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.jt-modal__link:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.jt-modal__tagline {
  font-size: 1.25rem;
  color: var(--jt-text-secondary) !important;
  margin: 0;
  font-style: italic;
  opacity: 0.8;
}

.jt-modal__body {
  padding: 0 48px 48px 160px !important;
  max-width: 900px;
}

.jt-modal__description {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--jt-text-secondary) !important;
  margin: 0;
}

.jt-modal__hero {
  margin-top: auto;
  width: 100%;
}

.jt-modal__image {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Project Cards & Modal - Mobile
   ========================================================================== */

@media (max-width: 768px) {
  .jt-projects {
    gap: 16px;
    padding: 16px 0 32px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .jt-project-card {
    flex: 0 0 260px;
    height: 360px;
  }

  .jt-project-card__content {
    padding: 20px;
  }

  .jt-project-card__title {
    font-size: 0.9375rem;
  }

  .jt-project-card__tagline {
    font-size: 0.75rem;
  }

  .jt-modal__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .jt-modal__header {
    padding: 80px 16px 24px !important;
    max-width: none !important;
  }

  .jt-modal__title {
    font-size: 1.75rem;
  }

  .jt-modal__tagline {
    font-size: 1rem;
  }

  .jt-modal__body {
    padding: 0 16px 32px !important;
    max-width: none !important;
  }

  .jt-modal__description {
    font-size: 1rem;
  }
}


/* ==========================================================================
   Bio link styles
   ========================================================================== */

.jt-hero__bio a {
  color: var(--jt-accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.jt-hero__bio a:hover {
  color: var(--jt-accent-hover) !important;
  text-decoration: none;
}


/* ==========================================================================
   Background Section
   ========================================================================== */

.jt-background__journey {
  font-family: var(--jt-font-heading) !important;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--jt-text-primary) !important;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 768px) {
  :root {
    --jt-sidebar-width: 0px;
    --jt-section-padding: 40px;
  }

  html body, body.jt-theme {
    padding-left: 0 !important;
    padding-top: 70px !important;
  }

  .jt-sidebar {
    position: fixed;
    left: 0; right: 0; top: 0; bottom: auto;
    transform: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 0 !important;
    background: var(--jt-nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--jt-card-border);
    box-shadow: none;
  }

  .jt-sidebar__nav {
    display: flex;
    flex-direction: row;
    gap: 4px;
  }

  .jt-sidebar__link {
    width: 44px; height: 44px;
    border-radius: 12px;
  }

  .jt-sidebar__divider { display: none !important; }

  .jt-theme-toggle {
    width: 44px; height: 44px;
    border-radius: 12px;
    margin: 0;
  }

  .jt-main { padding: 20px 20px 60px; }
  .jt-hero__logo { max-width: 200px; margin-bottom: 30px; }
  .jt-projects {
    gap: 16px;
    padding: 16px 0 32px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .jt-project-card {
    flex: 0 0 180px;
    height: 280px;
  }

  .jt-project-card__image {
    height: 160px;
  }

  /* Modal mobile styles */
  .jt-modal__container {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    height: 100%;
    border-radius: 0 !important;
  }

  .jt-modal__header {
    padding: 80px 16px 16px !important;
    max-width: none !important;
  }

  .jt-modal__title {
    font-size: 1.5rem;
  }

  .jt-modal__tagline {
    font-size: 1rem;
  }

  .jt-modal__body {
    padding: 0 16px 24px !important;
    max-width: none !important;
  }

  .jt-modal__description {
    font-size: 0.9375rem;
  }

  .jt-modal__image {
    border-radius: 0 !important;
  }

  .jt-modal__close {
    top: 12px;
    right: 12px;
  }
  .jt-social { gap: 20px; }
}

/* ==========================================================================
   WordPress Overrides
   ========================================================================== */

.ct-header, header[data-id="type-1"] { display: none !important; }
.ct-container > .content-area > article.page { display: none !important; }
.site-main, .entry-content, .ct-container, .jt-main { position: relative; z-index: 1; }
.ct-container { max-width: none !important; padding: 0 !important; }

/* Hide footer globally */
footer, .ct-footer, .site-footer, [class*="footer"] { display: none !important; }

/* ==========================================================================
   Blog / Writing Page
   ========================================================================== */

.jt-blog__header {
  padding-top: 20px;
  margin-bottom: 48px;
}

.jt-blog__title {
  font-family: var(--jt-font-heading) !important;
  font-size: 2rem;
  margin: 0 0 8px;
  color: var(--jt-text-primary) !important;
}

.jt-blog__description {
  font-size: 1rem;
  color: var(--jt-text-secondary) !important;
  margin: 0;
}

.jt-blog__posts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jt-post-card {
  border-radius: 12px;
  transition: background 0.2s ease;
}

.jt-post-card:hover {
  background: rgba(0,0,0,0.02);
}

[data-theme="dark"] .jt-post-card:hover {
  background: rgba(255,255,255,0.03);
}

.jt-post-card__link {
  display: block;
  padding: 20px 16px;
  text-decoration: none;
  color: inherit !important;
}

.jt-post-card__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--jt-text-muted) !important;
  margin-bottom: 4px;
}

.jt-post-card__title {
  font-family: var(--jt-font-body) !important;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--jt-text-primary) !important;
  transition: color 0.2s ease;
}

.jt-post-card:hover .jt-post-card__title {
  color: var(--jt-accent) !important;
}

.jt-post-card__excerpt {
  font-size: 0.9375rem;
  color: var(--jt-text-secondary) !important;
  margin: 0;
  line-height: 1.6;
}

.jt-blog__empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--jt-text-muted) !important;
}

/* Pagination */
.jt-pagination,
.navigation.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.jt-pagination a,
.navigation.pagination a,
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--jt-text-secondary) !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.jt-pagination a:hover,
.navigation.pagination a:hover,
.page-numbers:hover {
  background: rgba(0,0,0,0.04);
  color: var(--jt-text-primary) !important;
}

.page-numbers.current {
  background: var(--jt-text-primary);
  color: var(--jt-bg-primary) !important;
}

/* ==========================================================================
   Single Post / Article
   ========================================================================== */

.jt-article__header {
  padding-top: 20px;
  margin-bottom: 32px;
}

.jt-article__back {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--jt-text-muted) !important;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.jt-article__back:hover {
  color: var(--jt-text-primary) !important;
}

.jt-article__date {
  display: block;
  font-size: 0.875rem;
  color: var(--jt-text-muted) !important;
  margin-bottom: 8px;
}

.jt-article__title {
  font-family: var(--jt-font-heading) !important;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0;
  color: var(--jt-text-primary) !important;
}

.jt-article__featured {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
}

.jt-article__featured img {
  width: 100%;
  height: auto;
  display: block;
}

.jt-article__content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--jt-text-secondary) !important;
}

.jt-article__content h2,
.jt-article__content h3,
.jt-article__content h4 {
  font-family: var(--jt-font-body) !important;
  color: var(--jt-text-primary) !important;
  margin: 2em 0 0.75em;
  line-height: 1.3;
}

.jt-article__content h2 { font-size: 1.5rem; }
.jt-article__content h3 { font-size: 1.25rem; }
.jt-article__content h4 { font-size: 1.125rem; }

.jt-article__content p {
  margin: 0 0 1.5em;
}

.jt-article__content a {
  color: var(--jt-accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jt-article__content a:hover {
  text-decoration: none;
}

.jt-article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.5em 0;
}

.jt-article__content blockquote {
  margin: 1.5em 0;
  padding: 0 0 0 1.5em;
  border-left: 3px solid var(--jt-card-border);
  font-style: italic;
  color: var(--jt-text-muted) !important;
}

.jt-article__content ul,
.jt-article__content ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.jt-article__content li {
  margin-bottom: 0.5em;
}

.jt-article__content pre,
.jt-article__content code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.9em;
}

.jt-article__content code {
  background: rgba(0,0,0,0.05);
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

[data-theme="dark"] .jt-article__content code {
  background: rgba(255,255,255,0.1);
}

.jt-article__content pre {
  background: var(--jt-bg-secondary);
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.jt-article__content pre code {
  background: none;
  padding: 0;
}

/* ==========================================================================
   Language Toggle - Complete Styles
   ========================================================================== */

/* Toggles container */
.jt-sidebar__toggles {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Language toggle button */
.jt-lang-toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: transparent;
  border: none;
  color: var(--jt-text-muted);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--jt-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0;
  margin: 0;
}

.jt-lang-toggle:hover {
  color: var(--jt-text-primary);
  background: rgba(0,0,0,0.04);
}

[data-theme="dark"] .jt-lang-toggle:hover {
  background: rgba(255,255,255,0.06);
}

/* Language labels - positioned in center, toggle visibility */
.jt-lang-toggle__en,
.jt-lang-toggle__fr {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  line-height: 1;
}

/* Default (English mode): show FR to switch to French */
.jt-lang-toggle__en { opacity: 1; pointer-events: none; }
.jt-lang-toggle__fr { opacity: 1; }

/* French mode: show EN to switch to English */
html[data-lang="fr"] .jt-lang-toggle__en { opacity: 1; pointer-events: auto; }
html[data-lang="fr"] .jt-lang-toggle__fr { opacity: 1; pointer-events: none; }

/* Tooltip */
.jt-lang-toggle::after {
  content: attr(data-tooltip-en);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--jt-text-primary);
  color: var(--jt-bg-primary);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  white-space: nowrap;
  opacity: 1;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.jt-lang-toggle::before {
  content: "";
  position: absolute;
  left: calc(100% + 4px);
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--jt-text-primary);
  opacity: 1;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 1001;
}

.jt-lang-toggle:hover::after,
.jt-lang-toggle:hover::before {
  opacity: 1;
  visibility: visible;
}

/* French mode tooltip */
html[data-lang="fr"] .jt-lang-toggle::after {
  content: attr(data-tooltip-fr);
}

/* ==========================================================================
   Mobile - Language Toggle
   ========================================================================== */

@media (max-width: 768px) {
  .jt-sidebar__toggles {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .jt-lang-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 11px;
  }

  /* Keep labels absolutely positioned and centered on mobile too */
  .jt-lang-toggle__en,
  .jt-lang-toggle__fr {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Hide tooltip on mobile (no hover) */
  .jt-lang-toggle::after,
  .jt-lang-toggle::before {
    display: none;
  }
}
