
/* ============================================================
   BLOG / FRONT PAGE STYLES
   ============================================================ */

/* ── Hero Banner ── */
.ts-hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.ts-hero-banner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 130%;
  filter: brightness(0.55) saturate(0.9);
}

.ts-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--forest) 20%, rgba(13,31,20,0.15) 70%);
}

.ts-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 56px;
  max-width: 800px;
  animation: ts-fadeUp 0.8s ease both;
}

.ts-hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.85;
}

.ts-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--parchment);
  margin-bottom: 16px;
}

.ts-hero-title em { font-style: italic; color: var(--gold); }

.ts-hero-sub {
  font-size: 15px;
  color: var(--parchment2);
  opacity: 0.75;
  line-height: 1.7;
  max-width: 560px;
}

.ts-hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.ts-hero-tag {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  padding: 4px 12px;
  border-radius: 2px;
}

.ts-hero-date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

.ts-hero-read {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--forest);
  background: var(--gold);
  padding: 8px 16px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
  margin-left: auto;
}

.ts-hero-read:hover { background: var(--gold2); color: var(--forest); }

@keyframes ts-fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Blog Layout ── */
.ts-blog-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 48px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

/* ── Featured Post Card ── */
.ts-featured-card {
  background: var(--forest2);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 32px;
  transition: border-color 0.25s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: inherit;
}

.ts-featured-card:hover { border-color: var(--gold-dim); color: inherit; }

.ts-featured-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--forest3), var(--forest4));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.ts-featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.ts-featured-thumb-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--forest3), var(--forest4));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ts-featured-thumb-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent, transparent 20px,
    rgba(201,169,110,0.03) 20px,
    rgba(201,169,110,0.03) 21px
  );
}

.ts-chart-deco { width: 160px; opacity: 0.2; }

.ts-featured-body { padding: 24px 28px 28px; }

.ts-card-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.ts-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--parchment);
  margin-bottom: 10px;
}

.ts-card-excerpt {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(245,237,216,0.6);
  margin-bottom: 18px;
}

.ts-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ts-card-date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}

.ts-read-link {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.ts-read-link:hover { gap: 10px; color: var(--gold2); }

/* ── Article List ── */
.ts-article-list { display: flex; flex-direction: column; }

.ts-article-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border2);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.ts-article-row:first-child { padding-top: 0; }
.ts-article-row:last-child  { border-bottom: none; }
.ts-article-row:hover .ts-article-row-title { color: var(--gold); }

.ts-article-row-cat {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.ts-article-row-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--parchment);
  transition: color 0.2s;
  margin-bottom: 5px;
}

.ts-article-row-excerpt {
  font-size: 12px;
  color: rgba(245,237,216,0.45);
  line-height: 1.6;
}

.ts-article-row-date {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 2px;
}

/* ── Sidebar ── */
.ts-sidebar { position: sticky; top: 80px; }

.ts-profile-card {
  background: var(--forest2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 24px 20px;
  margin-bottom: 20px;
  text-align: center;
}

.ts-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  margin: 0 auto 12px;
  display: block;
  object-fit: cover;
}

.ts-profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}

.ts-profile-bio {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(245,237,216,0.55);
  margin-bottom: 16px;
}

.ts-profile-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--border2);
  border-bottom: 1px solid var(--border2);
  margin-bottom: 16px;
}

.ts-stat-val {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--parchment);
}

.ts-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 2px;
}

.ts-follow-btn {
  display: block;
  width: 100%;
  padding: 9px;
  background: var(--gold);
  color: var(--forest);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
}

.ts-follow-btn:hover { background: var(--gold2); color: var(--forest); }

.ts-sidebar-card {
  background: var(--forest2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.ts-sidebar-card-title {
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border2);
}

.ts-tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; }

.ts-tag {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.ts-tag:hover { border-color: var(--gold-dim); color: var(--gold); }

/* ── Blog Responsive ── */
@media (max-width: 900px) {
  .ts-blog-wrap {
    grid-template-columns: 1fr;
    padding: 40px 24px 60px;
    gap: 40px;
  }

  .ts-hero-content { padding: 0 28px 40px; }
  .ts-sidebar { position: static; }
}

/* ── Hero fallback background (shown when no banner image is uploaded) ── */
.ts-hero-fallback-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #0d1f14 0%, #1a2e20 55%, #243d2a 100%);
  overflow: hidden;
}

.ts-hero-fallback-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ============================================================
   CUSTOM TWITTER FEEDS PLUGIN — TREND SAGE OVERRIDE STYLES
   Overrides Smash Balloon's default styling to match the theme.
   All selectors are prefixed with .ts-x-feed-wrap for specificity.
   ============================================================ */

.ts-x-feed-wrap {
  margin-bottom: 8px;
}

/* ── Wrapper & feed container ── */
.ts-x-feed-wrap #ctf,
.ts-x-feed-wrap .ctf-feed-window {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-family: 'Lora', Georgia, serif !important;
}

/* ── Hide default header (we use our own section head) ── */
.ts-x-feed-wrap .ctf-header-bio,
.ts-x-feed-wrap .ctf-header,
.ts-x-feed-wrap .ctf-header-text,
.ts-x-feed-wrap .ctf-header-img,
.ts-x-feed-wrap #ctf .ctf-header {
  display: none !important;
}

/* ── Individual tweet cards ── */
.ts-x-feed-wrap .ctf-item {
  background: #122018 !important;
  border: 1px solid rgba(201,169,110,0.2) !important;
  border-radius: 3px !important;
  padding: 16px 18px !important;
  margin-bottom: 10px !important;
  transition: border-color 0.2s !important;
}

.ts-x-feed-wrap .ctf-item:hover {
  border-color: #8a7048 !important;
}

/* ── Author row ── */
.ts-x-feed-wrap .ctf-author-box {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.ts-x-feed-wrap .ctf-author-avatar img,
.ts-x-feed-wrap .ctf-author-box img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  border: 1.5px solid #8a7048 !important;
}

.ts-x-feed-wrap .ctf-author-name {
  font-family: 'Playfair Display', serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #c9a96e !important;
}

.ts-x-feed-wrap .ctf-author-screenname {
  font-family: 'DM Mono', monospace !important;
  font-size: 10px !important;
  color: #7a9e80 !important;
  letter-spacing: 0.5px !important;
}

/* ── Tweet text ── */
.ts-x-feed-wrap .ctf-tweet-text,
.ts-x-feed-wrap .ctf-tweet-text p {
  font-family: 'Lora', serif !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
  color: rgba(245,237,216,0.85) !important;
  margin-bottom: 10px !important;
}

/* ── Links within tweets ── */
.ts-x-feed-wrap .ctf-tweet-text a,
.ts-x-feed-wrap .ctf-tweet-text a:visited {
  color: #c9a96e !important;
  text-decoration: none !important;
}

.ts-x-feed-wrap .ctf-tweet-text a:hover {
  color: #e8c98a !important;
  text-decoration: underline !important;
}

/* ── Date / meta line ── */
.ts-x-feed-wrap .ctf-tweet-meta,
.ts-x-feed-wrap .ctf-tweet-date,
.ts-x-feed-wrap .ctf-time {
  font-family: 'DM Mono', monospace !important;
  font-size: 10px !important;
  color: #7a9e80 !important;
  letter-spacing: 0.5px !important;
}

/* ── Action bar (like, retweet, reply) ── */
.ts-x-feed-wrap .ctf-actions,
.ts-x-feed-wrap .ctf-reply-count,
.ts-x-feed-wrap .ctf-retweet-count,
.ts-x-feed-wrap .ctf-like-count {
  font-family: 'DM Mono', monospace !important;
  font-size: 10px !important;
  color: #7a9e80 !important;
}

.ts-x-feed-wrap .ctf-actions a,
.ts-x-feed-wrap .ctf-actions a:visited {
  color: #7a9e80 !important;
  text-decoration: none !important;
}

.ts-x-feed-wrap .ctf-actions a:hover {
  color: #c9a96e !important;
}

/* ── X/Twitter bird icon ── */
.ts-x-feed-wrap .ctf-twitter-link,
.ts-x-feed-wrap .ctf-twitterlink {
  color: #8a7048 !important;
  opacity: 0.6;
}

/* ── "Load more" button ── */
.ts-x-feed-wrap .ctf-more,
.ts-x-feed-wrap #ctf-more-btn {
  background: transparent !important;
  border: 1px solid rgba(201,169,110,0.2) !important;
  border-radius: 2px !important;
  color: #7a9e80 !important;
  font-family: 'DM Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  padding: 10px 20px !important;
  margin-top: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  width: 100% !important;
}

.ts-x-feed-wrap .ctf-more:hover,
.ts-x-feed-wrap #ctf-more-btn:hover {
  border-color: #8a7048 !important;
  color: #c9a96e !important;
}

/* ── Images in tweets ── */
.ts-x-feed-wrap .ctf-tweet-media img,
.ts-x-feed-wrap .ctf-media img {
  border-radius: 3px !important;
  border: 1px solid rgba(201,169,110,0.15) !important;
  max-width: 100% !important;
  margin-top: 8px !important;
}

/* ── Quoted tweets ── */
.ts-x-feed-wrap .ctf-quoted-tweet {
  background: #1a2e20 !important;
  border: 1px solid rgba(201,169,110,0.12) !important;
  border-radius: 3px !important;
  padding: 12px !important;
  margin-top: 10px !important;
}

/* ── Plugin not installed notice ── */
.ts-x-feed-notice {
  background: #122018;
  border: 1px solid rgba(201,169,110,0.2);
  border-radius: 3px;
  padding: 24px;
  text-align: center;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: rgba(122,158,128,0.7);
  line-height: 1.8;
}

.ts-x-feed-notice a {
  color: #c9a96e;
  text-decoration: none;
}

.ts-x-feed-notice a:hover { text-decoration: underline; }
