/*
Theme Name: ExtraRewardsFinder
Theme URI: https://extrarewardsfinder.com
Author: Pushnami
Description: Minimal hand-coded theme for ExtraRewardsFinder. Blog-serving home page with brand header and footer.
Version: 1.0.1
License: Proprietary
Text Domain: extrarewardsfinder
*/

:root {
  --erf-blue: #1567ff;
  --erf-blue-dark: #0e4fd1;
  --erf-navy: #141b33;
  --erf-gold: #f6b31b;
  --erf-muted: #5c6577;
  --erf-bg: #f4f7ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--erf-navy);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

img { max-width: 100%; height: auto; }

a { color: var(--erf-blue); }

.erf-wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.erf-header { padding: 16px 0; border-bottom: 1px solid #e7edfb; background: #fff; }

/* ---------- Breadcrumb (above the page title) ---------- */
.erf-breadcrumb { font-size: 13px; color: var(--erf-muted); margin-bottom: 14px; }
.erf-breadcrumb a { color: var(--erf-muted); text-decoration: none; }
.erf-breadcrumb a:hover { color: var(--erf-blue); text-decoration: underline; }
.erf-breadcrumb .sep { margin: 0 7px; opacity: 0.6; }
.erf-breadcrumb .current { color: var(--erf-navy); font-weight: 600; }
.erf-header .erf-wrap { display: flex; align-items: center; }
.erf-logo { display: inline-flex; align-items: center; text-decoration: none; }
.erf-logo img { height: 34px; width: auto; display: block; }
.erf-logo-fallback { display: none; font-size: 28px; font-weight: 800; letter-spacing: -0.5px; color: var(--erf-navy); }
.erf-logo-fallback span { color: var(--erf-blue); }
.erf-logo.is-fallback img { display: none; }
.erf-logo.is-fallback .erf-logo-fallback { display: inline; }

/* ---------- Home hero band ---------- */
.erf-hero {
  background: var(--erf-navy);
  color: #fff;
  padding: 90px 0 100px;
}
.erf-hero h1 { font-size: 42px; line-height: 1.05; font-weight: 800; letter-spacing: -1px; }
.erf-hero h1 span { color: var(--erf-blue); }

/* ---------- Blog list ---------- */
.erf-main { padding: 40px 0 56px; }
.erf-post {
  background: var(--erf-bg);
  border-radius: 14px;
  padding: 26px 24px;
  margin-bottom: 20px;
  box-shadow:
    0px 0px 0px 1px rgba(20, 27, 51, 0.06),
    0px 1px 2px -1px rgba(20, 27, 51, 0.06),
    0px 2px 4px 0px rgba(20, 27, 51, 0.04);
}
.erf-post h2 { font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.erf-post h2 a { color: var(--erf-navy); text-decoration: none; }
.erf-post h2 a:hover { color: var(--erf-blue); }
.erf-post-date { font-size: 13px; color: var(--erf-muted); margin-bottom: 12px; }
.erf-post-excerpt { font-size: 16px; color: var(--erf-muted); }
.erf-post-thumb { border-radius: 10px; margin-bottom: 16px; display: block; }
.erf-readmore {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--erf-blue);
  text-decoration: none;
}
.erf-readmore:hover { color: var(--erf-blue-dark); text-decoration: underline; }

/* ---------- Single post / page ---------- */
.erf-single h1 { font-size: 32px; line-height: 1.2; margin-bottom: 8px; }
.erf-single .erf-post-date { margin-bottom: 24px; }
.erf-content p, .erf-content ul, .erf-content ol { margin-bottom: 18px; }
.erf-content h2 { font-size: 24px; margin: 30px 0 12px; }
.erf-content h3 { font-size: 19px; margin: 24px 0 10px; }
.erf-content img { border-radius: 10px; }

/* ---------- Pagination ---------- */
.erf-pagination { display: flex; gap: 14px; justify-content: center; margin-top: 32px; font-weight: 700; }
.erf-pagination a { text-decoration: none; }

/* ---------- Footer ---------- */
.erf-footer { background: var(--erf-navy); color: rgba(255, 255, 255, 0.75); padding: 34px 0 26px; text-align: center; margin-top: auto; }
.erf-footer .erf-wrap { max-width: 1200px; }
.erf-footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 22px; margin-bottom: 20px; }
.erf-footer-links a { color: rgba(255, 255, 255, 0.85); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.erf-footer-links a:hover { color: #fff; text-decoration: underline; }
.erf-footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.55); }

@media (min-width: 768px) {
  .erf-logo img { height: 40px; }
  .erf-hero { padding: 110px 0 120px; }
  .erf-hero h1 { font-size: 68px; }
  .erf-main { padding: 56px 0 72px; }
  .erf-single h1 { font-size: 38px; }
  .erf-footer-links { flex-wrap: nowrap; justify-content: space-between; gap: 16px; }
}
