/*
Theme Name: Whispers FC
Theme URI: https://example.com/whispers-fc
Author: Whispers FC
Description: Official club website theme for Whispers FC. Includes fixtures & results, squad profiles, news, and a one-click setup on activation. Colours: deep purple and soft pink.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: whispers-fc
*/

:root {
  --purple: #260b40;
  --purple-2: #3a1660;
  --purple-3: #1a0630;
  --pink: #ebbbdd;
  --pink-2: #f6dcef;
  --white: #ffffff;
  --text: #25182f;
  --muted: #6d5e7a;
  --line: #e6d7ee;
  --bg: #fbf7fd;
  --win: #2e9e5b;
  --draw: #c58a1c;
  --loss: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 11, 64, .12);
  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--purple); }
h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; margin: 0 0 .5em; color: var(--purple); }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
.container { width: min(1180px, 92%); margin-inline: auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; background: var(--pink); color: var(--purple); padding: 10px 16px; z-index: 9999; top: 6px; left: 6px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; font-weight: 700; padding: .7em 1.6em; border-radius: 999px; background: var(--pink); color: var(--purple); text-decoration: none; border: 2px solid var(--pink); transition: .2s; cursor: pointer; }
.btn:hover { background: var(--white); border-color: var(--white); color: var(--purple); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--pink); }
.btn--ghost:hover { background: var(--pink); color: var(--purple); border-color: var(--pink); }
.btn--dark { background: var(--purple); color: var(--pink); border-color: var(--purple); }
.btn--dark:hover { background: var(--purple-2); border-color: var(--purple-2); color: var(--white); }

/* Header */
.site-header { background: var(--purple); color: var(--white); position: sticky; top: 0; z-index: 100; border-bottom: 3px solid var(--pink); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; }
.site-branding { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.site-branding img, .site-branding .custom-logo { width: 62px; height: 62px; object-fit: contain; }
.site-title { font-family: var(--font-head); font-size: 1.9rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; line-height: 1; margin: 0; color: var(--white); }
.site-title small { display: block; font-size: .8rem; letter-spacing: .2em; color: var(--pink); font-weight: 600; margin-top: 4px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; align-items: center; }
.main-nav a { display: block; color: var(--white); text-decoration: none; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 1.15rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; }
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a { background: var(--pink); color: var(--purple); }
.nav-toggle { display: none; background: transparent; border: 2px solid var(--pink); color: var(--pink); border-radius: 10px; padding: 8px 12px; font-size: 1rem; cursor: pointer; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--purple-3); padding: 14px 4%; border-bottom: 3px solid var(--pink); }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; }
  .main-nav a { padding: 12px 14px; }
}

/* Hero */
.hero { position: relative; background: radial-gradient(circle at 80% 20%, var(--purple-2) 0%, var(--purple) 55%, var(--purple-3) 100%); color: var(--white); overflow: hidden; padding: clamp(70px, 12vw, 140px) 0; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(235,187,221,.07) 0 4px, transparent 4px 28px); mask-image: linear-gradient(to right, transparent 30%, #000); -webkit-mask-image: linear-gradient(to right, transparent 30%, #000); }
.hero--image { background-size: cover; background-position: center; }
.hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(26,6,48,.94) 25%, rgba(38,11,64,.6)); }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero h1 span { color: var(--pink); }
.hero p { font-size: 1.2rem; max-width: 52ch; color: #eadcf2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.eyebrow { display: inline-block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .25em; color: var(--pink); font-size: 1rem; font-weight: 600; margin-bottom: 14px; }

/* Sections */
.section { padding: clamp(50px, 8vw, 90px) 0; }
.section--dark { background: var(--purple); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--pink { background: var(--pink-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { margin: 0; position: relative; padding-bottom: 12px; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 60px; height: 4px; background: var(--pink); border-radius: 4px; }
.section--pink .section-head h2::after { background: var(--purple); }
.more-link { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 1.1rem; font-weight: 600; }
.section--dark .more-link { color: var(--pink); }

/* Match center */
.match-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .match-grid { grid-template-columns: 1fr; } }
.match-card { background: var(--white); color: var(--text); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.match-card .label { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .15em; color: var(--muted); font-size: .95rem; }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; text-align: center; margin: 14px 0; }
.match-teams .team { font-family: var(--font-head); font-size: 1.7rem; text-transform: uppercase; line-height: 1.05; color: var(--purple); font-weight: 700; }
.match-teams .vs { font-family: var(--font-head); font-size: 1.1rem; color: var(--white); background: var(--purple); border-radius: 999px; padding: 6px 14px; letter-spacing: .1em; }
.match-teams .score { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; color: var(--purple); background: var(--pink-2); border-radius: 12px; padding: 2px 18px; }
.match-meta { text-align: center; color: var(--muted); font-size: .95rem; }
.match-meta strong { color: var(--purple); }

/* Fixture list */
.fixture-list { display: grid; gap: 12px; }
.fixture-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--purple); border-radius: 12px; padding: 14px 18px; }
.fixture-row .date { font-family: var(--font-head); text-transform: uppercase; color: var(--purple); font-size: 1.15rem; line-height: 1.1; font-weight: 700; }
.fixture-row .date small { display: block; color: var(--muted); font-weight: 500; font-size: .9rem; }
.fixture-row .teams { font-weight: 600; }
.fixture-row .teams small { display: block; color: var(--muted); font-weight: 400; }
.fixture-row .result { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--purple); display: flex; align-items: center; gap: 10px; }
.badge { display: inline-block; font-size: .8rem; padding: 2px 10px; border-radius: 999px; color: #fff; font-weight: 700; letter-spacing: .05em; font-family: var(--font-body); }
.badge--W { background: var(--win); } .badge--D { background: var(--draw); } .badge--L { background: var(--loss); }
.badge--H { background: var(--purple); } .badge--A { background: var(--muted); }
@media (max-width: 600px) { .fixture-row { grid-template-columns: 1fr; gap: 6px; } }

/* Cards: news + players */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 16px rgba(38,11,64,.08); transition: .25s; display: flex; flex-direction: column; border: 1px solid var(--line); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--purple), var(--purple-2)); display: flex; align-items: center; justify-content: center; color: var(--pink); font-family: var(--font-head); font-size: 2.2rem; overflow: hidden; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.45rem; }
.card-body h3 a { text-decoration: none; color: var(--purple); }
.card-meta { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.card-body p { margin: 0; color: #4b3d58; font-size: .95rem; }
.player-card .card-thumb { aspect-ratio: 4/5; position: relative; }
.player-card .number { position: absolute; top: 10px; right: 14px; font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--pink); opacity: .95; line-height: 1; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.player-card .pos { color: var(--purple-2); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-bar a { text-decoration: none; padding: 6px 18px; border-radius: 999px; border: 2px solid var(--purple); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 1.05rem; font-weight: 600; color: var(--purple); }
.filter-bar a.active, .filter-bar a:hover { background: var(--purple); color: var(--pink); }

/* About / split */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--purple); color: var(--white); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 2.8rem; color: var(--pink); line-height: 1; }
.stat span { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }

/* Page / post content */
.page-hero { background: linear-gradient(120deg, var(--purple-3), var(--purple-2)); color: var(--white); padding: clamp(40px, 7vw, 80px) 0; border-bottom: 4px solid var(--pink); }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero .meta { color: var(--pink); margin-top: 10px; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; }
.content-wrap { padding: clamp(36px, 6vw, 70px) 0; }
.entry { max-width: 780px; margin-inline: auto; background: var(--white); padding: clamp(22px, 4vw, 44px); border-radius: var(--radius); box-shadow: 0 4px 16px rgba(38,11,64,.07); border: 1px solid var(--line); }
.entry img { border-radius: 10px; margin: 1.2em 0; }
.entry h2, .entry h3 { margin-top: 1.4em; }
.entry blockquote { border-left: 5px solid var(--pink); margin: 1.5em 0; padding: .3em 1.2em; background: var(--pink-2); border-radius: 0 10px 10px 0; }
.entry table { width: 100%; border-collapse: collapse; }
.entry th, .entry td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.entry th { background: var(--purple); color: var(--pink); }
.player-single { display: grid; grid-template-columns: 320px 1fr; gap: 36px; align-items: start; max-width: 960px; margin-inline: auto; }
@media (max-width: 760px) { .player-single { grid-template-columns: 1fr; } }
.player-single .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--purple); }
.pagination { margin-top: 36px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 8px 16px; border-radius: 999px; border: 2px solid var(--purple); text-decoration: none; font-family: var(--font-head); font-size: 1.1rem; }
.pagination .current, .pagination a:hover { background: var(--purple); color: var(--pink); }
.contact-box { background: var(--purple); color: var(--white); border-radius: var(--radius); padding: 24px; }
.contact-box a { color: var(--pink); }
.contact-box p { margin: 0 0 .6em; }
.search-form { display: flex; gap: 8px; max-width: 420px; }
.search-form input[type=search] { flex: 1; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--line); }

/* Footer */
.site-footer { background: var(--purple-3); color: #d9c6e6; border-top: 4px solid var(--pink); padding: 50px 0 20px; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--pink); font-size: 1.3rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--pink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.social { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.social a { border: 2px solid var(--pink); color: var(--pink); border-radius: 999px; padding: 4px 14px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; }
.social a:hover { background: var(--pink); color: var(--purple); }
.footer-bottom { border-top: 1px solid rgba(235,187,221,.2); margin-top: 34px; padding-top: 18px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.empty-note { background: var(--white); border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

/* WordPress core alignment */
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-inline: auto; display: block; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); text-align: center; }

/* League log */
.log-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); border: 1px solid var(--line); }
.log-table { width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: tabular-nums; }
.log-table th { background: var(--purple); color: var(--pink); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; padding: 12px 10px; text-align: center; }
.log-table td { padding: 11px 10px; text-align: center; border-top: 1px solid var(--line); }
.log-table .t { text-align: left; font-weight: 600; }
.log-table .pts { font-weight: 800; color: var(--purple); }
.log-table tr.us td { background: var(--pink-2); font-weight: 700; }
.log-table tbody tr:hover td { background: var(--bg); }
.log-table tr.us:hover td { background: var(--pink-2); }

/* Team logos */
.tlogo { border-radius: 50%; object-fit: contain; background: var(--white); flex: none; display: inline-block; }
.tlogo--ini { display: inline-flex; align-items: center; justify-content: center; background: var(--purple); color: var(--pink); font-family: var(--font-head); font-weight: 700; letter-spacing: .03em; }
.tm { display: inline-flex; align-items: center; gap: 10px; vertical-align: middle; }
.vsm { color: var(--muted); margin: 0 6px; font-weight: 400; }
.fixture-row .teams { line-height: 1.2; }
.fixture-row .teams .tm + .vsm + .tm { margin-top: 0; }
.match-teams .team { display: flex; flex-direction: column; align-items: center; gap: 8px; }
@media (max-width: 600px) { .fixture-row .teams .tm { display: flex; margin: 4px 0; } .fixture-row .vsm { display: none; } }

/* Gallery */
.gallery-grid { columns: 3 260px; column-gap: 14px; }
.g-item { display: block; break-inside: avoid; margin-bottom: 14px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(38,11,64,.12); transition: .25s; }
.g-item img { width: 100%; height: auto; display: block; transition: transform .35s; }
.g-item:hover { box-shadow: var(--shadow); }
.g-item:hover img { transform: scale(1.04); }
.gallery-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-strip a { aspect-ratio: 1; overflow: hidden; border-radius: 12px; display: block; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery-strip a:hover img { transform: scale(1.08); }
@media (max-width: 800px) { .gallery-strip { grid-template-columns: repeat(3, 1fr); } }
.lightbox { position: fixed; inset: 0; background: rgba(20,5,36,.94); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 10px 50px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(235,187,221,.15); color: var(--pink); border: 2px solid var(--pink); border-radius: 999px; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--pink); color: var(--purple); }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 14px; top: 50%; } .lb-next { right: 14px; top: 50%; }

/* Sponsors */
.partners { background: var(--white); border-top: 4px solid var(--pink); padding: 34px 0 30px; text-align: center; }
.partners h4 { color: var(--muted); font-size: 1.05rem; letter-spacing: .28em; margin-bottom: 22px; }
.partner-row { display: flex; align-items: center; justify-content: center; gap: clamp(26px, 6vw, 70px); flex-wrap: wrap; }
.partner { display: flex; align-items: center; justify-content: center; height: 92px; }
.partner img { height: 100%; width: auto; max-width: 210px; object-fit: contain; }
.partner.tile img { border-radius: 16px; height: 84px; }
.site-footer { border-top: 0; }
@media (max-width: 600px) { .partner { height: 72px; } .partner.tile img { height: 66px; } }
