/* ── WildRigged.com — Shared Stylesheet ── */

:root {
    --bg: #fafaf8;
    --surface: #ffffff;
    --surface2: #f4f4f0;
    --text: #1a1a18;
    --text-muted: #6b6b60;
    --accent: #2d6a4f;
    --accent2: #e76f51;
    --accent3: #264653;
    --border: #e5e5df;
    --shadow: 0 1px 12px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.10);
    --radius: 10px;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --max-w: 1180px;
}

[data-theme="dark"] {
    --bg: #111210;
    --surface: #1a1c19;
    --surface2: #23251f;
    --text: #eeeee8;
    --text-muted: #9a9a8a;
    --border: #2e302a;
    --shadow: 0 1px 12px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: background .3s, color .3s;
}

/* ── TOPBAR ── */
.topbar {
    background: var(--accent3);
    color: rgba(255,255,255,.78);
    font-size: .74rem;
    text-align: center;
    padding: 7px 16px;
    letter-spacing: .2px;
}
.topbar a { color: #a8dadc; text-decoration: none; }

/* ── HEADER ── */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}
.logo-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.logo-tag {
    font-size: .68rem;
    color: var(--text-muted);
    display: block;
    font-weight: 400;
    letter-spacing: .3px;
    text-transform: uppercase;
}
nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: background .18s, color .18s;
}
nav a:hover { background: var(--surface2); color: var(--text); }
nav a.active { color: var(--accent); font-weight: 700; }

.theme-btn {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s;
    flex-shrink: 0;
}
.theme-btn:hover { background: var(--border); }

/* ── HERO ── */
.hero {
    background: linear-gradient(160deg, var(--accent3) 0%, var(--accent) 60%, #40916c 100%);
    color: #fff;
    padding: 72px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.hero-label {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}
.hero p {
    font-size: 1.1rem;
    opacity: .88;
    max-width: 580px;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent2);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
    position: relative;
    z-index: 1;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(231,111,81,.4); }

/* ── STATS BAR ── */
.stats-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.stats-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-n { font-size: 1.5rem; font-weight: 900; color: var(--accent); display: block; }
.stat-l { font-size: .72rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }

/* ── SECTION ── */
.section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 52px 24px;
}
.section-header { margin-bottom: 28px; }
.section-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 6px;
}
.section-title { font-size: 1.75rem; font-weight: 900; line-height: 1.2; }
.section-sub { color: var(--text-muted); font-size: .92rem; margin-top: 6px; }

/* ── CAMP GRID ── */
.camp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.camp-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: transform .18s, box-shadow .18s, border-color .18s;
}
.camp-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.camp-thumb {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
}
.camp-rank {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent2);
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 6px;
}
.camp-state-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    letter-spacing: .3px;
}
.camp-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.camp-name { font-size: 1rem; font-weight: 700; margin-bottom: 5px; line-height: 1.3; }
.camp-loc { font-size: .78rem; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 4px; }
.camp-desc { font-size: .83rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.camp-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 12px; }
.tag {
    background: var(--surface2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 5px;
}
.tag.green { background: #dcfce7; border-color: #bbf7d0; color: #166534; }
.tag.orange { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.tag.blue { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
[data-theme="dark"] .tag.green { background: #14532d; border-color: #166534; color: #86efac; }
[data-theme="dark"] .tag.orange { background: #431407; border-color: #9a3412; color: #fdba74; }
[data-theme="dark"] .tag.blue { background: #1e3a5f; border-color: #1e40af; color: #93c5fd; }

/* ── TOP 50 LIST (index) ── */
.list-table { width: 100%; border-collapse: collapse; }
.list-table th {
    text-align: left;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-muted);
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
}
.list-table tr { border-bottom: 1px solid var(--border); }
.list-table tr:last-child { border-bottom: none; }
.list-table td { padding: 13px 14px; font-size: .88rem; vertical-align: middle; }
.list-table tr:hover { background: var(--surface2); }
.list-rank { font-weight: 900; color: var(--text-muted); width: 48px; }
.list-name a { color: var(--text); text-decoration: none; font-weight: 600; }
.list-name a:hover { color: var(--accent); }
.list-state { color: var(--text-muted); font-size: .8rem; }
.list-type { font-size: .75rem; }

/* ── CAMP DETAIL PAGE ── */
.detail-hero {
    background: linear-gradient(160deg, var(--accent3) 0%, var(--accent) 100%);
    color: #fff;
    padding: 52px 24px 44px;
}
.detail-hero-inner { max-width: 900px; margin: 0 auto; }
.breadcrumb { font-size: .78rem; opacity: .75; margin-bottom: 14px; }
.breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; opacity: .5; }
.detail-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 12px; line-height: 1.2; }
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .84rem; opacity: .88; }
.detail-meta span { display: flex; align-items: center; gap: 5px; }

.detail-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
}
@media (max-width: 860px) { .detail-wrap { grid-template-columns: 1fr; } }

.detail-main h2 { font-size: 1.2rem; font-weight: 800; margin: 28px 0 10px; color: var(--accent); }
.detail-main h2:first-child { margin-top: 0; }
.detail-main p { font-size: .93rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
.detail-main ul { margin: 0 0 14px 20px; }
.detail-main li { font-size: .91rem; color: var(--text-muted); margin-bottom: 7px; line-height: 1.6; }
.detail-main strong { color: var(--text); }

.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
    position: sticky;
    top: 80px;
}
.info-card h3 { font-size: .88rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.info-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .85rem; gap: 12px; }
.info-row:last-child { border-bottom: none; }
.info-row .ir-label { color: var(--text-muted); font-weight: 500; flex-shrink: 0; }
.info-row .ir-val { font-weight: 600; color: var(--text); text-align: right; }
.directions-box {
    background: var(--surface2);
    border-radius: 8px;
    padding: 14px;
    margin-top: 4px;
}
.directions-box p { font-size: .82rem; margin: 0; line-height: 1.65; }
.map-btn {
    display: block;
    background: var(--accent);
    color: #fff;
    text-align: center;
    padding: 11px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: .85rem;
    margin-top: 14px;
    transition: background .18s;
}
.map-btn:hover { background: #1b4332; }

/* ── RELATED ── */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* ── ABOUT / SEO ── */
.seo-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}
.seo-block h2 { font-size: 1.15rem; font-weight: 800; color: var(--accent); margin: 22px 0 10px; }
.seo-block h2:first-child { margin-top: 0; }
.seo-block p { font-size: .9rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
.seo-block h3 { font-size: 1rem; font-weight: 700; margin: 16px 0 8px; }

.kw-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.kw { background: var(--surface2); border: 1px solid var(--border); padding: 4px 11px; border-radius: 16px; font-size: .74rem; color: var(--text-muted); }

/* ── FOOTER ── */
footer {
    background: var(--accent3);
    color: rgba(255,255,255,.75);
    padding: 44px 24px 28px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 36px;
}
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand p { font-size: .82rem; line-height: 1.65; margin-top: 10px; color: rgba(255,255,255,.6); }
.footer-brand .fname { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-col h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .83rem; transition: color .18s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .78rem;
    color: rgba(255,255,255,.45);
}
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: rgba(255,255,255,.45); text-decoration: none; }
.footer-links a:hover { color: rgba(255,255,255,.8); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .stats-inner { gap: 24px; }
    .hero { padding: 48px 18px 40px; }
    .section { padding: 36px 18px; }
}
