/*
Theme Name: FFXIV Mods
Theme URI: https://ffxivmods.com/
Author: FFXIV Mods Team
Author URI: https://ffxivmods.com/
Description: Fast, SEO-first WordPress theme built specifically for FFXIV Mods (Exact Match Domain). Uses standard WordPress Posts for mod uploads with a built-in Mod Download Box, AJAX download counter, Penumbra/TexTools/Dalamud badges, automated pillar pages & SEO categories, internal/external linking hubs, FAQ/SoftwareApplication/HowTo/BreadcrumbList JSON-LD schema, and custom SVG logo & favicon set.
Version: 1.1.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: ffxiv-mods
Tags: gaming, dark, custom-logo, custom-menu, featured-images, blog, two-columns, right-sidebar, seo-ready
*/

:root {
  --bg-body: #070b14;
  --bg-surface: #0f172a;
  --bg-surface-2: #162036;
  --bg-elevated: #1c2944;
  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-accent: rgba(56, 189, 248, 0.4);
  --border-gold: rgba(229, 184, 75, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent-cyan: #38bdf8;
  --accent-cyan-hover: #7dd3fc;
  --accent-gold: #e5b84b;
  --accent-gold-hover: #f5cf6e;
  --accent-green: #34d399;
  --accent-red: #f87171;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 0 1px rgba(56, 189, 248, 0.25), 0 12px 32px rgba(2, 132, 199, 0.16);
  --container: 1240px;
  --font-display: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--bg-body);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -10%, rgba(14, 165, 233, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 35% at 90% 10%, rgba(229, 184, 75, 0.06), transparent 65%);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

a:hover {
  color: var(--accent-cyan-hover);
}

.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;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  clip: auto;
  background: var(--accent-gold);
  color: #070b14;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-logo-link img {
  height: 44px;
  width: auto;
  display: block;
}

.primary-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-category-ancestor > a {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px 4px 3px 14px;
  transition: border-color 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--accent-cyan);
}

.header-search input[type="search"] {
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 13.5px;
  width: 175px;
  outline: none;
}

.header-search input[type="search"]::placeholder {
  color: var(--text-muted);
}

.header-search button {
  background: var(--accent-cyan);
  color: #070b14;
  border: 0;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-search button:hover {
  background: var(--accent-cyan-hover);
}

.mobile-menu-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 20px 22px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer .nav-menu {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.mobile-drawer .nav-menu a {
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.02);
}

/* ================= HERO SECTION ================= */
.hero-section {
  padding: 40px 0 26px;
}

.hero-card {
  position: relative;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(11, 18, 33, 0.98));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(229, 184, 75, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-subtitle {
  max-width: 740px;
  margin: 0 auto 24px;
  color: var(--text-secondary);
  font-size: 16.5px;
}

.hero-search-form {
  display: flex;
  max-width: 620px;
  margin: 0 auto 22px;
  background: var(--bg-body);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  padding: 6px;
  gap: 8px;
}

.hero-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 15.5px;
  padding: 10px 14px;
  outline: none;
}

.hero-search-form button {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #070b14;
  border: 0;
  border-radius: 10px;
  padding: 10px 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}

.hero-search-form button:hover {
  filter: brightness(1.08);
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.hero-quick-links a {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: 999px;
}

.hero-quick-links a:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* ================= CATEGORY PILLS ================= */
.category-pills-wrap {
  margin: 22px 0 28px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
}

.cat-pill:hover,
.cat-pill.is-active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #070b14;
}

.cat-pill .pill-count {
  font-size: 11.5px;
  opacity: 0.78;
}

/* ================= SPOTLIGHT + ESSENTIAL TOOLS ================= */
.spotlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 38px;
}

.panel-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 9px;
}

.section-title .accent-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px var(--accent-gold);
  flex-shrink: 0;
}

.section-link {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.essential-tools-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.tool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.tool-item:hover {
  border-color: var(--accent-cyan);
}

.tool-item-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14.5px;
  display: block;
}

.tool-item-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  display: block;
}

.tool-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent-cyan);
  white-space: nowrap;
}

/* ================= MOD CARDS GRID ================= */
.mods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.mods-grid.mods-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mod-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
}

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

.mod-card-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #111c33, #0b1220);
  overflow: hidden;
}

.mod-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.mod-card:hover .mod-card-thumb img {
  transform: scale(1.04);
}

.mod-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  background: radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.16), transparent 65%), #0c1426;
}

.mod-card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.badge-cat,
.badge-tool,
.badge-patch {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  line-height: 1.2;
}

.badge-cat {
  background: rgba(7, 11, 20, 0.85);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.badge-tool {
  background: rgba(229, 184, 75, 0.92);
  color: #070b14;
}

.mod-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mod-card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.mod-card-title a {
  color: var(--text-primary);
}

.mod-card-title a:hover {
  color: var(--accent-gold);
}

.mod-card-excerpt {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 13.8px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mod-card-meta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.mod-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: var(--accent-gold);
}

/* ================= MAIN TWO-COLUMN LAYOUT ================= */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  padding: 28px 0 56px;
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* ================= BREADCRUMBS ================= */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 18px;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent-cyan);
}

.breadcrumbs .sep {
  opacity: 0.45;
}

/* ================= SINGLE MOD POST ================= */
.single-mod-article {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-card);
}

.single-mod-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  line-height: 1.24;
  margin: 0 0 14px;
  color: var(--text-primary);
}

.mod-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.mod-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-weight: 600;
}

.single-featured-image {
  margin: 0 0 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #0a101f;
}

.single-featured-image img {
  width: 100%;
  display: block;
}

/* ================= MOD DOWNLOAD BOX ================= */
.mod-download-box {
  background: linear-gradient(145deg, rgba(18, 29, 52, 0.98), rgba(11, 18, 34, 0.98));
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 24px 0 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.mod-download-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.mod-download-header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0;
  color: var(--accent-gold);
}

.mod-verified-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-green);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.mod-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.mod-spec-item {
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.mod-spec-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.mod-spec-val {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

.mod-download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn-download-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--accent-gold), #d49b27);
  color: #070b14;
  font-weight: 800;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(229, 184, 75, 0.25);
}

.btn-download-primary:hover {
  color: #070b14;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-download-primary.is-waiting {
  opacity: 0.85;
  cursor: wait;
}

.btn-download-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border-accent);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 18px;
  border-radius: 10px;
}

.btn-download-secondary:hover {
  background: rgba(56, 189, 248, 0.14);
  color: var(--text-primary);
}

.mod-download-helper {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ================= ENTRY CONTENT & TOC ================= */
.toc-box {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 0 0 24px;
}

.toc-box-title {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
  margin: 0 0 10px;
}

.toc-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
}

.toc-list li {
  margin-bottom: 5px;
}

.entry-content {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--text-primary);
  font-family: var(--font-display);
  margin: 1.7em 0 0.65em;
  line-height: 1.3;
}

.entry-content h2 {
  font-size: 1.45rem;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.entry-content h3 {
  font-size: 1.18rem;
}

.entry-content p {
  margin: 0 0 1.15em;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.4em;
}

.entry-content li {
  margin-bottom: 0.45em;
}

.entry-content blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  background: var(--bg-surface-2);
  border-left: 4px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-primary);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4em 0;
  font-size: 14.5px;
}

.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.entry-content th {
  background: var(--bg-surface-2);
  color: var(--text-primary);
}

.entry-content code {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan-hover);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.9em;
}

/* Contextual Internal Links Callout */
.internal-link-callout {
  margin: 26px 0;
  padding: 18px 20px;
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
}

.internal-link-callout h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--accent-cyan);
  font-family: var(--font-body);
}

.internal-link-callout ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14.5px;
}

/* Tags Row */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.post-tags a {
  font-size: 12.5px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 4px 11px;
  border-radius: 999px;
}

.post-tags a:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Related Mods */
.related-mods-section {
  margin-top: 32px;
}

/* ================= SIDEBAR WIDGETS ================= */
.sidebar-widget {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
}

.widget-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.widget-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14.5px;
  padding: 6px 0;
}

.widget-list a:hover {
  color: var(--accent-gold);
}

.widget-count {
  font-size: 12px;
  background: var(--bg-surface-2);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 999px;
}

/* ================= ARCHIVE FILTER BAR ================= */
.archive-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.archive-filter-bar select,
.archive-filter-bar input[type="search"] {
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-size: 14px;
  flex: 1;
  min-width: 160px;
}

.archive-filter-bar button {
  background: var(--accent-cyan);
  color: #070b14;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 9px 20px;
  font-weight: 700;
  cursor: pointer;
}

/* ================= SEO FAQ ACCORDION ================= */
.faq-section {
  margin: 44px 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 700;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--accent-gold);
}

.faq-icon {
  font-size: 20px;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 15px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

/* ================= PILLAR HUB CARDS ================= */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 42px;
}

.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  border-color: var(--border-gold);
}

.guide-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.guide-card h3 a {
  color: var(--text-primary);
}

.guide-card p {
  margin: 0 0 14px;
  font-size: 14.2px;
  color: var(--text-muted);
  flex: 1;
}

/* ================= PAGINATION ================= */
.pagination-wrap {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.nav-links,
.page-numbers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 13px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
}

.page-numbers.current,
.page-numbers:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #070b14;
}

/* ================= FOOTER ================= */
.site-footer {
  background: #050810;
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 28px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 14px 0 0;
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ================= COMMENTS ================= */
.comments-area {
  margin-top: 30px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 6px;
  font-family: inherit;
}

.comment-form .submit {
  background: var(--accent-cyan);
  color: #070b14;
  border: 0;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .spotlight-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }
  .mods-grid,
  .guides-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header-search {
    display: none;
  }
}

@media (max-width: 768px) {
  .primary-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .hero-card {
    padding: 28px 18px;
  }
  .hero-search-form {
    flex-direction: column;
  }
  .mods-grid,
  .mods-grid.mods-grid-2,
  .guides-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .mod-specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .single-mod-article {
    padding: 20px 18px;
  }
}


/* ================= v1.1 NEXUS-STYLE ARCHIVE FILTERS, MOD HERO, GALLERY, TABS & SECURE COUNTDOWN ================= */
.mod-card-submeta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.mod-card-stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Countdown Progress Bar */
.rdl-progress-wrap {
  margin-bottom: 16px;
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.rdl-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan-hover);
  margin-bottom: 8px;
}

.rdl-progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.rdl-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-gold));
  border-radius: 999px;
  transition: width 0.1s linear;
}

/* Nexus-Style Archive Shell & Collapsible Filter Sidebar */
.archive-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.archive-shell.filters-collapsed {
  grid-template-columns: 1fr;
}

.archive-shell.filters-collapsed .filter-sidebar {
  display: none;
}

.filter-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  position: sticky;
  top: 88px;
}

.filter-sidebar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.filter-group {
  border-bottom: 1px solid var(--border-subtle);
}

.filter-group-head {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13.5px;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.filter-group-head .fg-chev {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.filter-group:not(.is-open) .fg-chev {
  transform: rotate(-90deg);
}

.filter-group-body {
  display: none;
  padding-bottom: 14px;
}

.filter-group.is-open .filter-group-body {
  display: block;
}

.filter-scroll {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.fx-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 4px 0;
  cursor: pointer;
}

.fx-check input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.fx-check-lbl {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fx-check-cnt {
  font-size: 12px;
  color: var(--text-muted);
}

.fx-mini-lbl {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.fx-input {
  width: 100%;
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13.5px;
}

.fx-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.fx-range-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.filter-group:not(.is-open) .fx-range-row {
  display: none !important;
}

.btn-apply-filter {
  width: 100%;
  margin-top: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

.btn-apply-filter:hover {
  background: rgba(56, 189, 248, 0.16);
}

/* Archive Toolbar */
.archive-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.archive-toolbar-left,
.archive-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.archive-result-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.btn-toolbar {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.btn-toolbar:hover {
  border-color: var(--accent-cyan);
}

.fx-toolbar-select {
  background: var(--bg-body);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 13px;
}

.mods-grid.is-list-view {
  grid-template-columns: 1fr;
}

.mods-grid.is-list-view .mod-card {
  flex-direction: row;
}

.mods-grid.is-list-view .mod-card-thumb {
  width: 260px;
  flex-shrink: 0;
}

/* Single Mod Hero Banner & Stats Strip */
.mod-hero-banner {
  position: relative;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.72), var(--bg-body)), var(--mod-hero-bg, none) center/cover no-repeat;
  border-bottom: 1px solid var(--border-subtle);
  padding: 26px 0 28px;
}

.mod-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  margin: 0 0 18px;
  color: var(--text-primary);
}

.mod-stats-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 20px;
}

.mod-stat-cell {
  display: flex;
  flex-direction: column;
}

.mod-stat-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.mod-stat-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}

.mod-stat-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Gallery Strip */
.mod-gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 0 6px;
}

.mod-gallery-item {
  flex: 0 0 220px;
  height: 126px;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #0a101f;
  cursor: pointer;
}

.mod-gallery-item:hover {
  border-color: var(--accent-cyan);
}

.mod-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* File Info Strip */
.file-info-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 14px;
}

.fi-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fi-lbl {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fi-val {
  font-size: 14px;
  color: var(--text-primary);
}

/* Mod Tabs */
.mod-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 10px;
}

.mod-tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mod-tab-btn:hover,
.mod-tab-btn.is-active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #070b14;
}

.mod-tab-btn .tab-cnt {
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.22);
  padding: 1px 7px;
  border-radius: 999px;
}

.mod-tab-pane {
  display: none;
}

.mod-tab-pane.is-active {
  display: block;
}

/* Lightbox */
.ffxiv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 7, 15, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ffxiv-lightbox.is-open {
  display: flex;
}

.ffxiv-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.lb-close,
.lb-nav {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  font-size: 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lb-close { top: 20px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 960px) {
  .archive-shell {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .file-info-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mods-grid.is-list-view .mod-card {
    flex-direction: column;
  }
  .mods-grid.is-list-view .mod-card-thumb {
    width: 100%;
  }
}
