/*
Theme Name:     PennyPotential
Theme URI:      https://pennypotential.com
Description:    Clean, modern penny stock alerts and news theme
Author:         PennyPotential
Version:        1.0.0
Text Domain:    pennypotential
Tags:           finance, stocks, news, alerts, custom-menu, featured-images
*/

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green:        #16a34a;
    --green-dark:   #15803d;
    --green-light:  #dcfce7;
    --emerald:      #10b981;
    --emerald-light:#d1fae5;
    --slate-50:     #f8fafc;
    --slate-100:    #f1f5f9;
    --slate-200:    #e2e8f0;
    --slate-400:    #94a3b8;
    --slate-500:    #64748b;
    --slate-600:    #475569;
    --slate-700:    #334155;
    --slate-800:    #1e293b;
    --slate-900:    #0f172a;
    --white:        #ffffff;
    --radius:       0.5rem;
    --shadow-sm:    0 1px 2px rgb(0 0 0/.05);
    --shadow:       0 1px 3px rgb(0 0 0/.1), 0 1px 2px -1px rgb(0 0 0/.1);
    --shadow-md:    0 4px 6px -1px rgb(0 0 0/.1), 0 2px 4px -2px rgb(0 0 0/.1);
    --shadow-lg:    0 10px 15px -3px rgb(0 0 0/.1), 0 4px 6px -4px rgb(0 0 0/.1);
    --shadow-xl:    0 20px 25px -5px rgb(0 0 0/.1), 0 8px 10px -6px rgb(0 0 0/.1);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    color: var(--slate-800);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--slate-900);
    letter-spacing: -0.01em;
}

.site-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: var(--green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.main-nav { display: flex; align-items: center; gap: 0.25rem; }

.main-nav a {
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: all 0.15s;
}

.main-nav a:hover,
.main-nav a.current-menu-item { color: var(--green); background: var(--green-light); }

.nav-cta {
    background: var(--green) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
}
.nav-cta:hover { background: var(--green-dark) !important; }

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--slate-700);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    background: #f5f7f5;
    padding: 5rem 0 5rem;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    width: 100%;
}

/* Section label with line */
.hero-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--green);
    margin-bottom: 1.5rem;
}

.hero-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    background: var(--green);
    border-radius: 2px;
    flex-shrink: 0;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 900;
    line-height: 1.05;
    color: var(--slate-900);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.hero h1 .highlight { color: var(--green); }

.hero-desc {
    font-size: 1rem;
    color: var(--slate-600);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 420px;
}

.hero-form {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    background: white;
    border: 1.5px solid var(--slate-200);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 440px;
}

.hero-form input[type="email"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    font-size: 0.9rem;
    outline: none;
    background: transparent;
    color: var(--slate-800);
}

.hero-form input[type="email"]::placeholder { color: var(--slate-400); }

.hero-form-icon {
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    color: var(--slate-400);
}

.btn-primary {
    background: var(--green);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 0;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.btn-primary:hover { background: var(--green-dark); }

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.875rem;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-600);
}

.hero-trust-icon { color: var(--green); font-size: 0.9rem; }

.hero-sponsored {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--slate-400);
    line-height: 1.5;
}

.hero-sponsored::before {
    content: '';
    display: block;
    width: 2px;
    min-height: 28px;
    background: var(--slate-300);
    border-radius: 2px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Countdown Card ───────────────────────────────────────── */
.countdown-card {
    background: white;
    border-radius: 1.25rem;
    padding: 2.5rem 2.25rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid var(--slate-100);
}

.countdown-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--slate-500);
    margin-bottom: 1.75rem;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.countdown-num {
    background: var(--slate-100);
    border-radius: 0.5rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-500);
}

.countdown-sep {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--slate-400);
    margin-bottom: 1.5rem;
    line-height: 1;
}

.countdown-divider {
    height: 1px;
    background: var(--slate-200);
    margin: 0 -2.25rem 1.5rem;
}

.countdown-cta {
    font-size: 0.875rem;
    color: var(--slate-500);
}

/* ── Section Shared ───────────────────────────────────────── */
section { padding: 5rem 0; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--slate-900);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--slate-500);
    max-width: 560px;
}

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc { margin: 0 auto; }

/* ── How It Works ─────────────────────────────────────────── */
.how-it-works { background: var(--slate-50); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.step-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--slate-200);
    position: relative;
    transition: box-shadow 0.2s, transform 0.2s;
}

.step-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.step-number {
    position: absolute;
    top: -0.75rem;
    left: 1.5rem;
    background: var(--green);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-icon {
    width: 48px; height: 48px;
    background: var(--green-light);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.625rem;
}

.step-card p { font-size: 0.925rem; color: var(--slate-500); line-height: 1.6; }

/* ── Latest Alerts / Posts ────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.post-card {
    background: white;
    border: 1px solid var(--slate-200);
    border-radius: 1rem;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.post-card-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--green-light), var(--emerald-light));
    overflow: hidden;
}

.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.post-card-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.post-card-body { padding: 1.25rem; }

.post-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green);
    background: var(--green-light);
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.post-card-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--slate-900);
    margin-bottom: 0.625rem;
    line-height: 1.4;
}

.post-card-body h3 a:hover { color: var(--green); }

.post-card-body p {
    font-size: 0.875rem;
    color: var(--slate-500);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.775rem;
    color: var(--slate-400);
}

.post-meta span { display: flex; align-items: center; gap: 0.25rem; }

.read-more {
    color: var(--green);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: gap 0.15s;
}
.read-more:hover { gap: 0.5rem; }

/* ── Newsletter CTA ───────────────────────────────────────── */
.newsletter-section {
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    color: white;
    padding: 5rem 0;
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-inner .section-label { color: var(--emerald); justify-content: center; }

.newsletter-inner h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.newsletter-inner p {
    color: var(--slate-400);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.newsletter-form {
    display: flex;
    gap: 0.625rem;
    max-width: 480px;
    margin: 0 auto 0.875rem;
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
}

.newsletter-form input[type="email"]::placeholder { color: var(--slate-500); }
.newsletter-form input[type="email"]:focus { border-color: var(--emerald); }

.newsletter-disclaimer {
    font-size: 0.75rem;
    color: var(--slate-600);
}

/* ── Disclaimer Page ──────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    padding: 4rem 0 3rem;
    color: white;
}

.page-hero-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--emerald);
    margin-bottom: 0.75rem;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}

.page-hero p { color: var(--slate-400); font-size: 1rem; }

.disclaimer-content {
    padding: 4rem 0;
}

.disclaimer-body {
    max-width: 820px;
}

.disclaimer-alert {
    background: #fef3c7;
    border: 1.5px solid #f59e0b;
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 0.875rem;
}

.disclaimer-alert-icon { font-size: 1.25rem; flex-shrink: 0; padding-top: 0.1rem; }

.disclaimer-alert p {
    font-size: 0.9rem;
    color: #92400e;
    font-weight: 500;
    line-height: 1.6;
}

.disclaimer-body h2 {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--slate-900);
    margin: 2rem 0 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--green-light);
}

.disclaimer-body h2:first-of-type { margin-top: 0; }

.disclaimer-body p {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.disclaimer-body ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.disclaimer-body ul li {
    font-size: 0.95rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 0.375rem;
}

.disclaimer-body strong { color: var(--slate-800); }

.disclaimer-updated {
    margin-top: 3rem;
    padding: 1.25rem;
    background: var(--slate-50);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--slate-500);
    border: 1px solid var(--slate-200);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--slate-900);
    color: var(--slate-400);
    padding: 3.5rem 0 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .site-logo { color: white; margin-bottom: 1rem; }

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--slate-500);
    max-width: 280px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-300);
    margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }

.footer-col ul li a {
    font-size: 0.875rem;
    color: var(--slate-500);
    transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--green); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-direction: column;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--slate-600);
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--slate-600);
    line-height: 1.7;
}

/* ── Single Post ──────────────────────────────────────────── */
.single-post-header {
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    padding: 4rem 0 3rem;
    color: white;
}

.single-post-header .post-category { margin-bottom: 1rem; background: rgba(22,163,74,0.2); color: var(--emerald); }

.single-post-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    max-width: 760px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--slate-400);
}

.single-post-body {
    padding: 3.5rem 0;
}

.post-content-wrap {
    max-width: 760px;
}

.post-content-wrap .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--slate-700);
}

.post-content-wrap .entry-content h2 { font-size: 1.6rem; font-weight: 700; color: var(--slate-900); margin: 2rem 0 1rem; }
.post-content-wrap .entry-content h3 { font-size: 1.25rem; font-weight: 700; color: var(--slate-900); margin: 1.5rem 0 0.75rem; }
.post-content-wrap .entry-content p { margin-bottom: 1.25rem; }
.post-content-wrap .entry-content ul, .post-content-wrap .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content-wrap .entry-content ul { list-style: disc; }
.post-content-wrap .entry-content ol { list-style: decimal; }
.post-content-wrap .entry-content li { margin-bottom: 0.5rem; }
.post-content-wrap .entry-content a { color: var(--green); text-decoration: underline; }
.post-content-wrap .entry-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.post-content-wrap .entry-content blockquote { border-left: 4px solid var(--green); padding: 1rem 1.5rem; background: var(--green-light); border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; font-style: italic; color: var(--slate-700); }
.post-content-wrap .entry-content strong { color: var(--slate-900); }

.post-financial-disclosure {
    background: var(--slate-50);
    border: 1.5px solid var(--slate-200);
    border-left: 4px solid var(--green);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    margin-top: 2.5rem;
    font-size: 0.825rem;
    color: var(--slate-500);
    line-height: 1.7;
}

/* ── Utility ──────────────────────────────────────────────── */
.text-green { color: var(--green); }
.btn-outline {
    border: 1.5px solid var(--slate-300);
    background: transparent;
    color: var(--slate-700);
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-block;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.view-all-wrap { text-align: center; margin-top: 2.5rem; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { display: none; }
    .hero h1 { font-size: 2.5rem; }
    .steps-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .hero { padding: 3rem 0; }
    .hero h1 { font-size: 2rem; }
    .hero-form { flex-direction: column; }
    .hero-stats { gap: 1rem; }
    .main-nav { display: none; }
    .mobile-menu-toggle { display: block; }
    .posts-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 1.75rem; }
    .newsletter-form { flex-direction: column; }
    .footer-inner { grid-template-columns: 1fr; }
    .page-hero h1 { font-size: 1.875rem; }
    .single-post-header h1 { font-size: 1.875rem; }
}
