/*
Theme Name: GameFrenzy
Theme URI: https://mulerun.com
Author: MuleRun
Description: A clean, editorial WordPress theme for gaming news, reviews, and culture.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: gamefrenzy
*/

:root {
  --gf-accent: #5b00b1;
  --gf-accent-bright: #7c25d8;
  --gf-ink: #101014;
  --gf-ink-soft: #202027;
  --gf-paper: #f6f5f1;
  --gf-white: #ffffff;
  --gf-muted: #6d6b73;
  --gf-line: #dedce2;
  --gf-display: "Franklin Gothic Medium", "Arial Narrow", sans-serif;
  --gf-body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --gf-serif: Georgia, "Times New Roman", serif;
  --gf-radius: 18px;
  --gf-shadow: 0 20px 50px rgba(20, 10, 30, .10);
  --gf-wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--gf-ink);
  background: var(--gf-paper);
  font-family: var(--gf-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #b879f4;
  outline-offset: 3px;
}
.gf-wrap { width: min(calc(100% - 40px), var(--gf-wrap)); margin-inline: auto; }
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.screen-reader-text:focus { width: auto; height: auto; clip: auto; padding: 12px; background: #fff; z-index: 9999; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  color: #fff; background: rgba(14, 14, 18, .96);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 36px; }
.site-branding { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 36px; aspect-ratio: 1; display: grid; place-items: center;
  color: #fff; background: var(--gf-accent); border-radius: 10px 3px 10px 3px;
  transform: rotate(-4deg); box-shadow: 0 0 24px rgba(91,0,177,.48);
}
.brand-mark svg { width: 21px; transform: rotate(4deg); }
.site-title {
  margin: 0; color: #fff; font-family: var(--gf-display); font-size: 1.45rem;
  font-weight: 900; line-height: 1; letter-spacing: -.055em; text-transform: uppercase;
}
.site-title span { color: #b879f4; }
.custom-logo { display: block; max-height: 42px; width: auto; }
.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.main-navigation a {
  position: relative; color: #d8d7dd; font-size: .78rem; font-weight: 800;
  letter-spacing: .095em; text-transform: uppercase;
}
.main-navigation a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 2px;
  background: #9f4bec; transition: right .25s ease;
}
.main-navigation a:hover::after, .main-navigation .current-menu-item a::after { right: 0; }
.header-action {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px;
  color: #fff; background: var(--gf-accent); border-radius: 999px;
  font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.menu-toggle { display: none; margin-left: auto; width: 42px; height: 42px; color: #fff; background: transparent; border: 1px solid #3b3940; border-radius: 50%; }
.menu-toggle span, .menu-toggle::before, .menu-toggle::after { content: ""; display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; transition: .2s; }

/* Utility */
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--gf-accent); font-size: .72rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: currentColor; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 27px; }
.section-title { margin: 0; font-family: var(--gf-display); font-size: clamp(2rem, 4vw, 3.4rem); line-height: .94; letter-spacing: -.055em; text-transform: uppercase; }
.text-link { color: var(--gf-accent); font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.text-link span { display: inline-block; transition: transform .2s; }
.text-link:hover span { transform: translateX(5px); }
.tag {
  display: inline-flex; padding: 5px 9px; color: #fff; background: var(--gf-accent);
  border-radius: 5px; font-size: .64rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase;
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #817e87; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.post-meta .dot { width: 3px; height: 3px; background: #aaa7af; border-radius: 50%; }
.gf-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; color: #fff; background: var(--gf-accent); border: 0; border-radius: 8px; font-size: .74rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; transition: transform .2s, background .2s, box-shadow .2s; }
.gf-button:hover { transform: translateY(-2px); background: var(--gf-accent-bright); box-shadow: 0 12px 26px rgba(91,0,177,.25); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: #111015; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 83% 22%, rgba(91,0,177,.42), transparent 30%), repeating-linear-gradient(115deg, transparent 0 82px, rgba(255,255,255,.025) 83px 84px);
}
.hero::after { content: "PLAY / READ / REPEAT"; position: absolute; right: -30px; bottom: -37px; color: rgba(255,255,255,.027); font-family: var(--gf-display); font-size: clamp(5rem, 13vw, 12rem); line-height: 1; white-space: nowrap; letter-spacing: -.08em; }
.hero-grid { position: relative; z-index: 1; min-height: 590px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; padding-block: 72px; }
.hero-copy { max-width: 660px; }
.hero .eyebrow { color: #b879f4; }
.hero-title { margin: 16px 0 22px; font-family: var(--gf-display); font-weight: 900; text-transform: uppercase; }
.hero-title em { display: block; color: #b879f4; font-family: var(--gf-serif); font-weight: 400; letter-spacing: -.04em; text-transform: none; }
.hero-deck { max-width: 550px; margin: 0 0 29px; color: #b8b5bf; font-size: 1.05rem; }
.hero-actions { display: flex; align-items: center; gap: 20px; }
.hero-secondary { color: #e8e6ec; font-size: .74rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.hero-visual { position: relative; height: 430px; }
.hero-poster {
  position: absolute; inset: 15px 38px 15px 5px; overflow: hidden; border-radius: 110px 16px 110px 16px;
  background: linear-gradient(145deg, #6d12c2 0%, #24053e 56%, #0d0c12 56%);
  box-shadow: 35px 35px 0 rgba(91,0,177,.18), 0 35px 70px rgba(0,0,0,.45);
  transform: rotate(2.5deg);
}
.hero-poster::before { content: ""; position: absolute; width: 260px; height: 260px; right: -25px; top: 50px; border: 48px solid rgba(255,255,255,.14); border-radius: 50%; }
.hero-poster::after { content: ""; position: absolute; left: 55px; top: 80px; width: 110px; height: 220px; background: linear-gradient(135deg, transparent 0 38%, #a95bff 39% 52%, transparent 53%), linear-gradient(45deg, transparent 0 44%, rgba(255,255,255,.78) 45% 49%, transparent 50%); filter: drop-shadow(18px 25px 0 rgba(0,0,0,.18)); transform: skew(-7deg); }
.score-orbit { position: absolute; right: 0; top: 0; width: 96px; height: 96px; display: grid; place-items: center; color: #fff; background: var(--gf-accent); border: 7px solid #19171e; border-radius: 50%; text-align: center; box-shadow: 0 10px 35px rgba(0,0,0,.4); }
.score-orbit strong { display: block; font-family: var(--gf-display); font-size: 2rem; line-height: .8; }
.score-orbit small { font-size: .55rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero-poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster.has-image::before { display: none; }
.hero-poster.has-image::after { left: 0; right: 0; bottom: 0; top: auto; width: 100%; height: 55%; background: linear-gradient(transparent, rgba(0,0,0,.68)); filter: none; transform: none; }
.poster-label { position: absolute; left: 30px; bottom: 34px; z-index: 2; max-width: 230px; transform: rotate(-2.5deg); }
.poster-label small { color: #d09cff; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.poster-label strong { display: block; margin-top: 5px; font-family: var(--gf-display); font-size: 2rem; line-height: .95; letter-spacing: -.04em; text-transform: uppercase; }

/* Main sections */
.content-section { padding-block: 84px; }
.content-section.alt { background: #ebe9ee; }
.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.story-card { grid-column: span 4; display: flex; flex-direction: column; min-width: 0; }
.story-card.wide { grid-column: span 6; }
.story-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #cbc8cf; border-radius: var(--gf-radius); }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.story-card:hover .story-media img { transform: scale(1.045); }
.story-media .tag { position: absolute; left: 14px; top: 14px; }
.story-art { position: absolute; inset: 0; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.story-card:hover .story-art { transform: scale(1.04); }
.art-neon { background: radial-gradient(circle at 72% 35%, #d6a2ff 0 7%, transparent 8%), linear-gradient(130deg, transparent 0 42%, rgba(255,255,255,.16) 43% 45%, transparent 46%), linear-gradient(145deg, #8032c9, #25083f 55%, #0f0f15 55%); }
.art-neon::after { content: ""; position: absolute; width: 38%; aspect-ratio: 1; left: 31%; top: 16%; border: 18px solid rgba(255,255,255,.21); transform: rotate(45deg); }
.art-racing { background: linear-gradient(155deg, transparent 0 47%, rgba(255,255,255,.12) 48% 50%, transparent 51%), radial-gradient(ellipse at 65% 70%, #5b00b1 0 18%, transparent 19%), linear-gradient(135deg, #1a1920, #47434e); }
.art-racing::after { content: ""; position: absolute; left: 14%; right: 10%; bottom: 21%; height: 21%; background: #7f2cc8; border-radius: 70% 20% 30% 25%; box-shadow: 120px 25px 0 -28px #08080b, -30px 25px 0 -28px #08080b; transform: skew(-16deg); }
.art-fantasy { background: radial-gradient(circle at 70% 15%, #eee7ff 0 8%, transparent 8.5%), linear-gradient(160deg, transparent 0 53%, #34293d 54% 66%, #17131d 67%), linear-gradient(#a57bc2, #3c1758); }
.art-fantasy::after { content: ""; position: absolute; left: 28%; bottom: 19%; width: 18%; height: 49%; background: #111016; clip-path: polygon(46% 0, 62% 35%, 100% 100%, 0 100%); }
.art-handheld { background: linear-gradient(145deg, #ece8f0, #c7c0cc); }
.art-handheld::after { content: ""; position: absolute; width: 60%; height: 50%; left: 20%; top: 25%; background: #26232b; border: 12px solid #6d6874; border-radius: 24px; box-shadow: inset 0 0 0 7px #5b00b1; transform: rotate(-8deg); }
.story-body { padding: 18px 2px 2px; }
.story-title { margin: 9px 0 11px; font-family: var(--gf-display); font-size: 1.55rem; line-height: 1.04; letter-spacing: -.035em; }
.story-title a:hover { color: var(--gf-accent); }
.story-excerpt { margin: 0 0 14px; color: var(--gf-muted); font-size: .91rem; line-height: 1.55; }

.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 62px; }
.ranked-list { counter-reset: games; }
.ranked-item { counter-increment: games; display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--gf-line); }
.ranked-item::before { content: "0" counter(games); color: transparent; -webkit-text-stroke: 1px #a9a5ae; font-family: var(--gf-display); font-size: 2.4rem; line-height: 1; }
.ranked-item h3 { margin: 0 0 4px; font-family: var(--gf-display); font-size: 1.1rem; line-height: 1.1; }
.ranked-item p { margin: 0; color: var(--gf-muted); font-size: .74rem; }
.rank-score { min-width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: var(--gf-ink); border-radius: 50%; font-family: var(--gf-display); }
.sidebar-box { padding: 28px; background: var(--gf-ink); color: #fff; border-radius: 22px; }
.sidebar-box .eyebrow { color: #bd7cf5; }
.sidebar-box h3 { margin: 15px 0 10px; font-family: var(--gf-display); font-size: 2rem; line-height: .95; letter-spacing: -.045em; text-transform: uppercase; }
.sidebar-box p { color: #a9a6af; font-size: .9rem; }
.newsletter-form { display: flex; margin-top: 20px; }
.newsletter-form input { min-width: 0; width: 100%; height: 46px; padding: 0 14px; color: #fff; background: #29272e; border: 1px solid #3c3943; border-radius: 8px 0 0 8px; }
.newsletter-form button { width: 48px; color: #fff; background: var(--gf-accent); border: 0; border-radius: 0 8px 8px 0; font-size: 1.1rem; cursor: pointer; }
.mini-links { margin: 28px 0 0; padding: 0; list-style: none; }
.mini-links li { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid #34313a; font-size: .77rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mini-links span { color: #8f8b95; }

/* Index, archive, single */
.page-banner { position: relative; overflow: hidden; padding: 72px 0 60px; color: #fff; background: var(--gf-ink); }
.page-banner::after { content: ""; position: absolute; top: -50px; right: 6%; width: 250px; height: 250px; border: 55px solid rgba(91,0,177,.38); border-radius: 50%; }
.page-banner h1 { position: relative; z-index: 1; max-width: 850px; margin: 12px 0 0; font-family: var(--gf-display); font-size: clamp(3.2rem, 7vw, 6.6rem); line-height: .88; letter-spacing: -.065em; text-transform: uppercase; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; }
.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; background: #fff; border: 1px solid var(--gf-line); border-radius: 7px; font-size: .8rem; font-weight: 800; }
.page-numbers.current, .page-numbers:hover { color: #fff; background: var(--gf-accent); border-color: var(--gf-accent); }
.empty-state { padding: 60px 0; text-align: center; }
.empty-state h2 { font-family: var(--gf-display); font-size: 2.6rem; }

.single-hero { padding: 70px 0 54px; color: #fff; background: var(--gf-ink); }
.single-hero h1 { max-width: 930px; margin: 16px 0 24px; font-family: var(--gf-display); font-size: clamp(3rem, 6vw, 5.7rem); line-height: .91; letter-spacing: -.06em; }
.single-hero .post-meta { color: #aaa7b0; }
.single-featured { overflow: hidden; max-height: 620px; background: #29262f; }
.single-featured img { width: 100%; max-height: 620px; object-fit: cover; display: block; }
.article-layout { display: grid; grid-template-columns: minmax(0, 740px) 250px; justify-content: space-between; gap: 70px; padding-block: 72px; }
.entry-content { font-family: var(--gf-serif); font-size: 1.14rem; line-height: 1.85; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3 { margin-top: 2em; color: var(--gf-ink); font-family: var(--gf-display); line-height: 1.05; letter-spacing: -.035em; }
.entry-content h2 { font-size: 2.4rem; }
.entry-content a { color: var(--gf-accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { margin: 2em 0; padding: 10px 0 10px 28px; color: #312d36; border-left: 5px solid var(--gf-accent); font-family: var(--gf-display); font-size: 1.55rem; line-height: 1.25; }
.entry-content img { border-radius: 15px; }
.article-aside { align-self: start; position: sticky; top: 110px; }
.share-title { margin-bottom: 12px; color: var(--gf-muted); font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.share-links { display: flex; gap: 8px; }
.share-links a { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--gf-ink); border-radius: 50%; font-size: .7rem; font-weight: 900; }
.author-card { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--gf-line); }
.author-card strong { display: block; font-family: var(--gf-display); font-size: 1.15rem; }
.author-card p { color: var(--gf-muted); font-size: .8rem; line-height: 1.5; }

/* Footer */
.site-footer { position: relative; overflow: hidden; padding: 68px 0 28px; color: #fff; background: #0d0d11; }
.site-footer::before { content: "GF"; position: absolute; right: -15px; bottom: -70px; color: rgba(255,255,255,.025); font-family: var(--gf-display); font-size: 22rem; line-height: 1; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.35fr .65fr .65fr; gap: 70px; padding-bottom: 55px; }
.footer-brand p { max-width: 420px; color: #9b98a2; }
.footer-title { margin: 3px 0 18px; color: #b8b4bf; font-size: .68rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.footer-menu { margin: 0; padding: 0; list-style: none; }
.footer-menu li { margin: 10px 0; }
.footer-menu a { color: #dedce2; font-size: .88rem; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; color: #77747e; border-top: 1px solid #29272e; font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; }

@keyframes gf-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: gf-rise .65s both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .15s; }
.hero-copy > *:nth-child(4) { animation-delay: .22s; }
.hero-visual { animation: gf-rise .75s .18s both; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

@media (max-width: 920px) {
  .header-action { display: none; }
  .menu-toggle { display: block; }
  .main-navigation { position: fixed; inset: 76px 0 auto; display: none; padding: 24px 20px 34px; background: #101014; border-top: 1px solid #2f2d34; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { align-items: flex-start; flex-direction: column; gap: 20px; }
  .main-navigation a { font-size: 1rem; }
  .hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 50px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { height: 390px; width: min(100%, 540px); }
  .split-layout, .article-layout { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .gf-wrap { width: min(calc(100% - 28px), var(--gf-wrap)); }
  .header-inner { min-height: 68px; }
  .main-navigation { top: 68px; }
  .hero-grid { padding-block: 54px; }
  .hero-visual { height: 320px; }
  .hero-poster { inset: 10px 24px 10px 0; }
  .content-section { padding-block: 62px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .story-card, .story-card.wide { grid-column: 1 / -1; }
  .archive-grid { grid-template-columns: 1fr; }
  .ranked-item { grid-template-columns: 45px 1fr auto; gap: 12px; }
  .ranked-item::before { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .single-hero { padding-top: 52px; }
  .article-layout { padding-block: 50px; }
}
