/* ============================================================
   INCLUDE360 — COMPONENTS (clean rewrite, no legacy patches)
   All five broken components rebuilt from scratch here.
   This file loads AFTER style.css and overrides cleanly.
   ============================================================ */

/* ─────────────────────────────────────────────
   1. LINKEDIN-STYLE PROFILE HERO
   Cover photo full width, avatar overlaps bottom-left,
   name/title sits below in white space — exact LinkedIn layout
   ───────────────────────────────────────────── */

.profile-wrap {
  background: #fff;
}

.profile-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.profile-identity {
  background: #fff;
  padding: 0 2rem 1.25rem;
  border-bottom: 1px solid #e0e0e0;
}

.profile-avatar-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  overflow: hidden;
  margin-top: -60px;
  margin-bottom: 12px;
  background: #eee;
  flex-shrink: 0;
}

.profile-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.profile-full-name {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #111;
  margin-bottom: 4px;
  letter-spacing: -0.5px;
}

.profile-headline {
  font-size: 15px;
  color: #444;
  margin-bottom: 4px;
  line-height: 1.5;
}

.profile-loc {
  font-size: 13px;
  color: #C44A1E;
  font-weight: 500;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.profile-main-body {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

.profile-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #C44A1E;
}

/* ─────────────────────────────────────────────
   2. ARTICLE HERO — full-bleed photo + centred text
   ───────────────────────────────────────────── */

.art-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.art-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  z-index: 0;
}

.art-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.88) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
  z-index: 1;
}

.art-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3rem 2.5rem 3.5rem;
  text-align: center;
  color: #fff;
}

.art-hero-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffb89a;
  font-weight: 600;
  margin-bottom: 1rem;
}

.art-hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.art-hero-byline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.art-hero-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255,255,255,0.5);
  display: block;
  flex-shrink: 0;
}

.art-hero-meta {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

.art-hero-meta strong {
  color: #fff;
  font-weight: 600;
}

/* ─────────────────────────────────────────────
   3. CREATOR CARDS — LinkedIn style, no name cutoff
   ───────────────────────────────────────────── */

.cc {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.cc:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  border-color: #C44A1E;
}

.cc-cover {
  width: 100%;
  height: 110px;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.cc-identity {
  padding: 0 1.25rem 0;
  margin-top: 0;
}

.cc-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  overflow: hidden;
  margin-top: -34px;
  margin-bottom: 10px;
}

.cc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.cc-body {
  padding: 0 1.25rem 1.5rem;
}

.cc-name {
  font-family: 'Syne', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #111;
  margin-bottom: 3px;
}

.cc-role {
  font-size: 13px;
  color: #595959;
  margin-bottom: 3px;
}

.cc-location {
  font-size: 12px;
  color: #C44A1E;
  font-weight: 500;
  margin-bottom: 12px;
}

.cc-bio {
  font-size: 13px;
  color: #595959;
  line-height: 1.65;
  margin-bottom: 14px;
}

.cc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #C44A1E;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 6px;
}

.cc-link:hover { color: #A33A12; }

/* ─────────────────────────────────────────────
   4. MOBILE — clean, decisive breakpoints
   ───────────────────────────────────────────── */

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

@media (max-width: 960px) {
  .cc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .profile-cover {
    height: 160px;
  }

  .profile-avatar-ring {
    width: 88px;
    height: 88px;
    margin-top: -44px;
  }

  .profile-full-name { font-size: 22px; }

  .profile-main-body {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 3rem;
    gap: 1.5rem;
  }

  .art-hero { min-height: 340px; }
  .art-hero-content { padding: 2rem 1.25rem 2.5rem; }
  .art-hero-title { font-size: clamp(24px, 7vw, 36px); }
}

@media (max-width: 480px) {
  .profile-avatar-ring {
    width: 72px;
    height: 72px;
    margin-top: -36px;
  }
  .profile-identity { padding: 0 1.25rem 1rem; }
  .profile-full-name { font-size: 19px; }
  .profile-headline { font-size: 13px; }
}

/* ══════════════════════════════════════
   V11 — ARTICLES PAGE LAYOUT + SHORTS
   ══════════════════════════════════════ */

/* ── FEATURED ARTICLE LAYOUT ── */
.articles-layout {
  display: grid;
  grid-template-columns: 60fr 40fr;
  gap: 2rem;
  align-items: start;
}

/* Featured article — left */
.article-featured {
  position: sticky;
  top: 80px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.article-featured:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
.article-featured-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.article-featured-body {
  padding: 1.75rem;
}
.article-featured-tag {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-featured-tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--coral);
  flex-shrink: 0;
}
.article-latest-badge {
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  display: inline-block;
}
.article-featured-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 1rem;
}
.article-featured-teaser {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.article-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.article-featured-author {
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-featured-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--border);
}
.article-featured-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.article-featured-read {
  font-size: 12px;
  color: var(--muted);
}

/* Compact article grid — right */
.articles-compact-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-compact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.article-compact:hover {
  border-color: var(--coral);
  transform: translateX(4px);
}
.article-compact-img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  object-position: center top;
  display: block;
  flex-shrink: 0;
}
.article-compact-body {
  padding: 0.75rem 0.75rem 0.75rem 0;
  flex: 1;
  min-width: 0;
}
.article-compact-tag {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 5px;
}
.article-compact-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-compact-author {
  display: flex;
  align-items: center;
  gap: 6px;
}
.article-compact-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.article-compact-author span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

/* ── SHORTS SECTION ── */
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.short-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.short-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.short-thumb {
  position: relative;
  /* 9:16 vertical ratio */
  aspect-ratio: 9 / 16;
  background: var(--bg-dark);
  overflow: hidden;
}

.short-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s;
}
.short-card:hover .short-thumb-img {
  transform: scale(1.04);
}

.short-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.1) 50%,
    transparent 100%
  );
}

.short-tiktok-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.5px;
}
.short-tiktok-badge svg {
  width: 12px;
  height: 12px;
}

.short-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.short-card:hover .short-play-overlay { opacity: 1; }
.short-play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(196,74,30,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.short-play-btn svg { width: 18px; fill: #fff; margin-left: 3px; }

.short-creator-strip {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.short-creator-strip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(255,255,255,0.6);
  flex-shrink: 0;
}
.short-creator-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.short-creator-handle {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
}

.short-body {
  padding: 1rem 1.1rem 1.25rem;
}
.short-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}
.short-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--coral);
  text-decoration: none;
  border: 1.5px solid var(--coral);
  border-radius: 100px;
  padding: 5px 14px;
  transition: background 0.2s, color 0.2s;
}
.short-cta:hover {
  background: var(--coral);
  color: #fff;
}
.short-cta svg { width: 12px; height: 12px; }

/* ── MOBILE ── */
@media (max-width: 960px) {
  .articles-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .article-featured {
    position: static;
  }
  .article-featured-img { height: 220px; }
  .shorts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (max-width: 600px) {
  .shorts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .article-compact-img { width: 72px; height: 72px; }
}

/* ══════════════════════════════════════
   V12 — COMMENTS, SHARE, FORMS
   ══════════════════════════════════════ */

/* ── COMMENT SECTION ── */
.comments-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2.5rem 4rem;
}
.comments-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
.comments-heading {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.75rem;
}
.comment-form {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
}
.comment-form-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.comment-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}
.comment-form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.comment-form-input,
.comment-form-textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}
.comment-form-input:focus,
.comment-form-textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(196,74,30,0.1);
}
.comment-form-textarea {
  min-height: 100px;
  resize: vertical;
}
.comment-form-hint {
  font-size: 11px;
  color: var(--muted);
}
.comment-submit {
  background: var(--coral);
  color: #fff;
  border: none;
  border-radius: 100px;
  padding: 11px 26px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s;
  margin-top: 4px;
}
.comment-submit:hover { background: var(--coral-hover); }

/* ── SHARE BUTTONS ── */
.share-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2.5rem 2rem;
}
.share-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
}
.share-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  font-family: var(--font-body);
}
.share-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.share-whatsapp { background: #25D366; color: #fff; }
.share-whatsapp:hover { background: #1ebe5d; }
.share-facebook { background: #1877F2; color: #fff; }
.share-facebook:hover { background: #0d6edf; }
.share-x { background: #000; color: #fff; }
.share-x:hover { background: #222; }
.share-linkedin { background: #0A66C2; color: #fff; }
.share-linkedin:hover { background: #084e96; }
.share-copy { background: transparent; border-color: var(--border); color: var(--ink); }
.share-copy:hover { border-color: var(--coral); color: var(--coral); }

/* ── NETLIFY FORM SUCCESS STATE ── */
.form-success {
  display: none;
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: #2E7D32;
  font-size: 14px;
  font-weight: 500;
  align-items: center;
  gap: 10px;
}
.form-success.visible { display: flex; }
.form-success svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ── COMMUNITY FORM UPDATES ── */
.dm-form-wrap { display: flex; flex-direction: column; gap: 12px; }
.dm-form-wrap .form-input,
.dm-form-wrap .form-textarea { width: 100%; box-sizing: border-box; }

@media (max-width: 600px) {
  .comment-form-row { grid-template-columns: 1fr; }
  .share-buttons { gap: 8px; }
  .share-btn { padding: 8px 14px; font-size: 12px; }
  .comments-section { padding: 0 1.25rem 3rem; }
  .share-section { padding: 0 1.25rem 1.5rem; }
}
