/* ===================== Red & Green Shine / Glow Enhancement Pack ===================== */
/* Same class names as the homepage hero (index.php) so markup can be reused verbatim. */

html { scroll-behavior: smooth; }

@keyframes rgBlinkColor { 0%, 100% { color: var(--red); } 50% { color: #12c464; } }
@keyframes rgBlinkBg {
    0%, 100% { background-color: var(--red); box-shadow: 0 0 16px 3px rgba(230,0,35,.65); }
    50%      { background-color: #12c464;   box-shadow: 0 0 16px 3px rgba(18,196,100,.65); }
}
@keyframes rgBorderCycle {
    0%, 100% { border-color: var(--red);   box-shadow: 0 0 22px rgba(230,0,35,.35), inset 0 0 14px rgba(230,0,35,.06); }
    50%      { border-color: #12c464;      box-shadow: 0 0 22px rgba(18,196,100,.35), inset 0 0 14px rgba(18,196,100,.06); }
}
@keyframes rgShineSweep {
    0%   { transform: translateX(-160%) skewX(-20deg); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translateX(0%) skewX(-20deg); opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translateX(160%) skewX(-20deg); opacity: 0; }
}
@keyframes rgPop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }

.rg-reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s ease, transform .7s ease; }
.rg-reveal.rg-in { opacity: 1; transform: translateY(0); }

.rg-border-glow {
    border: 2px solid var(--red) !important;
    animation: rgBorderCycle 3.2s ease-in-out infinite;
}
.rg-text-blink { animation: rgBlinkColor 1.6s ease-in-out infinite; display: inline-block; }
.rg-dot-blink  { animation: rgBlinkBg 1.4s ease-in-out infinite; }
.rg-pop        { animation: rgPop 2.4s ease-in-out infinite; }

/* White diagonal shine streak sweeping across buttons/pills */
.rg-shine { position: relative; overflow: hidden; isolation: isolate; }
.rg-shine::after {
    content: '';
    position: absolute; top: -60%; left: 0; width: 34%; height: 220%;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.9) 50%, transparent 100%);
    transform: translateX(-160%) skewX(-20deg);
    animation: rgShineSweep 2.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .rg-border-glow, .rg-text-blink, .rg-dot-blink, .rg-pop, .rg-shine::after, .rg-reveal {
        animation: none !important;
        transition: none !important;
    }
    .rg-reveal { opacity: 1; transform: none; }
}

/* ===================== Pinterest Growth article-specific extras ===================== */

.rg-section {
    background: #fff;
    border: 1px solid #fbdada;
    border-radius: 16px;
    padding: 28px 30px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}
.rg-section::before {
    content: '';
    position: absolute; inset: 0 0 auto 0; height: 4px;
    background: linear-gradient(90deg, var(--red), #12c464, var(--red));
    background-size: 200% 100%;
    animation: hwBorderFlowRg 3s linear infinite;
}
@keyframes hwBorderFlowRg { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

.rg-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.rg-stat-card {
    background: #fff; border: 2px solid var(--border); border-radius: 12px; padding: 18px; text-align: center;
    transition: border-color .3s ease, transform .3s ease;
}
.rg-stat-card:hover { transform: translateY(-4px); }
.rg-stat-card .rg-stat-num { font-size: 28px; font-weight: 800; color: var(--red); display: block; }
.rg-stat-card .rg-stat-label { font-size: 13px; color: var(--gray); }

.rg-step-card {
    display: flex; gap: 18px; align-items: flex-start; background: #fff;
    border: 1px solid var(--border); border-left: 4px solid var(--red);
    border-radius: 12px; padding: 20px 22px; margin: 16px 0;
}
.rg-step-card:nth-child(even) { border-left-color: #12c464; }
.rg-step-num {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px;
}
.rg-step-card:nth-child(even) .rg-step-num { background: #12c464; }

.rg-chart-wrap { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin: 26px 0; }
.rg-chart-wrap svg { width: 100%; height: auto; display: block; }

.rg-cta-inline {
    background: linear-gradient(135deg, #fff5f5 0%, #f0fff6 100%);
    border: 2px solid var(--red); border-radius: 16px; padding: 26px 30px; text-align: center; margin: 34px 0;
}
.rg-cta-inline h3 { margin: 0 0 8px; font-size: 22px; }
.rg-cta-inline p { color: var(--gray); margin: 0 0 16px; }

@media (max-width: 700px) {
    .rg-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .rg-section { padding: 20px; }
}

/* ===================== Affiliate landing page ===================== */

.rg-badge {
    display: inline-flex; align-items: center; gap: 6px; background: #fff5f5; color: var(--red);
    border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 700;
}

.rg-affiliate-hero {
    background: linear-gradient(180deg, #fff5f5 0%, #ffffff 60%);
    padding: 70px 20px 60px;
    border-bottom: 1px solid #fbdada;
}
.rg-affiliate-h1 {
    font-size: 46px; line-height: 1.15; margin: 0 0 16px;
}
.rg-affiliate-sub {
    font-size: 18px; color: var(--gray); max-width: 640px; margin: 0 auto;
}

@media (max-width: 700px) {
    .rg-affiliate-h1 { font-size: 32px; }
    .rg-affiliate-sub { font-size: 16px; }
    .rg-affiliate-hero { padding: 50px 16px 40px; }
}
