/*
Theme Name: TLT Theme
Theme URI: https://thelivelythree.earth
Author: The Lively Three
Author URI: https://thelivelythree.earth
Description: Custom theme for The Lively Three blog, matching the main site design.
Version: 1.0.0
License: Private
Text Domain: tlt-theme
*/


/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  position: relative;
  font-family: 'Montserrat', sans-serif;
  background: #ffffff;
  color: rgba(62,51,48,1);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }


/* ── CSS Variables ── */
:root {
  --purple:  #874fba;
  --purple2: #7c5cc0;
  --cyan:    #10d9f7;
  --cyan2:   #00ecff;
  --grad:    linear-gradient(135deg, #874fba 0%, #7c5cc0 45%, #10d9f7 100%);
  --body:    rgba(62,51,48,1);
  --muted:   #816a64;
  --font:    'Montserrat', sans-serif;
}

/* ════════════════════════════════════
   HEADER — all rules scoped to ID so
   they never bleed onto #tlt-header
════════════════════════════════════ */

/* Nuclear reset: strip every possible
   background/border WordPress or any
   plugin might inject onto the element */
header#tlt-header,
#tlt-header {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Legacy class-based header (unused in
   this theme but kept so nothing breaks
   if a plugin references it) */
.tlt-header {
  background: transparent;
  border: none;
  box-shadow: none;
}
.tlt-header.scrolled {
  box-shadow: none;
}
.tlt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 44px;
  max-width: 1200px;
  margin: 0 auto;
}
.tlt-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.tlt-logo img { width: 54px; height: 54px; object-fit: contain; border-radius: 50%; }
.tlt-logo-text {
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: #3e3330;
  white-space: nowrap;
}
.tlt-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.tlt-nav a {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: #3e3330;
  text-decoration: none;
  transition: color 0.2s ease;
}
.tlt-nav a:hover, .tlt-nav a.active {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.tlt-header-spacer { height: 78px; }

/* Mobile hamburger */
.tlt-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(135,79,186,0.18);
  border-radius: 12px;
  padding: 10px;
  backdrop-filter: blur(8px);
}
.tlt-hamburger span {
  display: block;
  width: 18px; height: 2px;
  background: #874fba;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.tlt-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(245,242,255,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tlt-mobile-menu.open { display: flex; }
.tlt-mobile-menu a {
  font-family: var(--font);
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 700;
  background: radial-gradient(circle at 51% 93%, #874fba, #6378cc 70%, #00ecff 143%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 10px 40px;
  text-align: center;
}


.tlt-page-glow {
  position: fixed;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  width: 1600px;
  height: 100px;

  background:
    radial-gradient(
      circle at 50% 51%,
      rgba(76, 175, 80, 0.24) 0%,
      rgba(141, 182, 0, 0.18) 32%,
      rgba(255, 221, 158, 0.14) 70%,
      transparent 100%
    );

  filter: blur(120px);
  -webkit-filter: blur(120px);

  opacity: 1;

  pointer-events: none;

  z-index: -1;
}

/* ════════════════════════════════════
   HERO
════════════════════════════════════ */
.tlt-hero {
  text-align: center;
  padding: 200px 24px 72px;
  position: relative;
  overflow: visible;
}

.tlt-hero-badge {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  color: #1f2430;
  text-transform: uppercase;
  margin: 0 auto 28px;
}

.tlt-hero-title {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.19;
  text-align: center;
  background-image: radial-gradient(circle at 51% 93%, #874fba, #6378cc 72%, #449ddc 111%, #00ecff 146%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 868px;
  margin: 0 auto 28px;
}
.tlt-hero-desc {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.78;
  text-align: center;
  color: #3e3330;
  max-width: 734px;
  margin: 0 auto;
}


/* ════════════════════════════════════
   CATEGORY FILTERS
════════════════════════════════════ */
.tlt-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 48px;
  max-width: 900px;
  margin: 0 auto;
}
.tlt-filter-pill {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(135,79,186,0.2);
  background: rgba(255,255,255,0.6);
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  box-sizing: border-box;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.tlt-filter-pill:hover,
.tlt-filter-pill.current {
  background: linear-gradient(
    90deg,
    #874fba 0%,
    #6f6bd1 55%,
    #2bc3eb 100%
  );

  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;

  color: #fff !important;
  -webkit-text-fill-color: #fff;

  /* keep size stable */
  border-color: rgba(135,79,186,0);

  /* THIS fixes edge artifacts */
  background-clip: padding-box;

  box-shadow:
    0 8px 22px rgba(135,79,186,0.18);
}

/* ════════════════════════════════════
   POST GRID
════════════════════════════════════ */
.tlt-grid-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.tlt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}


/* ════════════════════════════════════
   POST CARD
════════════════════════════════════ */
.tlt-card {
  width: 100%;
  min-height: 522px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(135, 79, 186, 0.12);
  box-shadow: 0 0 20px 0 #f8f7f6;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tlt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(135, 79, 186, 0.12);
  border-color: rgba(93, 150, 213, 0.28);
}

/* Card image */
.tlt-card-img-wrap {
  width: 100%;
  height: 223px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(135,79,186,0.06), rgba(16,217,247,0.06));
}
.tlt-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.tlt-card:hover .tlt-card-img-wrap img { transform: scale(1.04); }
.tlt-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card body */
.tlt-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 16px;
}

/* Category badge */
.tlt-card-category {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #ccb7df;
  background-color: #f0e7f7;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #5d96d5;
  -webkit-text-fill-color: #5d96d5;
  width: fit-content;
  margin-bottom: 8px;
}

/* Card title — clamped to 2 lines */
.tlt-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--font);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.56;
  color: #3e3330;
  -webkit-text-fill-color: #3e3330;
  min-height: calc(1.56 * 18px * 2);
  margin: 0 0 11px;
}

/* Card excerpt — clamped to 4 lines */
.tlt-card-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  min-height: 130px;
  overflow: hidden;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.83;
  color: #3e3330;
  -webkit-text-fill-color: #3e3330;
  flex: 0;
  /* margin: 0 0 12px; */
}
.tlt-card-excerpt p { margin: 0; }

/* Card divider */
.tlt-card-divider {
  width: 100%;
  height: 1px;
  /* margin: 0 0 11px; */
  background-color: #d7cecb;
}

/* Card meta */
.tlt-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.tlt-card-date {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: #3e3330;
  -webkit-text-fill-color: #3e3330;
}
.tlt-card-read-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.tlt-card-read {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  background-image: radial-gradient(circle at 50% 62%, #874fba, #6378cc 76%, #449ddc 118%, #00ecff 155%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.tlt-card-arrow {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.5px);

  background-image:
    radial-gradient(
      circle at 50% 50%,
      #874fba,
      #6378cc 127%,
      #449ddc 197%,
      #00ecff 258%
    );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ════════════════════════════════════
   SINGLE POST
════════════════════════════════════ */
.tlt-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.tlt-single-hero-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 36px;
}
.tlt-single-category {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(135,79,186,0.08);
  color: var(--purple);
  margin-bottom: 16px;
}
.tlt-single-title {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.25;
  color: rgba(62,51,48,1);
  margin-bottom: 20px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tlt-single-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid rgba(135,79,186,0.1);
}
.tlt-single-content {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.85;
  color: rgba(62,51,48,0.88);
}
.tlt-single-content h1,
.tlt-single-content h2,
.tlt-single-content h3,
.tlt-single-content h4 {
  font-family: var(--font);
  font-weight: 700;
  color: rgba(62,51,48,1);
  margin: 32px 0 14px;
  line-height: 1.3;
}
.tlt-single-content h2 { font-size: clamp(18px, 3vw, 24px); }
.tlt-single-content h3 { font-size: clamp(16px, 2.5vw, 20px); }
.tlt-single-content p { margin-bottom: 18px; }
.tlt-single-content ul,
.tlt-single-content ol { padding-left: 24px; margin-bottom: 18px; }
.tlt-single-content li { margin-bottom: 8px; }
.tlt-single-content a { color: var(--purple); text-decoration: underline; }
.tlt-single-content img { border-radius: 16px; margin: 24px auto; max-width: 100%; }
.tlt-single-content blockquote {
  border-left: 3px solid var(--purple);
  padding: 12px 20px;
  background: rgba(135,79,186,0.04);
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-style: italic;
  color: rgba(62,51,48,0.75);
}
.tlt-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 40px;
  margin-bottom: 32px;
  cursor: pointer;
}


/* ════════════════════════════════════
   PAGINATION
════════════════════════════════════ */
.tlt-pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 32px 0 0;
}
.tlt-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(135,79,186,0.15);
  color: var(--purple);
  background: rgba(255,255,255,0.6);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}
.tlt-pagination .page-numbers:hover,
.tlt-pagination .page-numbers.current {
  background: var(--grad);
  color: #fff;
  -webkit-text-fill-color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(135,79,186,0.3);
}


/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.tlt-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 64px 24px 48px;
  background: linear-gradient(to bottom, #1a1035, #0d0820);
  margin-top: 40px;
}
.tlt-footer-logo {
  width: 100px; height: 100px;
  border-radius: 50%;
  object-fit: contain;
  margin-bottom: 20px;
}
.tlt-footer-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.tlt-footer-badges a { transition: transform 0.2s ease; }
.tlt-footer-badges a:hover { transform: scale(1.05); }
.tlt-footer-badges img { height: clamp(36px, 5vw, 44px); width: auto; }
.tlt-footer-support {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  line-height: 2.17;
  max-width: 612px;
  margin-bottom: 32px;
}
.tlt-footer-support a { color: #fff; font-weight: 700; text-decoration: none; }
.tlt-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}
.tlt-footer-nav a {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  text-decoration: underline;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.tlt-footer-nav a:hover { opacity: 1; }
.tlt-footer-copy {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-align: center;
}


/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1024px) {
  .tlt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .tlt-header-inner { padding: 10px 20px; }
  .tlt-logo-text { display: none; }
  .tlt-nav { display: none; }
  .tlt-hamburger { display: flex; }
  .tlt-hero { padding: 90px 20px 56px; }
  .tlt-grid-wrap { padding: 0 16px 60px; }
  .tlt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tlt-grid { grid-template-columns: 1fr; }
  .tlt-hero { padding: 40px 20px 48px; }
  .tlt-hero-badge { font-size: 13px; }
}
@media (min-width: 769px) {
  .tlt-hamburger { display: none; }
  .tlt-mobile-menu { display: none !important; }
}


