/*
Theme Name: Mindset Core
Theme URI: https://theloversmindset.com
Description: A fast, lightweight editorial theme for The Lover's Mindset. No page builder required.
Author: Master Lee
Version: 2.2.1
Text Domain: mindset-core
*/

:root {
    --bg: #0a0b10;
    --surface: #13151c;
    --text: #e0e2e8;
    --muted: #8b92a5;
    --gold: #d4af37;
    --gold-hover: #f1c40f;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --max-width: 1200px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover { color: var(--gold-hover); }

/* Layouts */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Navigation */
.site-header {
    background: var(--surface);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-title {
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-family: var(--font-head);
    font-weight: 600;
}
.site-title a { color: #fff; }
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}
.main-nav a {
    color: var(--text);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 100px 20px;
    background: linear-gradient(to bottom, var(--surface), var(--bg));
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hero-title {
    font-size: 4rem;
    margin-bottom: 10px;
}
.hero-tagline {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 30px;
}
.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 15px 35px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-primary:hover {
    background: var(--gold-hover);
    color: #000;
}

/* Grid for Blog & Books */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}
.post-card {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
}
.post-card:hover { transform: translateY(-5px); }
.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.post-card-content { padding: 25px; }

/* Single Post Reading Experience */
.single-content {
    max-width: 800px;
    margin: 60px auto;
    font-size: 1.15rem;
}
.single-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Footer & Email Capture */
.site-footer {
    background: var(--surface);
    padding: 60px 0 30px;
    margin-top: 80px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.email-capture {
    max-width: 500px;
    margin: 0 auto 40px;
}
.email-capture input[type="email"] {
    width: 60%;
    padding: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    background: var(--bg);
    color: #fff;
    border-radius: 3px 0 0 3px;
}
.email-capture button {
    width: 38%;
    padding: 15px;
    background: var(--gold);
    border: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
}

@media (max-width: 768px) {
    .header-inner { flex-direction: column; gap: 15px; }
    .hero-title { font-size: 2.5rem; }
    .email-capture input[type="email"], .email-capture button { width: 100%; border-radius: 3px; margin-bottom: 10px; }
}

/* Accessibility: skip link */
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    word-wrap: normal !important;
}
.skip-link:focus {
    position: fixed;
    top: 10px; left: 10px;
    width: auto; height: auto;
    clip: auto;
    background: var(--gold);
    color: #0a0b10;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 9999;
    font-weight: bold;
}

.footer-copyright {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 40px;
}


.email-capture-sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0 0 16px;
}
.email-capture [data-reach-form] {
    max-width: 480px;
    margin: 0 auto;
}


/* ── Front page sections (v2.2.0) ─────────────────── */
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    margin: 0 0 14px;
}
.eyebrow.center { text-align: center; }
.section { padding: 70px 0; }
.section-title { text-align: center; font-size: 2.2rem; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 10px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.btn-secondary {
    display: inline-block;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 13px 33px;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-secondary:hover { background: var(--gold); color: #000; }

.challenge-section { background: var(--surface); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.challenge-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.challenge-copy h2 { margin-top: 0; }
.challenge-form [data-reach-form] { width: 100%; }
.form-note { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

.concept-number { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin: 0 0 10px; }
.card-link { font-weight: 600; font-size: 0.9rem; }

.split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: center; }
.split.reverse { grid-template-columns: 1.15fr 0.85fr; }
.author-photo img, .book-cover img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.author-section { background: var(--surface); }

.teaser-section { text-align: center; }
.teaser-panel {
    border: 1px dashed var(--gold);
    border-radius: 12px;
    padding: 50px 30px;
    background: rgba(212, 175, 55, 0.04);
}
.teaser-sub { color: var(--muted); max-width: 560px; margin: 0 auto 24px; }

@media (max-width: 860px) {
    .section { padding: 50px 0; }
    .challenge-panel, .split, .split.reverse { grid-template-columns: 1fr; gap: 30px; }
    .author-photo { max-width: 320px; margin: 0 auto; }
    .book-cover { max-width: 280px; margin: 0 auto; }
    .hero-title { font-size: 2.5rem; }
}


/* Blog pagination (v2.2.1) */
.pagination { margin-top: 60px; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}
.pagination .page-numbers.current { background: var(--gold); color: #000; border-color: var(--gold); }
.pagination a.page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.pagination .screen-reader-text { position: absolute; clip: rect(1px,1px,1px,1px); }
