/* === 1. VARIABLES & TOKENS === */
:root {
  /* Colors — deep crimson + warm gold on parchment */
  --brand: #9e2a2f;
  --brand-dark: #7a1f24;
  --brand-light: #c4363d;
  --accent-gold: #b8962e;
  --accent-gold-light: #d4b44a;

  --bg-body: #f7f2e8;
  --bg-card: #efe8d8;
  --bg-ui: #e3d9c6;
  --bg-elevated: #fcf9f2;

  --text-main: #2c1810;
  --text-muted: #6b5744;
  --text-invert: #ffffff;

  --border: #d6c9b3;
  --border-light: #e3d9c8;

  /* Typography */
  --font-heading: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Crimson Pro', Georgia, 'Times New Roman', serif;

  --f-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8rem);
  --f-s: clamp(0.875rem, 0.85rem + 0.125vw, 0.95rem);
  --f-base: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --f-m: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --f-l: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
  --f-xl: clamp(2rem, 1.8rem + 1vw, 2.5rem);
  --f-xxl: clamp(2.5rem, 2.2rem + 1.5vw, 3.5rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 2rem;
  --space-l: 4rem;
  --space-xl: 8rem;

  /* Layout */
  --container-width: 1200px;
  --header-height: 70px;
  --radius: 6px;
  --shadow-sm: 0 1px 3px rgb(44 24 16 / 0.06);
  --shadow-md: 0 4px 12px rgb(44 24 16 / 0.1);
  --shadow-lg: 0 8px 24px rgb(44 24 16 / 0.12);

  /* Paper texture — procedural SVG noise */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #c4363d;
    --brand-dark: #9e2a2f;
    --brand-light: #e05560;
    --accent-gold: #d4b44a;
    --accent-gold-light: #e8ca6a;

    --bg-body: #1a1410;
    --bg-card: #231d16;
    --bg-ui: #2e2720;
    --bg-elevated: #352e26;

    --text-main: #e8dfcf;
    --text-muted: #a89480;

    --border: #3d3428;
    --border-light: #4a4035;
  }
}

/* === 2. RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  background-image: var(--paper-grain);
  color: var(--text-main);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }
a { color: var(--brand); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--brand-dark); text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-main);
  margin-top: var(--space-m);
  margin-bottom: var(--space-s);
}

h1 { font-size: var(--f-xxl); }
h2 { font-size: var(--f-xl); }
h3 { font-size: var(--f-l); }
h4 { font-size: var(--f-m); }
p { margin-bottom: var(--space-s); font-size: var(--f-base); }

/* === 3. LAYOUT & UTILITIES === */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.skip-link {
  position: absolute; top: -9999px; left: 1rem;
  background: var(--brand); color: white; padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { top: 1rem; }

.btn { font-family: var(--font-body); display: inline-flex; align-items: center; justify-content: center; padding: 0.75rem 2rem; border-radius: var(--radius); font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-size: var(--f-base); letter-spacing: 0.02em; }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* === 4. HEADER === */
.site-header {
  height: var(--header-height);
  display: flex; align-items: center;
  border-bottom: 2px solid var(--accent-gold);
  background-color: var(--bg-body);
  background-image: var(--paper-grain);
  position: sticky; top: 0; z-index: 50;
}
.site-header nav { display: flex; justify-content: space-between; align-items: center; width: 90%; max-width: var(--container-width); margin: 0 auto; }
.logo { font-family: var(--font-heading); font-weight: 700; font-size: var(--f-m); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-main); }
.site-header .nav-menu { display: flex; gap: var(--space-s); list-style: none; }
.site-header a { font-family: var(--font-body); color: var(--text-main); font-weight: 600; font-size: var(--f-s); letter-spacing: 0.02em; text-transform: uppercase; }

/* Hamburger toggle */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative; z-index: 60;
  padding: 0; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px; background: var(--text-main);
  position: absolute; left: 0; transition: all 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-header .nav-menu {
    display: none; flex-direction: column; position: absolute;
    top: var(--header-height); left: 0; right: 0;
    background: var(--bg-body); background-image: var(--paper-grain);
    border-bottom: 2px solid var(--accent-gold);
    padding: var(--space-s) 0; box-shadow: var(--shadow-md);
    gap: 0;
  }
  .site-header .nav-menu.open { display: flex; }
  .nav-menu li { text-align: center; }
  .nav-menu a { display: block; padding: var(--space-xs) var(--space-s); font-size: var(--f-base); }
  .nav-menu a:hover { background: var(--bg-card); }
}

/* === 5. HERO & SECTIONS === */
.hero-section {
  padding: var(--space-xl) 0 var(--space-l);
  text-align: center;
  background-color: var(--bg-card);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(184, 150, 46, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(158, 42, 47, 0.04) 0%, transparent 50%),
    var(--paper-grain);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.hero-subtitle { font-size: var(--f-l); color: var(--text-muted); margin: var(--space-s) auto var(--space-m); font-style: italic; max-width: 600px; }

/* Gold ornamental rule */
.hero-content::after {
  content: '';
  display: block;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: var(--space-m) auto 0;
}

.latest-section { margin: var(--space-l) 0; }
.section-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-m); border-bottom: 1px solid var(--border-light); padding-bottom: var(--space-s); }
.section-header h2 { margin: 0; position: relative; padding-bottom: var(--space-s); }
.section-header h2::after { content: ''; position: absolute; bottom: calc(-1 * var(--space-s) - 1px); left: 0; width: 60px; height: 2px; background: var(--accent-gold); }
.view-all { font-size: var(--f-s); color: var(--brand); font-weight: 600; }

/* === 6. CARDS & GRID === */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-m);
  margin: var(--space-m) 0;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%; display: flex; flex-direction: column;
}

.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--accent-gold); }

.post-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--bg-ui); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.5s ease; }
.post-card:hover .post-card-image img { transform: scale(1.05); }

.post-card-content { padding: 1.25rem; flex-grow: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.post-card-content .meta { font-size: var(--f-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.post-card-content h2, .post-card-content h3 { font-size: var(--f-m); margin: 0; line-height: 1.3; overflow-wrap: break-word; word-break: break-word; }
.post-card-content p { font-size: var(--f-s); color: var(--text-muted); flex-grow: 1; margin: 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.category { color: var(--brand); font-weight: 600; margin-right: 0.5rem; }

/* Featured card — first post on homepage */
.post-card.featured {
  grid-column: 1 / -1;
  border-left: 4px solid var(--accent-gold);
}
.post-card.featured:has(.post-card-image) {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
}
.post-card.featured .post-card-image { aspect-ratio: auto; min-height: 280px; }
.post-card.featured .post-card-content { padding: var(--space-m); justify-content: center; }
.post-card.featured .post-card-content h3 { font-size: var(--f-l); }
.post-card.featured .post-card-content p { font-size: var(--f-base); }
.post-card.featured .meta::before { content: 'FEATURED'; font-family: var(--font-heading); color: var(--accent-gold); font-weight: 700; margin-right: 0.75rem; letter-spacing: 0.1em; }

@media (max-width: 600px) {
  .post-card.featured:has(.post-card-image) { grid-template-columns: 1fr; }
  .post-card.featured .post-card-image { aspect-ratio: 16/9; min-height: auto; }
}

/* === 7. ARTICLE PAGE === */
.post-single { max-width: 720px; margin: var(--space-l) auto; padding: 0 var(--space-s); }
.post-header { text-align: center; margin-bottom: var(--space-l); }
.post-header h1 { margin-bottom: var(--space-s); }
.post-header h1::after { content: ''; display: block; width: 60px; height: 2px; background: var(--accent-gold); margin: var(--space-s) auto 0; }
.post-header .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: var(--space-s); font-size: var(--f-s); color: var(--text-muted); }
.separator { opacity: 0.5; }

.breadcrumb ul { display: flex; list-style: none; gap: 0.5rem; font-size: var(--f-xs); color: var(--text-muted); margin-bottom: var(--space-m); flex-wrap: wrap; }

.post-content { font-size: var(--f-base); }
.post-content h2 { margin-top: var(--space-l); padding-top: var(--space-m); border-top: 2px solid var(--border-light); position: relative; }
.post-content h2::before { content: ''; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--accent-gold); }
.post-content ul, .post-content ol { margin-bottom: var(--space-s); padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content blockquote { border-left: 4px solid var(--accent-gold); font-style: italic; font-size: var(--f-m); color: var(--text-main); background: var(--bg-card); padding: var(--space-s); border-radius: 0 var(--radius) var(--radius) 0; margin: var(--space-m) 0; }
.post-content table { width: 100%; border-collapse: collapse; margin: var(--space-m) 0; font-size: var(--f-s); }
.post-content th, .post-content td { padding: 0.75rem; border: 1px solid var(--border); text-align: left; }
.post-content th { background: var(--bg-card); font-family: var(--font-heading); font-weight: 600; font-size: var(--f-xs); text-transform: uppercase; letter-spacing: 0.05em; }

/* Table of Contents */
.toc { background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--accent-gold); padding: var(--space-s); border-radius: var(--radius); margin-bottom: var(--space-m); font-size: var(--f-s); }
.toc summary { font-family: var(--font-heading); font-weight: 700; cursor: pointer; font-size: var(--f-s); text-transform: uppercase; letter-spacing: 0.05em; }
.toc ul { margin-top: 0.5rem; }

/* === 8. GEO & DATA COMPONENTS === */
.quick-facts {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-m);
  margin-bottom: var(--space-l);
  box-shadow: var(--shadow-sm);
}
.quick-facts h2 { font-size: var(--f-m); margin-top: 0; border-bottom: 2px solid var(--accent-gold); padding-bottom: 0.5rem; margin-bottom: var(--space-s); }
.quick-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-s); }
.quick-facts dt { font-size: var(--f-xs); text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 0.25rem; letter-spacing: 0.05em; }
.quick-facts dd { font-size: var(--f-s); font-weight: 500; }

.faq { margin-top: var(--space-l); padding-top: var(--space-m); border-top: 1px solid var(--border); }
.faq h2::after { content: ''; display: block; width: 40px; height: 2px; background: var(--accent-gold); margin-top: 0.5rem; }
.faq details { margin-bottom: var(--space-s); border-bottom: 1px solid var(--border-light); }
.faq summary { font-weight: 600; cursor: pointer; padding: 0.75rem 0; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; font-size: var(--f-m); color: var(--accent-gold); font-weight: 300; transition: transform 0.2s ease; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 0 0.75rem var(--space-s); color: var(--text-muted); }

/* === 9. POST FOOTER & RELATED === */
.post-footer { margin-top: var(--space-xl); padding-top: var(--space-m); border-top: 1px solid var(--border); }
.share-buttons { margin-bottom: var(--space-l); }
.share-buttons h3 { font-size: var(--f-m); margin-bottom: var(--space-s); }
.share-btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1.25rem; margin-right: 0.5rem; margin-bottom: 0.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: 100px; font-size: var(--f-s); font-family: var(--font-body); font-weight: 600; color: var(--text-main); transition: all 0.2s ease; }
.share-btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.share-btn.twitter { border-color: #1da1f2; color: #1da1f2; }
.share-btn.twitter:hover { background: #1da1f2; color: white; }
.share-btn.facebook { border-color: #1877f2; color: #1877f2; }
.share-btn.facebook:hover { background: #1877f2; color: white; }
.share-btn.email { border-color: var(--accent-gold); color: var(--accent-gold); }
.share-btn.email:hover { background: var(--accent-gold); color: white; }

.related-posts h3 { font-size: var(--f-l); margin-bottom: var(--space-m); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-s); }
.related-card { display: block; padding: var(--space-s); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.2s ease; }
.related-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent-gold); text-decoration: none; }
.related-card h4 { font-size: var(--f-s); margin: 0 0 0.5rem; }
.related-card p { font-size: var(--f-xs); color: var(--text-muted); margin: 0; }

/* === 10. FOOTER === */
.site-footer { margin-top: var(--space-xl); padding: var(--space-l) 0; border-top: 2px solid var(--accent-gold); text-align: center; color: var(--text-muted); font-size: var(--f-s); }
.site-footer nav { display: flex; justify-content: center; gap: var(--space-m); margin: var(--space-s) 0; flex-wrap: wrap; }
.site-footer .disclosure { font-size: var(--f-xs); margin-top: var(--space-s); font-style: italic; }

/* === 11. AFFILIATE & ADS === */
.affiliate-cta { background: var(--bg-card); border: 2px solid var(--accent-gold); padding: var(--space-m); border-radius: var(--radius); text-align: center; margin: var(--space-l) 0; position: relative; }
.affiliate-cta::before { content: ''; position: absolute; inset: 4px; border: 1px solid var(--border-light); border-radius: calc(var(--radius) - 2px); pointer-events: none; }
.cta-button { display: inline-block; background: var(--brand); color: white; padding: 0.75rem 2rem; border-radius: var(--radius); font-weight: 600; margin-top: 0.5rem; transition: all 0.2s ease; font-size: var(--f-base); }
.cta-button:hover { background: var(--brand-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.ad-slot { background: var(--bg-ui); min-height: 250px; display: flex; align-items: center; justify-content: center; margin: var(--space-l) 0; text-align: center; color: var(--text-muted); font-size: var(--f-xs); border: 1px dashed var(--border); border-radius: var(--radius); }

.disclaimer { margin-top: var(--space-l); padding: var(--space-s); background: var(--bg-card); border-radius: var(--radius); font-size: var(--f-s); color: var(--text-muted); border: 1px solid var(--border); }

/* === 12. PAGE HEADER (List pages) === */
.page-header { padding: var(--space-l) 0; border-bottom: 1px solid var(--border); margin-bottom: var(--space-m); }
.page-header h1::after { content: ''; display: block; width: 60px; height: 2px; background: var(--accent-gold); margin-top: var(--space-s); }
.page-description { color: var(--text-muted); font-size: var(--f-base); margin-top: var(--space-s); }

/* === 13. CATEGORY TAGS === */
.category-tag { display: inline-block; font-size: var(--f-xs); background: var(--bg-card); padding: 0.25rem 0.75rem; border-radius: calc(var(--radius) / 2); color: var(--brand); border: 1px solid var(--border); margin-right: 0.5rem; transition: all 0.2s ease; }
.category-tag:hover { background: var(--brand); color: white; text-decoration: none; }

/* === 14. AFL TEAM COLOURS === */
.team-adelaide-crows { --team-primary: #002B5C; --team-secondary: #FFD200; }
.team-brisbane-lions { --team-primary: #A30046; --team-secondary: #0039A6; }
.team-carlton-blues { --team-primary: #0E1E2D; --team-secondary: #FFFFFF; }
.team-collingwood-magpies { --team-primary: #000000; --team-secondary: #FFFFFF; }
.team-essendon-bombers { --team-primary: #CC2031; --team-secondary: #000000; }
.team-fremantle-dockers { --team-primary: #2A0D45; --team-secondary: #FFFFFF; }
.team-geelong-cats { --team-primary: #001F3D; --team-secondary: #FFFFFF; }
.team-gold-coast-suns { --team-primary: #D72300; --team-secondary: #FFD200; }
.team-gws-giants { --team-primary: #F47920; --team-secondary: #4A4F55; }
.team-hawthorn-hawks { --team-primary: #4D2004; --team-secondary: #FBBF15; }
.team-melbourne-demons { --team-primary: #CC0000; --team-secondary: #0F1131; }
.team-north-melbourne-kangaroos { --team-primary: #003690; --team-secondary: #FFFFFF; }
.team-port-adelaide-power { --team-primary: #008AAB; --team-secondary: #000000; }
.team-richmond-tigers { --team-primary: #000000; --team-secondary: #FFD200; }
.team-st-kilda-saints { --team-primary: #ED1C24; --team-secondary: #000000; }
.team-sydney-swans { --team-primary: #ED171F; --team-secondary: #FFFFFF; }
.team-west-coast-eagles { --team-primary: #002B79; --team-secondary: #F2A900; }
.team-western-bulldogs { --team-primary: #014896; --team-secondary: #CC2031; }

/* === 15. PLAYER CARD === */
.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--team-primary, var(--brand));
  border-radius: var(--radius);
  padding: var(--space-m);
  margin-bottom: var(--space-l);
  box-shadow: var(--shadow-sm);
}

.player-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-s);
}

.position-badge {
  font-family: var(--font-heading);
  display: inline-block;
  background: var(--team-primary, var(--brand));
  color: var(--team-secondary, white);
  font-size: var(--f-xs);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: calc(var(--radius) / 2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.verdict {
  font-family: var(--font-heading);
  font-size: var(--f-xs);
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: calc(var(--radius) / 2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.verdict-buy { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.verdict-hold { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.verdict-sell { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.verdict-watch { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

@media (prefers-color-scheme: dark) {
  .verdict-buy { background: #064e3b; color: #6ee7b7; border-color: #065f46; }
  .verdict-hold { background: #78350f; color: #fcd34d; border-color: #92400e; }
  .verdict-sell { background: #7f1d1d; color: #fca5a5; border-color: #991b1b; }
  .verdict-watch { background: #1e3a5f; color: #93c5fd; border-color: #1e40af; }
}

.player-card-name h2 {
  font-size: var(--f-l);
  margin: 0;
  line-height: 1.2;
}

.player-team {
  font-size: var(--f-s);
  color: var(--text-muted);
  display: block;
  margin-top: 0.25rem;
}

.player-card-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-s);
  margin-top: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid var(--border);
}

.player-stat {
  display: flex;
  flex-direction: column;
}

.player-stat-value {
  font-family: var(--font-heading);
  font-size: var(--f-m);
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: -0.02em;
}

.player-stat-label {
  font-size: var(--f-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

/* === 16. PLAYER ANALYTICS === */
.player-card-analytics {
  margin-top: var(--space-m);
  padding-top: var(--space-s);
  border-top: 1px solid var(--border);
}

.analytics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-s);
}

.analytics-chip {
  display: flex;
  flex-direction: column;
  background: var(--bg-ui);
  padding: 0.4rem 0.75rem;
  border-radius: calc(var(--radius) / 2);
  flex: 1;
  min-width: 90px;
}

.chip-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.chip-value {
  font-size: var(--f-s);
  font-weight: 700;
  color: var(--text-main);
}

.price-projection {
  margin-bottom: var(--space-s);
  font-size: var(--f-s);
  font-weight: 600;
}

.projection-up { color: #059669; }
.projection-down { color: #dc2626; }

@media (prefers-color-scheme: dark) {
  .projection-up { color: #6ee7b7; }
  .projection-down { color: #fca5a5; }
}

.cash-generation {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
  padding: 0.6rem 1rem;
  border-radius: calc(var(--radius) / 2);
  font-size: var(--f-s);
  margin-bottom: var(--space-s);
}

@media (prefers-color-scheme: dark) {
  .cash-generation {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #6ee7b7;
  }
}

/* Scoring Profile Bars */
.scoring-profile {
  margin-top: var(--space-s);
}

.scoring-profile-label {
  font-size: var(--f-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.profile-bars {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.profile-bar-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 0.5rem;
}

.bar-label {
  font-size: var(--f-xs);
  color: var(--text-muted);
  text-align: right;
}

.bar-track {
  height: 8px;
  background: var(--bg-ui);
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.bar-disposals { background: var(--brand); }
.bar-marks { background: #3b82f6; }
.bar-goals { background: #f59e0b; }
.bar-tackles { background: #8b5cf6; }
.bar-hitouts { background: #06b6d4; }

.bar-value {
  font-size: var(--f-xs);
  color: var(--text-muted);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 100px;
}

.bar-pts {
  color: var(--text-muted);
  opacity: 0.7;
  font-weight: 400;
}

/* === 16. ORNAMENTAL RULE === */
.ornamental-rule {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-gold) 20%, var(--accent-gold) 80%, transparent);
  margin: var(--space-m) auto;
  max-width: 200px;
}
