/* 20 premium article templates for marketplace projects */
.th-tpl { position: relative; overflow: hidden; border-radius: 28px; margin-top: 0.5rem; }
.th-tpl-inner { position: relative; z-index: 1; padding: 1.5rem; display: grid; gap: 1rem; }
.th-tpl .th-article-block {
  background: rgba(255,255,255,0.92);
  border: 0;
  box-shadow: 0 18px 40px rgba(15,27,45,0.08);
}
.th-tpl::before, .th-tpl::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}

/* 1 Wave Orange */
.th-tpl-wave-orange {
  background:
    radial-gradient(circle at 90% 0%, #ff8a3d 0%, transparent 42%),
    linear-gradient(160deg, #fff7f0, #ffffff 45%, #ffe8d6);
}
.th-tpl-wave-orange::before {
  width: 280px; height: 280px; right: -60px; top: -80px;
  background: linear-gradient(135deg, #ff6b00, #ff3d7f); opacity: 0.85;
  border-radius: 40% 60% 55% 45%;
}
.th-tpl-wave-orange .th-article-block h2 { color: #ff6b00; }

/* 2 Wave Blue */
.th-tpl-wave-blue {
  background: linear-gradient(180deg, #f4f9ff 0%, #e8f2ff 40%, #0b1f3a 40%, #0b1f3a 100%);
  color: inherit;
}
.th-tpl-wave-blue::before {
  width: 220px; height: 220px; left: 8%; top: 6%;
  border: 14px solid #4db7ff; background: transparent; border-radius: 28% 72% 40% 60%;
}
.th-tpl-wave-blue .th-article-block:nth-child(n+2) {
  background: rgba(255,255,255,0.08); color: #eaf2ff; border: 1px solid rgba(255,255,255,0.12);
}
.th-tpl-wave-blue .th-article-block:nth-child(n+2) h2,
.th-tpl-wave-blue .th-article-block:nth-child(n+2) p { color: #eaf2ff; }

/* 3 Wave Violet */
.th-tpl-wave-violet {
  background:
    radial-gradient(circle at 100% 0%, #c084fc, transparent 40%),
    linear-gradient(145deg, #2e1065, #7c3aed 35%, #fff 35%);
}
.th-tpl-wave-violet::after {
  width: 120px; height: 120px; left: 12%; bottom: 18%;
  background: #a855f7; opacity: 0.35;
}
.th-tpl-wave-violet .th-article-block h2 { color: #7c3aed; }

/* 4 Mesh Sunset */
.th-tpl-mesh-sunset {
  background:
    radial-gradient(at 20% 20%, rgba(255,107,0,0.35), transparent 45%),
    radial-gradient(at 80% 0%, rgba(255,61,127,0.25), transparent 40%),
    radial-gradient(at 50% 100%, rgba(56,189,248,0.2), transparent 45%),
    #fffaf5;
}
.th-tpl-mesh-sunset .th-article-block { backdrop-filter: blur(8px); }

/* 5 Dot Grid */
.th-tpl-dot-grid {
  background-color: #f8fafc;
  background-image: radial-gradient(#cbd5e1 1.2px, transparent 1.2px);
  background-size: 18px 18px;
}
.th-tpl-dot-grid .th-article-block {
  border-left: 4px solid #0ea5e9;
  border-radius: 18px;
}

/* 6 Glass Cards */
.th-tpl-glass-card {
  background: linear-gradient(135deg, #e0f2fe, #fdf2f8 50%, #fff7ed);
}
.th-tpl-glass-card .th-article-block {
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.7);
}

/* 7 Split Ink */
.th-tpl-split-ink {
  background: linear-gradient(105deg, #0f1b2d 0 38%, #fff8f2 38% 100%);
}
.th-tpl-split-ink .th-article-block:first-child {
  background: transparent; box-shadow: none; color: #fff;
}
.th-tpl-split-ink .th-article-block:first-child h2,
.th-tpl-split-ink .th-article-block:first-child p { color: #fff; }
.th-tpl-split-ink .th-article-block h2 { color: #ff6b00; }

/* 8 Calc Mint */
.th-tpl-calc-mint {
  background: linear-gradient(180deg, #ecfdf5, #ffffff);
  border: 1px solid #a7f3d0;
}
.th-tpl-calc-mint .th-article-block {
  border-top: 3px solid #10b981;
  font-variant-numeric: tabular-nums;
}
.th-tpl-calc-mint .th-article-block h2 { color: #047857; }

/* 9 Calc Slate */
.th-tpl-calc-slate {
  background: #f1f5f9;
}
.th-tpl-calc-slate .th-article-block {
  border-radius: 8px;
  border-left: 6px solid #334155;
  box-shadow: none;
}
.th-tpl-calc-slate .th-article-block h2 { color: #0f172a; letter-spacing: 0.02em; }

/* 10 Calc Gold */
.th-tpl-calc-gold {
  background:
    linear-gradient(135deg, rgba(245,158,11,0.15), transparent 40%),
    #fffbeb;
}
.th-tpl-calc-gold .th-article-block h2 { color: #b45309; }
.th-tpl-calc-gold .th-article-block {
  border: 1px solid #fcd34d;
}

/* 11 Agency Noir */
.th-tpl-agency-noir {
  background: #0b1220;
  color: #e5e7eb;
}
.th-tpl-agency-noir .th-article-block {
  background: #111827; border: 1px solid #1f2937; color: #e5e7eb;
}
.th-tpl-agency-noir .th-article-block h2 { color: #fb923c; }
.th-tpl-agency-noir .th-article-block p { color: #9ca3af; }

/* 12 Agency Cream */
.th-tpl-agency-cream {
  background: #faf6ef;
}
.th-tpl-agency-cream .th-article-block {
  background: transparent; box-shadow: none; border-bottom: 1px solid #e7e0d4;
  border-radius: 0; padding-left: 0; padding-right: 0;
}
.th-tpl-agency-cream .th-article-block h2 {
  font-size: 1.8rem; color: #1c1917;
}

/* 13 Poster Pop */
.th-tpl-poster-pop {
  background: #fff;
}
.th-tpl-poster-pop::before {
  width: 100%; height: 140px; left: 0; top: 0; border-radius: 0;
  background: linear-gradient(90deg, #ff6b00, #ff3d7f, #6366f1);
}
.th-tpl-poster-pop .th-article-block:first-child {
  margin-top: 2.5rem;
}
.th-tpl-poster-pop .th-article-block h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-transform: uppercase; letter-spacing: -0.04em;
}

/* 14 Soft Sand */
.th-tpl-soft-sand {
  background: linear-gradient(180deg, #f5efe6, #fff);
}
.th-tpl-soft-sand .th-article-block {
  background: #fffdf8; border: 1px solid #e8dcc8;
}
.th-tpl-soft-sand .th-article-block h2 { color: #9a3412; }

/* 15 Neon Frame */
.th-tpl-neon-frame {
  background: #070b14;
  box-shadow: inset 0 0 0 2px #22d3ee, 0 0 40px rgba(34,211,238,0.25);
}
.th-tpl-neon-frame .th-article-block {
  background: rgba(15,23,42,0.9); border: 1px solid rgba(34,211,238,0.35);
}
.th-tpl-neon-frame .th-article-block h2 { color: #67e8f9; text-shadow: 0 0 18px rgba(34,211,238,0.45); }
.th-tpl-neon-frame .th-article-block p { color: #cbd5e1; }

/* 16 Ribbon Rise */
.th-tpl-ribbon-rise {
  background: #fff;
}
.th-tpl-ribbon-rise .th-article-block h2 {
  display: inline-block;
  background: linear-gradient(90deg, #ff6b00, #ff8a3d);
  color: #fff !important;
  padding: 0.35rem 0.9rem;
  border-radius: 8px 18px 8px 18px;
  box-shadow: 0 10px 24px rgba(255,107,0,0.3);
}

/* 17 Folio Lined */
.th-tpl-folio-lined {
  background:
    repeating-linear-gradient(transparent, transparent 27px, rgba(148,163,184,0.35) 28px),
    #fffef8;
}
.th-tpl-folio-lined .th-article-block {
  background: transparent; box-shadow: none; border: 0;
  border-left: 3px solid #fca5a5; border-radius: 0;
}

/* 18 Magazine */
.th-tpl-magazine .th-tpl-inner {
  column-count: 2; column-gap: 1.25rem;
}
.th-tpl-magazine .th-article-block {
  break-inside: avoid; margin-bottom: 1rem;
}
.th-tpl-magazine .th-article-block:first-child {
  column-span: all;
  background: linear-gradient(120deg, #0f1b2d, #1e3a5f);
  color: #fff;
}
.th-tpl-magazine .th-article-block:first-child h2,
.th-tpl-magazine .th-article-block:first-child p { color: #fff; }
@media (max-width: 720px) {
  .th-tpl-magazine .th-tpl-inner { column-count: 1; }
}

/* 19 Blueprint */
.th-tpl-blueprint {
  background-color: #0b3d91;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}
.th-tpl-blueprint .th-article-block {
  background: rgba(11,61,145,0.55);
  border: 1px dashed rgba(255,255,255,0.45);
  color: #e0f2fe;
}
.th-tpl-blueprint .th-article-block h2 { color: #7dd3fc; }
.th-tpl-blueprint .th-article-block p { color: #bae6fd; }

/* 20 Classic Clean */
.th-tpl-classic {
  background: #fff;
  border: 1px solid rgba(15,27,45,0.08);
}
.th-tpl-classic .th-article-block {
  box-shadow: none;
  border: 1px solid #eef2f7;
}
