/*
Theme Name: eLearning Platform Hub
Theme URI: https://elearningplatformhub.courses
Author: Melissa Hammon
Description: A Neo-Brutalist gallery-style theme for eLearning Platform Hub, a comprehensive educational review blog for online courses and skill certifications. Light editorial layout with hard borders, hard shadows, and a gallery-driven front page. Style ID 5fcb14.
Style ID: 5fcb14
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: elearning-platform-h
*/

/* ============================================================
   Root variables (scoped via body class 5fcb14)
   ============================================================ */
[class~="5fcb14-root"],
body[class~="5fcb14"] {
  --bg        : #f8f6f7;
  --bg-alt    : #efebed;
  --bg-deep   : #e5e0e3;
  --text      : #261d21;
  --text-muted: #7b6b73;
  --accent    : #a0376d;
  --accent-2  : #1b7f8a;
  --border    : #e4dde1;
  --ink       : #261d21;   /* hard border color (Neo-Brutalism) */
  --pop       : #ffd23f;   /* high-saturation accent for hovers/badges */
  --shadow    : 4px 4px 0 rgba(38, 29, 33, 1);
  --radius    : 4px;
}

/* ============================================================
   Reset & base (scoped)
   ============================================================ */
[class~="5fcb14-root"] {
  font-family: "Source Sans Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

[class~="5fcb14-root"] *,
[class~="5fcb14-root"] *::before,
[class~="5fcb14-root"] *::after { box-sizing: border-box; }

[class~="5fcb14-root"] h1,
[class~="5fcb14-root"] h2,
[class~="5fcb14-root"] h3,
[class~="5fcb14-root"] h4,
[class~="5fcb14-root"] h5,
[class~="5fcb14-root"] h6 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 0.5em;
}

[class~="5fcb14-root"] a { color: var(--accent); text-decoration: none; }
[class~="5fcb14-root"] a:hover { color: var(--text); }
[class~="5fcb14-root"] img { max-width: 100%; height: auto; display: block; }

[class~="5fcb14-root"] .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ============================================================
   Neo-Brutalism primitives
   ============================================================ */
[class~="5fcb14-root"] .nb-border {
  border: 2px solid var(--ink);
}
[class~="5fcb14-root"] .nb-shadow {
  box-shadow: var(--shadow);
}
[class~="5fcb14-root"] .nb-btn {
  display: inline-block;
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.85rem;
  padding: 0.65em 1.3em;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}
[class~="5fcb14-root"] .nb-btn:hover {
  background: var(--pop);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(38,29,33,1);
}
[class~="5fcb14-root"] .nb-btn--accent {
  background: var(--accent);
  color: #fff;
}
[class~="5fcb14-root"] .nb-btn--accent:hover { background: var(--pop); color: var(--ink); }

[class~="5fcb14-root"] .nb-badge {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.3em 0.7em;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(38,29,33,1);
}

/* ============================================================
   Layout container
   ============================================================ */
[class~="5fcb14-container"] {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header / nav (module 02)
   ============================================================ */
[class~="5fcb14-header"] {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 2px solid var(--ink);
}
[class~="5fcb14-header__inner"] {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
[class~="5fcb14-logo"] {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
[class~="5fcb14-logo"]:hover { color: var(--accent); }
[class~="5fcb14-logo"] em { color: var(--accent); font-style: normal; }

[class~="5fcb14-nav"] {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
[class~="5fcb14-nav"] ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
[class~="5fcb14-nav"] li { margin: 0; }
[class~="5fcb14-nav"] a {
  display: inline-block;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0.45em 0.85em;
  border: 2px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
}
[class~="5fcb14-nav"] a:hover {
  border-color: var(--ink);
  box-shadow: 2px 2px 0 rgba(38,29,33,1);
  color: var(--ink);
}
[class~="5fcb14-nav"] .current-menu-item > a,
[class~="5fcb14-nav"] .current_page_item > a {
  background: var(--pop);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 rgba(38,29,33,1);
}

[class~="5fcb14-header__actions"] {
  display: flex;
  align-items: center;
  gap: 10px;
}
[class~="5fcb14-icon-btn"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(38,29,33,1);
  cursor: pointer;
}
[class~="5fcb14-icon-btn"]:hover { background: var(--pop); }
[class~="5fcb14-icon-btn"] svg { width: 20px; height: 20px; }

[class~="5fcb14-searchbar"] {
  position: absolute;
  left: 0; right: 0; top: 72px;
  background: #fff;
  border-bottom: 2px solid var(--ink);
  padding: 16px 0;
  display: none;
}
[class~="5fcb14-searchbar"].is-open { display: block; }
[class~="5fcb14-searchbar"] input[type="search"] {
  width: 100%;
  font-size: 1rem;
  padding: 0.7em 1em;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--bg);
  color: var(--ink);
}
[class~="5fcb14-searchbar"] input[type="submit"] {
  margin-top: 10px;
}

/* ============================================================
   Announcement bar (module 01)
   ============================================================ */
[class~="5fcb14-announce"] {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 9px 16px;
  font-size: 0.9rem;
}
[class~="5fcb14-announce"] a {
  color: var(--pop);
  font-weight: 700;
  border-bottom: 1px solid var(--pop);
}
[class~="5fcb14-announce"] a:hover { color: #fff; }

/* ============================================================
   Footer (module 06)
   ============================================================ */
[class~="5fcb14-footer"] {
  background: #fff;
  border-top: 2px solid var(--ink);
  margin-top: 60px;
}
[class~="5fcb14-footer__grid"] {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 48px 0 36px;
}
[class~="5fcb14-footer__col"] h4 {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: var(--text-muted);
}
[class~="5fcb14-footer__col"] ul { list-style: none; margin: 0; padding: 0; }
[class~="5fcb14-footer__col"] li { margin: 8px 0; }
[class~="5fcb14-footer__col"] a { color: var(--text); font-size: 0.95rem; }
[class~="5fcb14-footer__col"] a:hover { color: var(--accent); }
[class~="5fcb14-footer__mission"] { color: var(--text-muted); font-size: 0.95rem; margin-top: 10px; }
[class~="5fcb14-footer__bottom"] {
  border-top: 2px solid var(--ink);
  padding: 18px 0;
}
[class~="5fcb14-footer__bottom-inner"] {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-muted);
}
[class~="5fcb14-footer__bottom-inner"] a { color: var(--text); }
[class~="5fcb14-footer__bottom-inner"] a:hover { color: var(--accent); }

/* ============================================================
   Card style E — horizontal list card (thumb left, text right)
   ============================================================ */
[class~="5fcb14-card"] {
  display: flex;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
[class~="5fcb14-card"]:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 rgba(38,29,33,1);
}
[class~="5fcb14-card__media"] {
  flex: 0 0 132px;
  width: 132px;
  height: 96px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: var(--bg-deep);
}
[class~="5fcb14-card__media"] img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
[class~="5fcb14-card__body"] { flex: 1; min-width: 0; }
[class~="5fcb14-card__title"] {
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
}
[class~="5fcb14-card__title"] a { color: var(--ink); }
[class~="5fcb14-card__title"] a:hover { color: var(--accent); }
[class~="5fcb14-card__meta"] {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
[class~="5fcb14-card__excerpt"] {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

/* ============================================================
   Pagination
   ============================================================ */
[class~="5fcb14-pagination"] {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}
[class~="5fcb14-pagination"] .page-numbers {
  display: inline-block;
  min-width: 40px;
  text-align: center;
  padding: 8px 12px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 2px 2px 0 rgba(38,29,33,1);
  font-weight: 700;
}
[class~="5fcb14-pagination"] .page-numbers.current { background: var(--accent); color: #fff; }
[class~="5fcb14-pagination"] a.page-numbers:hover { background: var(--pop); }

/* ============================================================
   Single post / page content
   ============================================================ */
[class~="5fcb14-entry"] {
  max-width: 760px;
  margin: 0 auto;
}
[class~="5fcb14-entry-header"] {
  margin: 32px 0 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}
[class~="5fcb14-entry-title"] {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}
[class~="5fcb14-entry-meta"] {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
[class~="5fcb14-entry-meta"] a { color: var(--accent); font-weight: 700; }

[class~="5fcb14-entry-content"] {
  font-size: 1.08rem;
  line-height: 1.75;
}
[class~="5fcb14-entry-content"] p { margin: 0 0 1.4em; }
[class~="5fcb14-entry-content"] h2,
[class~="5fcb14-entry-content"] h3 {
  margin-top: 1.6em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}
[class~="5fcb14-entry-content"] ul,
[class~="5fcb14-entry-content"] ol { margin: 0 0 1.4em; padding-left: 1.4em; }
[class~="5fcb14-entry-content"] li { margin: 0.4em 0; }
[class~="5fcb14-entry-content"] blockquote {
  margin: 1.5em 0;
  padding: 0.9em 1.2em;
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  box-shadow: var(--shadow);
}
[class~="5fcb14-entry-content"] a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

[class~="5fcb14-entry-featured"] {
  margin-bottom: 24px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

[class~="5fcb14-entry-tags"] {
  margin-top: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
[class~="5fcb14-entry-tags"] a {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--bg-alt);
  border: 2px solid var(--ink);
  border-radius: 2px;
  padding: 0.3em 0.7em;
}
[class~="5fcb14-entry-tags"] a:hover { background: var(--pop); }

/* ============================================================
   Archive / index
   ============================================================ */
[class~="5fcb14-page-title"] {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 32px 0 8px;
}
[class~="5fcb14-archive-desc"] { color: var(--text-muted); margin-bottom: 24px; }
[class~="5fcb14-feed"] {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 24px 0;
}

/* ============================================================
   404
   ============================================================ */
[class~="5fcb14-404"] {
  text-align: center;
  padding: 80px 0;
}
[class~="5fcb14-404"] h1 { font-size: 5rem; margin: 0; }

/* ============================================================
   Comments
   ============================================================ */
[class~="5fcb14-comments"] { max-width: 760px; margin: 40px auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  [class~="5fcb14-footer__grid"] { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  [class~="5fcb14-header__inner"] { height: 62px; flex-wrap: wrap; }
  [class~="5fcb14-nav"] { order: 3; width: 100%; }
  [class~="5fcb14-card__media"] { flex: 0 0 100px; width: 100px; height: 76px; }
  [class~="5fcb14-footer__grid"] { grid-template-columns: 1fr; gap: 24px; }
  [class~="5fcb14-container"] { padding: 0 16px; }
}
