/*
Theme Name: ExamPrep Bonuses
Theme URI: https://bonuses.examprep.com
Author: ExamPrep Publishing
Description: Academic bonus content portal for book buyers.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Private
Text Domain: examprep-bonuses
*/

/* ============================================
   VARIABLES
   ============================================ */
:root {
    --ep-primary: #4f46e5;
    --ep-primary-hover: #4338ca;
    --ep-primary-light: #eef2ff;
    --ep-primary-50: #e0e7ff;
    --ep-secondary: #0f766e;
    --ep-secondary-hover: #0d9488;
    --ep-success: #10b981;
    --ep-success-light: #d1fae5;
    --ep-danger: #ef4444;
    --ep-danger-light: #fee2e2;
    --ep-warning: #f59e0b;
    --ep-bg: #f8fafc;
    --ep-card: #ffffff;
    --ep-border: #e2e8f0;
    --ep-text: #0f172a;
    --ep-text-muted: #64748b;
    --ep-text-light: #94a3b8;
    --ep-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --ep-radius: 12px;
    --ep-radius-lg: 20px;
    --ep-radius-full: 9999px;
    --ep-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --ep-shadow-md: 0 4px 16px rgba(0,0,0,0.07);
    --ep-shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --ep-transition: all 0.2s ease;
    --ep-max-w: 1100px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--ep-font);
    line-height: 1.6;
    color: var(--ep-text);
    background: var(--ep-bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ep-primary); text-decoration: none; transition: var(--ep-transition); }
a:hover { color: var(--ep-primary-hover); }

.ep-container { max-width: var(--ep-max-w); margin: 0 auto; padding: 0 24px; }

/* ============================================
   HEADER
   ============================================ */
.ep-site-header {
    background: var(--ep-card);
    border-bottom: 1px solid var(--ep-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 24px;
}
.ep-header-inner {
    max-width: var(--ep-max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.ep-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
    color: var(--ep-primary);
}
.ep-logo:hover { color: var(--ep-primary); }
.ep-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--ep-primary);
    color: white;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}
.ep-header-access-btn {
    background: var(--ep-primary);
    color: white;
    padding: 9px 20px;
    border-radius: var(--ep-radius);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--ep-transition);
}
.ep-header-access-btn:hover { background: var(--ep-primary-hover); color: white; }

/* ============================================
   HERO
   ============================================ */
.ep-hero {
    background: linear-gradient(160deg, #eef2ff 0%, #e0e7ff 40%, #ddd6fe 70%, #ccfbf1 100%);
    padding: 80px 24px 72px;
    text-align: center;
}
.ep-hero-inner { max-width: 640px; margin: 0 auto; }
.ep-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ep-card);
    border: 1px solid var(--ep-border);
    padding: 8px 20px;
    border-radius: var(--ep-radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--ep-primary);
    margin-bottom: 24px;
    box-shadow: var(--ep-shadow);
}
.ep-hero-title {
    font-size: clamp(30px, 5vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--ep-text);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.ep-hero-title span { color: var(--ep-primary); display: block; }
.ep-hero-sub {
    font-size: 17px;
    color: var(--ep-text-muted);
    margin-bottom: 32px;
    line-height: 1.7;
}
.ep-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ep-primary);
    color: white;
    padding: 16px 36px;
    border-radius: var(--ep-radius);
    font-size: 16px;
    font-weight: 600;
    transition: var(--ep-transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}
.ep-hero-cta:hover { background: var(--ep-primary-hover); color: white; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79,70,229,0.35); }
.ep-hero-trust {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.ep-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ep-text-muted);
}
.ep-trust-item i { color: var(--ep-success); font-size: 14px; }

/* ============================================
   HOW IT WORKS
   ============================================ */
.ep-how { padding: 80px 0; background: var(--ep-card); }
.ep-section-title {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 48px;
    color: var(--ep-text);
}
.ep-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}
.ep-step {
    text-align: center;
    max-width: 240px;
    flex: 1;
    min-width: 200px;
}
.ep-step-num {
    width: 28px;
    height: 28px;
    background: var(--ep-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    margin: 0 auto 12px;
}
.ep-step-icon {
    width: 56px;
    height: 56px;
    background: var(--ep-primary-light);
    color: var(--ep-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}
.ep-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.ep-step p { font-size: 13px; color: var(--ep-text-muted); line-height: 1.6; }
.ep-step-arrow {
    display: flex;
    align-items: center;
    padding-top: 48px;
    color: var(--ep-text-light);
    font-size: 16px;
}

/* ============================================
   FEATURES
   ============================================ */
.ep-features { padding: 80px 0; background: var(--ep-bg); }
.ep-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.ep-feature-card {
    background: var(--ep-card);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--ep-transition);
}
.ep-feature-card:hover { box-shadow: var(--ep-shadow-lg); transform: translateY(-3px); }
.ep-feature-icon-lg {
    font-size: 32px;
    color: var(--ep-primary);
    margin-bottom: 20px;
}
.ep-feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.ep-feature-card p { font-size: 14px; color: var(--ep-text-muted); line-height: 1.65; }

/* ============================================
   BOTTOM CTA
   ============================================ */
.ep-bottom-cta {
    padding: 64px 0;
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-hover));
    text-align: center;
}
.ep-bottom-cta h2 { color: white; font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.ep-bottom-cta p { color: rgba(255,255,255,0.8); font-size: 16px; margin-bottom: 28px; }
.ep-bottom-cta .ep-hero-cta {
    background: white;
    color: var(--ep-primary);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.ep-bottom-cta .ep-hero-cta:hover { background: #f8fafc; color: var(--ep-primary-hover); }

/* ============================================
   ACCESS FORM
   ============================================ */
.ep-access-section {
    padding: 80px 24px;
    display: flex;
    justify-content: center;
    min-height: 70vh;
    align-items: flex-start;
    padding-top: 60px;
}
.ep-access-card {
    background: var(--ep-card);
    border: 1px solid var(--ep-border);
    border-radius: var(--ep-radius-lg);
    box-shadow: var(--ep-shadow-lg);
    padding: 48px 40px;
    max-width: 440px;
    width: 100%;
    text-align: center;
}
.ep-access-icon {
    width: 60px;
    height: 60px;
    background: var(--ep-primary-light);
    color: var(--ep-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 20px;
}
.ep-access-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.ep-access-card .ep-sub { font-size: 14px; color: var(--ep-text-muted); margin-bottom: 28px; }
.ep-input-group { margin-bottom: 16px; text-align: left; }
.ep-input-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ep-text); margin-bottom: 6px; }
.ep-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid var(--ep-border);
    border-radius: var(--ep-radius);
    font-family: var(--ep-font);
    font-size: 15px;
    color: var(--ep-text);
    transition: var(--ep-transition);
    background: var(--ep-bg);
}
.ep-input:focus { outline: none; border-color: var(--ep-primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.12); background: var(--ep-card); }
.ep-input::placeholder { color: var(--ep-text-light); }
.ep-input.code-input { text-align: center; font-size: 20px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; }
.ep-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--ep-radius);
    font-family: var(--ep-font);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--ep-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ep-btn-primary { background: var(--ep-primary); color: white; }
.ep-btn-primary:hover { background: var(--ep-primary-hover); }
.ep-btn-secondary { background: var(--ep-secondary); color: white; }
.ep-btn-secondary:hover { background: var(--ep-secondary-hover); }
.ep-error {
    background: var(--ep-danger-light);
    color: var(--ep-danger);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    display: none;
}
.ep-error.show { display: block; }
.ep-lock-note {
    margin-top: 20px;
    font-size: 12px;
    color: var(--ep-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ============================================
   BONUS CONTENT
   ============================================ */
.ep-bonus-header {
    background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-hover));
    padding: 36px 24px;
    color: white;
    text-align: center;
}
.ep-bonus-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.ep-bonus-header p { font-size: 14px; opacity: 0.8; }
.ep-bonus-content {
    max-width: 1100px;
    margin: -20px auto 0;
    padding: 0 24px 60px;
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.ep-footer {
    background: var(--ep-text);
    padding: 20px 24px;
}
.ep-footer-inner {
    max-width: var(--ep-max-w);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ep-footer-brand {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ep-footer-copy {
    color: rgba(255,255,255,0.35);
    font-size: 12px;
}

/* ============================================
   SPINNER
   ============================================ */
.ep-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: ep-spin 0.6s linear infinite;
    display: none;
}
@keyframes ep-spin { to { transform: rotate(360deg); } }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .ep-hero { padding: 56px 20px 48px; }
    .ep-hero-title { font-size: 28px; }
    .ep-hero-sub { font-size: 15px; }
    .ep-how, .ep-features { padding: 56px 0; }
    .ep-step-arrow { display: none; }
    .ep-steps { gap: 32px; }
    .ep-access-card { padding: 32px 24px; }
    .ep-footer-inner { flex-direction: column; gap: 8px; text-align: center; }
    .ep-header-access-btn span { display: none; }
}
@media (max-width: 480px) {
    .ep-hero-trust { flex-direction: column; align-items: center; gap: 8px; }
    .ep-hero-cta { width: 100%; justify-content: center; }
    .ep-bottom-cta .ep-hero-cta { width: auto; }
}
