/* =============================================
   ArmoryList.com — Main Stylesheet
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Barlow:wght@300;400;500;600&family=Barlow+Condensed:wght@400;500;600;700&display=swap');

:root {
  --black:      #08090a;
  --dark:       #0f1113;
  --panel:      #161819;
  --panel-alt:  #1c1e21;
  --border:     #222527;
  --border-lt:  #2c2f33;
  --gold:       #c9943a;
  --gold-light: #dea84e;
  --gold-dim:   #6b4f1e;
  --gold-bg:    rgba(201,148,58,0.08);
  --red:        #cc3333;
  --red-bg:     rgba(204,51,51,0.08);
  --green:      #3d9e3d;
  --text:       #ccc8c0;
  --text-muted: #6e6b64;
  --text-dim:   #3e3c39;
  --white:      #eeeae2;
  --radius:     6px;
  --shadow:     0 4px 20px rgba(0,0,0,0.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; }

body {
  background: var(--black);
  color: var(--text);
  font-family: 'Barlow', sans-serif;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; transition: color .18s; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: 'Oswald', sans-serif; color: var(--white); font-weight: 600; line-height: 1.15; }

/* ── Layout ────────────────────────────── */
.al-wrap    { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.al-page    { padding: 32px 20px; max-width: 1280px; margin: 0 auto; }
.al-grid    { display: grid; grid-template-columns: 220px 1fr 270px; gap: 24px; align-items: start; }
.al-grid-2  { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }

/* ── Top utility bar ───────────────────── */
#al-topbar {
  background: #060708;
  border-bottom: 1px solid var(--border);
  padding: 5px 0;
  font-size: 12px;
  color: var(--text-muted);
}
#al-topbar .al-wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
#al-topbar a { color: var(--text-muted); font-size: 11px; }
#al-topbar a:hover { color: var(--gold); }
.al-topbar-left, .al-topbar-right { display: flex; gap: 14px; align-items: center; }
.al-live-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; display: inline-block; animation: alPulse 1.4s infinite; margin-right: 4px; box-shadow: 0 0 5px var(--red); }
@keyframes alPulse { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Header ────────────────────────────── */
#al-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 20px rgba(0,0,0,.6);
}
#al-header .al-wrap { display: flex; align-items: center; gap: 16px; height: 64px; }

.al-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.al-logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg,#1a1c20,#12141a); border: 1px solid var(--border-lt); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.al-logo-text { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: .5px; line-height: 1; }
.al-logo-text span { color: var(--gold); }
.al-logo-sub { font-size: 9px; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; font-family: 'Barlow Condensed', sans-serif; margin-top: 2px; }

/* Search bar */
.al-search { flex: 1; max-width: 560px; display: flex; background: var(--panel-alt); border: 1px solid var(--border-lt); border-radius: var(--radius); overflow: hidden; }
.al-search:focus-within { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(201,148,58,.08); }
.al-search input[type="search"] { flex: 1; background: transparent; border: none; color: var(--white); padding: 0 14px; height: 40px; font-size: 13px; font-family: 'Barlow', sans-serif; outline: none; }
.al-search input::placeholder { color: var(--text-dim); }
.al-search button { background: var(--gold); border: none; color: #0a0a0b; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 0 18px; height: 40px; cursor: pointer; transition: background .18s; white-space: nowrap; }
.al-search button:hover { background: var(--gold-light); }

.al-header-btns { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-shrink: 0; }

/* ── Nav bar ───────────────────────────── */
#al-nav {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 64px; z-index: 199;
}
#al-nav .al-wrap { display: flex; overflow-x: auto; scrollbar-width: none; }
#al-nav .al-wrap::-webkit-scrollbar { display: none; }
#al-nav a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  color: var(--text-muted); padding: 10px 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; transition: all .15s; display: flex; align-items: center; gap: 5px;
}
#al-nav a:hover, #al-nav a.current { color: var(--gold); border-bottom-color: var(--gold); }
.al-nav-badge { background: var(--red); color: #fff; font-size: 8px; font-weight: 800; padding: 1px 4px; border-radius: 2px; }

/* ── Buttons ───────────────────────────── */
.al-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius);
  font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase; border: none;
  cursor: pointer; transition: all .18s; white-space: nowrap; line-height: 1;
}
.al-btn-primary  { background: var(--gold); color: #0a0a0b; }
.al-btn-primary:hover, .al-btn-primary:focus { background: var(--gold-light); color: #0a0a0b; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,148,58,.3); }
.al-btn-danger   { background: var(--red); color: #fff; }
.al-btn-danger:hover { background: #e04040; color: #fff; transform: translateY(-1px); }
.al-btn-ghost    { background: transparent; border: 1px solid var(--border-lt); color: var(--text); }
.al-btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold); background: var(--gold-bg); }
.al-btn-sm { padding: 6px 12px; font-size: 11px; }
.al-btn-lg { padding: 12px 24px; font-size: 15px; }

/* ── Cards ─────────────────────────────── */
.al-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.al-card-head { background: linear-gradient(180deg, var(--panel-alt) 0%, var(--panel) 100%); border-bottom: 1px solid var(--border); padding: 11px 16px; display: flex; justify-content: space-between; align-items: center; }
.al-card-head-title { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }

/* ── Hero ──────────────────────────────── */
#al-hero {
  background: linear-gradient(160deg, #0c0e12 0%, #141a22 45%, #0e0d0b 100%);
  border-bottom: 1px solid var(--border);
  padding: 52px 20px;
  position: relative; overflow: hidden;
}
#al-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(201,148,58,.05) 0%, transparent 70%);
  pointer-events: none;
}
.al-hero-inner { max-width: 1280px; margin: 0 auto; display: flex; gap: 36px; align-items: center; position: relative; z-index: 1; }
.al-hero-content { flex: 1; }
.al-hero-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.al-hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold-dim); }
.al-hero-title { font-family: 'Oswald', sans-serif; font-size: 50px; font-weight: 700; color: var(--white); line-height: 1.0; margin-bottom: 18px; }
.al-hero-title span { color: var(--gold); display: block; }
.al-hero-desc { color: var(--text-muted); font-size: 15px; max-width: 460px; line-height: 1.65; margin-bottom: 28px; }
.al-hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.al-hero-stats { display: flex; gap: 12px; flex-shrink: 0; }
.al-stat-box { text-align: center; padding: 20px 24px; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-top: 2px solid var(--gold-dim); border-radius: var(--radius); min-width: 110px; }
.al-stat-num { font-family: 'Oswald', sans-serif; font-size: 28px; font-weight: 700; color: var(--gold); display: block; line-height: 1; }
.al-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-top: 5px; font-family: 'Barlow Condensed', sans-serif; }

/* ── Listing Cards ─────────────────────── */
.al-listing {
  display: flex; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 6px;
  text-decoration: none; color: inherit;
  transition: border-color .18s, box-shadow .18s, transform .15s;
}
.al-listing:hover { border-color: var(--border-lt); box-shadow: 0 4px 20px rgba(0,0,0,.45); transform: translateY(-1px); }
.al-listing.featured { border-color: var(--gold-dim); background: linear-gradient(90deg,rgba(201,148,58,.04) 0%,var(--panel) 30%); }
.al-listing-img { width: 148px; min-width: 148px; height: 110px; overflow: hidden; background: var(--dark); position: relative; flex-shrink: 0; }
.al-listing-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.al-listing:hover .al-listing-img img { transform: scale(1.04); }
.al-listing-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg,#141618,#0c0d0f); font-size: 36px; }
.al-listing-badge { position: absolute; top: 7px; left: 7px; }
.al-listing-body { flex: 1; padding: 11px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.al-listing-cat { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); font-weight: 600; }
.al-listing-title { font-family: 'Oswald', sans-serif; font-size: 15px; font-weight: 500; color: var(--white); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-listing:hover .al-listing-title { color: var(--gold-light); }
.al-listing-desc { font-size: 12px; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-listing-meta { display: flex; gap: 10px; font-size: 11px; color: var(--text-dim); flex-wrap: wrap; margin-top: auto; }
.al-listing-right { min-width: 152px; padding: 11px 14px 11px 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 6px; }
.al-listing-price { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--gold); line-height: 1; }
.al-listing-price-sub { font-size: 10px; color: var(--text-muted); text-align: right; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.al-listing-bids { font-size: 11px; color: var(--text-muted); text-align: right; }
.al-listing-bids strong { color: var(--red); }
.al-listing-timer { font-size: 11px; color: #cc8822; font-weight: 600; }
.al-listing-timer.urgent { color: var(--red); }

/* ── Badges ────────────────────────────── */
.al-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; line-height: 1.4; }
.al-badge-gold  { background: rgba(201,148,58,.12); color: var(--gold);  border: 1px solid var(--gold-dim); }
.al-badge-red   { background: var(--red-bg); color: var(--red);    border: 1px solid rgba(204,51,51,.4); }
.al-badge-green { background: rgba(61,158,61,.1); color: var(--green); border: 1px solid rgba(61,158,61,.4); }
.al-badge-muted { background: var(--panel-alt); color: var(--text-muted); border: 1px solid var(--border); }

/* ── Sidebar ───────────────────────────── */
.al-sidebar-section { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.al-sidebar-head { background: linear-gradient(180deg,var(--panel-alt),var(--panel)); border-bottom: 1px solid var(--border); padding: 10px 14px; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); }
.al-cat-list { list-style: none; }
.al-cat-list li { border-bottom: 1px solid var(--border); }
.al-cat-list li:last-child { border-bottom: none; }
.al-cat-list li a { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; color: var(--text); font-size: 13px; transition: all .15s; }
.al-cat-list li a:hover { background: var(--gold-bg); color: var(--gold); padding-left: 18px; }
.al-cat-count { background: var(--panel-alt); color: var(--text-muted); font-size: 10px; padding: 1px 6px; border-radius: 3px; }

/* ── Forum ─────────────────────────────── */
.al-forum-cats { display: grid; grid-template-columns: 1fr 1fr; }
.al-forum-cat { padding: 16px; display: flex; gap: 12px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); transition: background .15s; text-decoration: none; color: inherit; }
.al-forum-cat:nth-child(even) { border-right: none; }
.al-forum-cat:nth-last-child(-n+2) { border-bottom: none; }
.al-forum-cat:hover { background: var(--gold-bg); }
.al-forum-cat-icon { width: 42px; height: 42px; background: var(--panel-alt); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.al-forum-cat-name { font-family: 'Oswald', sans-serif; font-size: 14px; color: var(--white); margin-bottom: 3px; font-weight: 500; }
.al-forum-cat-desc { font-size: 11px; color: var(--text-muted); }
.al-forum-cat-stats { font-size: 10px; color: var(--text-dim); margin-top: 4px; font-family: 'Barlow Condensed', sans-serif; letter-spacing: .5px; }

.al-thread { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: center; transition: background .15s; text-decoration: none; color: inherit; }
.al-thread:hover { background: var(--panel-alt); }
.al-thread:last-child { border-bottom: none; }
.al-thread-body { flex: 1; min-width: 0; }
.al-thread-title { font-family: 'Oswald', sans-serif; font-size: 14px; color: var(--white); margin-bottom: 3px; font-weight: 500; }
.al-thread:hover .al-thread-title { color: var(--gold-light); }
.al-thread-meta { font-size: 11px; color: var(--text-dim); }
.al-thread-stats { text-align: right; flex-shrink: 0; font-size: 11px; color: var(--text-muted); }
.al-thread-stats strong { color: var(--red); font-weight: 700; }

/* ── Sponsor News ──────────────────────── */
.al-news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.al-news-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .18s, transform .15s; text-decoration: none; color: inherit; display: block; }
.al-news-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.al-news-card-img { width: 100%; height: 100px; object-fit: cover; background: var(--dark); }
.al-news-card-img-placeholder { width: 100%; height: 100px; background: linear-gradient(135deg,var(--dark),var(--panel)); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.al-news-card-body { padding: 14px; }
.al-news-sponsor { display: inline-block; font-size: 9px; text-transform: uppercase; letter-spacing: 1.5px; background: var(--gold); color: #0a0a0b; padding: 2px 7px; border-radius: 2px; font-weight: 700; margin-bottom: 8px; }
.al-news-title { font-family: 'Georgia', serif; font-size: 13px; color: var(--white); font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.al-news-card:hover .al-news-title { color: var(--gold-light); }
.al-news-excerpt { font-size: 11px; color: var(--text-muted); line-height: 1.5; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.al-news-date { font-size: 11px; color: var(--text-dim); }

/* ── Section title ─────────────────────── */
.al-section-title { font-family: 'Oswald', sans-serif; font-size: 19px; font-weight: 600; color: var(--white); display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.al-section-title::before { content: ''; display: block; width: 3px; height: 22px; background: linear-gradient(180deg,var(--gold-light),var(--gold-dim)); border-radius: 2px; }

/* ── Forms ─────────────────────────────── */
.al-form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.al-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }
.al-input, .al-select, .al-textarea {
  width: 100%; padding: 9px 12px;
  background: var(--panel-alt); border: 1px solid var(--border-lt);
  color: var(--text); border-radius: var(--radius);
  font-family: 'Barlow', sans-serif; font-size: 13px;
  transition: border-color .18s, box-shadow .18s; outline: none;
}
.al-input:focus, .al-select:focus, .al-textarea:focus { border-color: var(--gold-dim); box-shadow: 0 0 0 3px rgba(201,148,58,.08); }
.al-input::placeholder, .al-textarea::placeholder { color: var(--text-dim); }
.al-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.al-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; cursor: pointer; background-color: var(--panel-alt); }

/* ── Pagination ────────────────────────── */
.al-pagination { display: flex; gap: 4px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.al-pagination a, .al-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 34px; padding: 0 10px; background: var(--panel); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); font-size: 13px; font-family: 'Barlow', sans-serif; transition: all .15s; text-decoration: none; }
.al-pagination a:hover, .al-pagination .current { background: var(--gold); border-color: var(--gold); color: #0a0a0b; font-weight: 700; }

/* ── Footer ────────────────────────────── */
#al-footer { background: #060708; border-top: 1px solid var(--border); margin-top: 48px; }
.al-footer-inner { max-width: 1280px; margin: 0 auto; padding: 48px 20px 28px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.al-footer-logo { font-family: 'Oswald', sans-serif; font-size: 22px; font-weight: 700; color: var(--white); margin-bottom: 12px; }
.al-footer-logo span { color: var(--gold); }
.al-footer-desc { font-size: 12px; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }
.al-footer-col-head { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold); margin-bottom: 14px; }
.al-footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.al-footer-links li a { font-size: 13px; color: var(--text-muted); }
.al-footer-links li a:hover { color: var(--gold); }
.al-footer-bottom { border-top: 1px solid var(--border); max-width: 1280px; margin: 0 auto; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--text-dim); flex-wrap: wrap; gap: 8px; }
.al-footer-legal { display: flex; gap: 14px; flex-wrap: wrap; }
.al-footer-legal a { color: var(--text-dim); }
.al-footer-legal a:hover { color: var(--gold); }

/* ── WordPress overrides ───────────────── */
.wp-block-search__inside-wrapper { display: flex; }
.site-main { min-height: 60vh; }

/* ── Responsive ────────────────────────── */
@media (max-width: 1100px) { .al-grid { grid-template-columns: 210px 1fr; } }
@media (max-width: 800px)  { .al-grid,.al-grid-2 { grid-template-columns: 1fr; } .al-hero-stats { display: none; } .al-news-grid { grid-template-columns: 1fr 1fr; } .al-forum-cats { grid-template-columns: 1fr; } }
@media (max-width: 580px)  { .al-hero-title { font-size: 34px; } .al-news-grid { grid-template-columns: 1fr; } .al-listing-img { width: 90px; min-width: 90px; } .al-footer-inner { grid-template-columns: 1fr 1fr; } }
