/*
Theme Name: Redmen Modern
Theme URI: https://example.com/redmen-modern
Author: OpenAI
Author URI: https://openai.com
Description: A modern, responsive, Liverpool-inspired football news theme. Unofficial and built with original styling.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redmen-modern
Tags: news, sports, football, blog, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root {
  --rm-red: #c8102e;
  --rm-red-dark: #8f0b22;
  --rm-ink: #111318;
  --rm-soft-ink: #252832;
  --rm-cream: #f8f6f1;
  --rm-white: #ffffff;
  --rm-grey: #68707d;
  --rm-line: #e7e9ee;
  --rm-gold: #d5a547;
  --rm-radius: 18px;
  --rm-shadow: 0 18px 45px rgba(17, 19, 24, .10);
  --rm-wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--rm-ink);
  background: var(--rm-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--rm-red); }
img { max-width: 100%; height: auto; display: block; }

.rm-wrap {
  width: min(calc(100% - 32px), var(--rm-wrap));
  margin-inline: auto;
}

.rm-topbar {
  background: var(--rm-ink);
  color: rgba(255,255,255,.78);
  font-size: .82rem;
  letter-spacing: .02em;
}

.rm-topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
}

.rm-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17,19,24,.08);
}

.rm-nav-row {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.rm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: 1.4rem;
}

.rm-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rm-red), var(--rm-red-dark));
  color: #fff;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(200,16,46,.25);
}

.custom-logo { max-height: 48px; width: auto; }

.rm-menu ul,
.rm-menu {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rm-menu a {
  font-weight: 750;
  font-size: .96rem;
}

.rm-menu .current-menu-item > a { color: var(--rm-red); }

.rm-menu-toggle {
  display: none;
  border: 0;
  background: var(--rm-ink);
  color: white;
  border-radius: 12px;
  padding: 10px 13px;
  font-weight: 800;
}

.rm-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 70px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(213,165,71,.24), transparent 24%),
    linear-gradient(135deg, #1a1115 0%, #8f0b22 52%, #c8102e 100%);
}

.rm-hero::after {
  content: "";
  position: absolute;
  inset: auto -15% -50% 35%;
  height: 420px;
  transform: rotate(-7deg);
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

.rm-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: center;
}

.rm-eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: #ffe9b7;
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .78rem;
  font-weight: 900;
}

.rm-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: .95;
  letter-spacing: -.065em;
}

.rm-hero p {
  max-width: 650px;
  color: rgba(255,255,255,.8);
  font-size: 1.08rem;
}

.rm-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: #fff;
  color: var(--rm-ink);
  font-weight: 900;
  transition: .2s ease;
}

.rm-btn:hover {
  color: var(--rm-red);
  transform: translateY(-2px);
}

.rm-btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.34);
}

.rm-hero-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: rgba(17,19,24,.34);
  backdrop-filter: blur(14px);
  box-shadow: var(--rm-shadow);
}

.rm-scoreline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.rm-scoreline:last-child { border-bottom: 0; }

.rm-section { padding: 72px 0; }

.rm-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.rm-section-head h2,
.rm-content-title {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.rm-section-head p {
  max-width: 580px;
  margin: 0;
  color: var(--rm-grey);
}

.rm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.rm-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  box-shadow: 0 9px 30px rgba(17,19,24,.05);
  transition: transform .22s ease, box-shadow .22s ease;
}

.rm-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--rm-shadow);
}

.rm-card-media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1c1e24, var(--rm-red));
  overflow: hidden;
}

.rm-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rm-card-body { padding: 22px; }

.rm-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--rm-grey);
  font-size: .8rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.rm-card h3 {
  margin: 10px 0 8px;
  line-height: 1.15;
  font-size: 1.35rem;
  letter-spacing: -.03em;
}

.rm-card p { color: var(--rm-grey); }

.rm-chip {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: var(--rm-red);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.rm-dark-panel {
  color: #fff;
  background: var(--rm-ink);
}

.rm-feature-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: stretch;
}

.rm-feature-copy {
  padding: 38px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--rm-soft-ink), #121319);
}

.rm-feature-copy h2 {
  margin: 12px 0 14px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.rm-feature-copy p { color: rgba(255,255,255,.68); }

.rm-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.rm-stat {
  min-height: 150px;
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  color: var(--rm-ink);
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.rm-stat strong {
  font-size: 2.4rem;
  letter-spacing: -.05em;
}

.rm-page-hero {
  padding: 64px 0 36px;
  background: #fff;
  border-bottom: 1px solid var(--rm-line);
}

.rm-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 42px;
  padding: 54px 0 80px;
}

.rm-article {
  background: #fff;
  border: 1px solid var(--rm-line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
}

.rm-article h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.rm-entry-content > * { max-width: 760px; }
.rm-entry-content h2,
.rm-entry-content h3 { line-height: 1.15; }
.rm-entry-content a { color: var(--rm-red); text-decoration: underline; }

.rm-sidebar .widget {
  padding: 22px;
  margin-bottom: 20px;
  background: #fff;
  border: 1px solid var(--rm-line);
  border-radius: 18px;
}

.rm-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rm-sidebar li + li { margin-top: 10px; }

.rm-pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--rm-line);
}
.page-numbers.current { background: var(--rm-red); color: #fff; }

.rm-footer {
  padding: 56px 0 22px;
  color: rgba(255,255,255,.7);
  background: #0d0f13;
}

.rm-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 36px;
  padding-bottom: 34px;
}

.rm-footer h3,
.rm-footer h4 { color: #fff; }

.rm-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rm-footer li + li { margin-top: 10px; }

.rm-footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .88rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .rm-hero-grid,
  .rm-feature-grid,
  .rm-content-layout,
  .rm-footer-grid {
    grid-template-columns: 1fr;
  }

  .rm-grid { grid-template-columns: 1fr 1fr; }

  .rm-menu-toggle { display: inline-flex; }

  .rm-menu {
    display: none;
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    padding: 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--rm-shadow);
  }

  .rm-menu.is-open { display: block; }

  .rm-menu ul,
  .rm-menu {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .rm-topbar-inner { flex-direction: column; gap: 2px; }
  .rm-grid,
  .rm-stat-grid { grid-template-columns: 1fr; }
  .rm-hero { padding-top: 64px; }
  .rm-section { padding: 54px 0; }
}
