/* ============================================
   ProfitHub Premium v4.0 — custom.css
   Health, Wellness & Supplement Reviews
   Redesigned: 2026-03-21 (T014)
   ============================================ */

/* === GLOBAL === */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ph-text);
  font-size: 16px;
  line-height: 1.7;
  background: var(--ph-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .wp-block-heading {
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-weight: 800;
  color: var(--ph-dark);
  line-height: 1.2;
}

a { color: var(--ph-primary); transition: all 0.2s ease; }
a:hover { color: var(--ph-primary-hover); }
::selection { background: var(--ph-primary); color: #fff; }

/* === HEADER === */
header[data-header] {
  background: #fff;
  border-bottom: 1px solid var(--ph-border);
  box-shadow: var(--ph-shadow-sm);
}

.site-title, .site-title a, .ct-logo .site-title,
header .site-branding .site-title a {
  color: var(--ph-primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
}

[data-id="menu"] > a,
header nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ph-dark);
  letter-spacing: -0.01em;
}
[data-id="menu"] > a:hover,
[data-id="menu"] > a[aria-current],
header nav a:hover {
  color: var(--ph-primary);
}

/* Header CTA Button */
header [data-button] a, header .ct-button, header [data-id="button"] a {
  background: var(--ph-primary);
  border-color: var(--ph-primary);
  color: #fff;
  border-radius: var(--ph-radius-sm);
  font-weight: 700;
  padding: 10px 24px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
header [data-button] a:hover, header [data-id="button"] a:hover {
  background: var(--ph-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--ph-primary-rgb), 0.3);
}

/* === BUTTONS (Global) === */
.ph-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--ph-radius-sm);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
}
.ph-btn-primary {
  background: linear-gradient(135deg, var(--ph-primary), #22905a);
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--ph-primary-rgb), 0.3);
}
.ph-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--ph-primary-rgb), 0.4);
  color: #fff;
}
.ph-btn-accent {
  background: var(--ph-accent);
  color: #000;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}
.ph-btn-accent:hover {
  background: var(--ph-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
  color: #000;
}
.ph-btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
}
.ph-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}
.ph-btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}
.ph-btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

/* === HOMEPAGE HERO (v4.0) === */
.ph-hero {
  background: linear-gradient(160deg, #071a10 0%, #0f3320 30%, #1a6b3c 60%, #145a31 100%);
  padding: 100px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative shapes */
.ph-hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ph-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
}
.ph-shape-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--ph-accent) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: ph-float 20s ease-in-out infinite;
}
.ph-shape-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #22d3ee 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation: ph-float 25s ease-in-out infinite reverse;
}
.ph-shape-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--ph-accent) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: ph-float 15s ease-in-out infinite;
}

@keyframes ph-float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -20px); }
  66% { transform: translate(-15px, 15px); }
}

.ph-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.ph-hero-label {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: var(--ph-accent);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ph-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.ph-hero p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.ph-hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.ph-hero-badges {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.ph-hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  font-weight: 500;
}
.ph-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--ph-accent);
  border-radius: 50%;
  display: inline-block;
}

/* === STATS BAR === */
.ph-stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--ph-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 2;
}
.ph-stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  padding: 32px 24px;
}
.ph-stat {
  text-align: center;
}
.ph-stat-number {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--ph-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.ph-stat-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ph-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ph-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--ph-border);
}

/* === SECTIONS === */
.ph-section {
  padding: 72px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.ph-section-alt {
  background: var(--ph-bg-alt);
  padding: 72px 24px;
}
.ph-container {
  max-width: 1200px;
  margin: 0 auto;
}
.ph-section-title {
  text-align: center;
  margin-bottom: 48px;
}
.ph-section-tag {
  display: inline-block;
  background: var(--ph-primary-light);
  color: var(--ph-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.ph-section-title h2 {
  font-size: 2.2rem;
  color: var(--ph-dark);
  margin-bottom: 8px;
}
.ph-section-title p {
  color: var(--ph-text-light);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}
.ph-accent-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--ph-accent), var(--ph-primary));
  margin: 16px auto 0;
  border-radius: 2px;
}
.ph-section-cta {
  text-align: center;
  margin-top: 48px;
}

/* === FEATURED POST === */
.ph-featured-post {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: var(--ph-radius);
  overflow: hidden;
  border: 1px solid var(--ph-border);
  background: #fff;
  transition: all 0.3s ease;
  text-decoration: none;
}
.ph-featured-post:hover {
  box-shadow: var(--ph-shadow-xl);
  border-color: transparent;
  transform: translateY(-2px);
}
.ph-featured-img {
  overflow: hidden;
}
.ph-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
  transition: transform 0.5s ease;
}
.ph-featured-post:hover .ph-featured-img img {
  transform: scale(1.03);
}
.ph-featured-post-body {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ph-featured-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ph-primary-light);
  color: var(--ph-primary);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  width: fit-content;
}
.ph-featured-post h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
  line-height: 1.3;
  color: var(--ph-dark);
}
.ph-featured-post p {
  color: var(--ph-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}
.ph-featured-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ph-text-light);
  margin-bottom: 24px;
}

/* === ARTICLE CARDS === */
.ph-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.ph-article-card {
  background: #fff;
  border-radius: var(--ph-radius);
  overflow: hidden;
  border: 1px solid var(--ph-border);
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.ph-article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ph-shadow-lg);
  border-color: transparent;
}
.ph-card-img-wrap {
  overflow: hidden;
  height: 200px;
}
.ph-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.ph-article-card:hover .ph-card-img-wrap img {
  transform: scale(1.05);
}
.ph-card-placeholder {
  height: 100%;
  background: var(--ph-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.ph-article-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ph-card-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.ph-article-card-cat {
  display: inline-block;
  background: var(--ph-primary-light);
  color: var(--ph-primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ph-card-date {
  font-size: 0.8rem;
  color: var(--ph-text-light);
  font-weight: 500;
}
.ph-article-card h3 {
  font-size: 1.1rem;
  color: var(--ph-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}
.ph-article-card p {
  color: var(--ph-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}
.ph-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ph-border);
}
.ph-read-time {
  font-size: 0.8rem;
  color: var(--ph-text-light);
  font-weight: 500;
}
.ph-read-more {
  color: var(--ph-primary);
  font-weight: 600;
  font-size: 0.88rem;
}

/* === CATEGORY CARDS === */
.ph-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.ph-cat-card {
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  display: block;
  position: relative;
  overflow: hidden;
}
.ph-cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--cat-gradient, linear-gradient(135deg, var(--ph-primary), #22905a));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ph-cat-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: var(--ph-shadow-lg);
}
.ph-cat-card:hover::before {
  opacity: 1;
}
.ph-cat-icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--ph-bg-alt);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: all 0.3s ease;
}
.ph-cat-card:hover .ph-cat-icon-wrap {
  background: var(--ph-primary-light);
}
.ph-cat-icon {
  font-size: 1.8rem;
}
.ph-cat-card h3 {
  font-size: 1.05rem;
  color: var(--ph-dark);
  margin-bottom: 8px;
}
.ph-cat-card p {
  color: var(--ph-text-light);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
.ph-cat-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ph-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === WHY TRUST US === */
.ph-why-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.ph-why-card {
  background: #fff;
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease;
}
.ph-why-card:hover {
  border-color: var(--ph-primary);
  box-shadow: var(--ph-shadow-md);
  transform: translateY(-2px);
}
.ph-why-step {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--ph-primary), #22905a);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
}
.ph-why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.ph-why-card p {
  color: var(--ph-text-light);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* === NEWSLETTER === */
.ph-newsletter {
  background: linear-gradient(135deg, #0f2419, #1a6b3c);
  border-radius: var(--ph-radius);
  padding: 56px 48px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.ph-newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.ph-newsletter-content {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
}
.ph-newsletter h2 {
  color: #fff;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.ph-newsletter p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.ph-newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.ph-newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--ph-radius-sm);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}
.ph-newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.ph-newsletter-form input:focus {
  border-color: var(--ph-accent);
}
.ph-newsletter-form .ph-btn {
  white-space: nowrap;
}
.ph-newsletter-disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* === BOTTOM CTA === */
.ph-bottom-cta {
  background: var(--ph-bg-alt);
  padding: 80px 24px;
  text-align: center;
}
.ph-bottom-cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.ph-bottom-cta h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}
.ph-bottom-cta p {
  color: var(--ph-text-light);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

/* === ARTICLE PAGE STYLES === */
/* Affiliate CTA buttons */
.entry-content a[href*="hop.clickbank"],
.entry-content a[href*="nutriprofits"],
.entry-content a[href*="tp.media"],
.ph-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--ph-primary), #22905a);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--ph-radius-sm);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(var(--ph-primary-rgb), 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
}
.entry-content a[href*="hop.clickbank"]:hover,
.entry-content a[href*="nutriprofits"]:hover,
.entry-content a[href*="tp.media"]:hover,
.ph-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--ph-primary-rgb), 0.4);
  color: #fff;
}

/* === SIDEBAR === */
.ct-sidebar .widget {
  border: 1px solid var(--ph-border);
  border-radius: var(--ph-radius);
  padding: 24px;
  background: #fff;
}
.ct-sidebar .widget-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ph-dark);
  border-bottom: 2px solid var(--ph-primary-light);
  padding-bottom: 10px;
  margin-bottom: 16px;
}

/* === FOOTER === */
footer[data-footer] {
  background: var(--ph-dark);
  color: rgba(255, 255, 255, 0.7);
}
footer[data-footer] a {
  color: rgba(255, 255, 255, 0.8);
}
footer[data-footer] a:hover {
  color: var(--ph-accent);
}
footer .widget-title,
footer[data-footer] .widget-title {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
footer[data-footer] .ct-footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === WP BUTTONS === */
.wp-block-button__link,
.ct-button {
  background: var(--ph-primary);
  border-radius: var(--ph-radius-sm);
  font-weight: 700;
  padding: 12px 28px;
  transition: all 0.2s ease;
}
.wp-block-button__link:hover,
.ct-button:hover {
  background: var(--ph-primary-hover);
  transform: translateY(-1px);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 2px solid var(--ph-primary);
  color: var(--ph-primary);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--ph-primary);
  color: #fff;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .ph-articles-grid { grid-template-columns: repeat(2, 1fr); }
  .ph-cat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .ph-hero { padding: 60px 20px 50px; }
  .ph-hero h1 { font-size: 1.8rem; }
  .ph-hero-actions { flex-direction: column; align-items: center; }
  .ph-hero-badges { gap: 16px; }

  .ph-stats-inner { gap: 24px; flex-wrap: wrap; }
  .ph-stat-divider { display: none; }
  .ph-stat-number { font-size: 1.4rem; }

  .ph-section, .ph-section-alt { padding: 48px 20px; }
  .ph-section-title h2 { font-size: 1.6rem; }

  .ph-featured-post { grid-template-columns: 1fr; }
  .ph-featured-img img { min-height: 220px; }
  .ph-featured-post-body { padding: 28px 24px; }

  .ph-articles-grid { grid-template-columns: 1fr; gap: 20px; }
  .ph-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .ph-why-trust { grid-template-columns: 1fr; gap: 20px; }

  .ph-newsletter { padding: 40px 24px; }
  .ph-newsletter-form { flex-direction: column; }

  .ph-bottom-cta { padding: 48px 20px; }
  .ph-bottom-cta h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .ph-cat-grid { grid-template-columns: 1fr; }
  .ph-hero-badges { flex-direction: column; align-items: center; }
  .ph-stats-inner { gap: 16px; }
}

/* === KILL ALL RED === */
[style*="e4002b"], [style*="E4002B"],
.has-vivid-red-color, .has-vivid-red-background-color {
  color: var(--ph-primary);
}
.site-footer .powered-by, .site-footer a[href*="developer"], .site-footer a[href*="wordpress"] { display: none !important; }
