/* SWG Ghosts — Navy blue & ice cyan themed stylesheet */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg-dark: #020510;
    --bg-card: #080d1e;
    --bg-card-alt: #0c1228;
    --text: #d0daf0;
    --text-dim: #7a8aab;
    --accent: #5cb8e8;
    --accent-glow: #7ed0ff;
    --accent-dim: #3a8fc4;
    --light-side: #5cb8e8;
    --dark-side: #e85c7a;
    --green: #4ae88a;
    --purple: #a87ee8;
    --discord: #5865F2;
    --discord-hover: #4752c4;
    --border: #111a33;
    --border-light: #1a2845;
    --radius: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,.5);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-glow); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Navigation ===== */
.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(2,5,16,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 2px;
}
.accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-dim); font-size: .9rem; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.btn-download {
    background: var(--accent);
    color: #000 !important;
    padding: 6px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background .2s;
}
.btn-register-nav {
    background: rgba(74,232,138,.15);
    border: 1px solid rgba(74,232,138,.4);
    color: var(--green) !important;
    padding: 6px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    transition: background .2s, color .2s;
}
.btn-register-nav:hover {
    background: rgba(74,232,138,.28);
    color: #fff !important;
}
.btn-download:hover { background: var(--accent-glow); }

/* ===== Hero ===== */
.hero {
    position: relative;
    text-align: center;
    padding: 100px 20px 80px;
    background: url('/ghosts-bg.jpg') center center / cover no-repeat;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2,5,16,.78) 0%, rgba(2,5,16,.72) 40%, rgba(2,5,16,.85) 100%);
}
.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 3.5rem; letter-spacing: 4px; margin-bottom: 12px; text-shadow: 0 2px 20px rgba(0,0,0,.7); }
.hero .tagline { font-size: 1.15rem; color: var(--text-dim); max-width: 600px; margin: 0 auto 24px; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all .2s;
    border: none;
    cursor: pointer;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-glow); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-secondary:hover { background: rgba(92,184,232,.1); }
.btn-discord {
    background: var(--discord);
    color: #fff !important;
    border: 2px solid var(--discord);
}
.btn-discord:hover {
    background: var(--discord-hover);
    border-color: var(--discord-hover);
    transform: translateY(-1px);
}
.discord-icon { flex-shrink: 0; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.server-address { color: var(--text-dim); font-size: .9rem; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.server-address .label { margin-right: 8px; }
.server-address code {
    background: rgba(8,13,30,.85);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: .95rem;
    color: var(--accent);
}

/* Status Banner */
.status-banner {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(8,13,30,.85);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 8px 20px;
    margin-bottom: 24px;
    font-size: .9rem;
    color: var(--text-dim);
    backdrop-filter: blur(8px);
}
.status-banner strong { color: var(--text); }
.status-sep { color: var(--border-light); }
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4a5568;
    display: inline-block;
}
.status-dot.online {
    background: var(--green);
    box-shadow: 0 0 8px rgba(74,232,138,.5);
    animation: pulse-green 2s infinite;
}
.status-dot.offline { background: var(--dark-side); }

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 4px rgba(74,232,138,.4); }
    50% { box-shadow: 0 0 12px rgba(74,232,138,.7); }
}

/* Hero variant for Jedi guide */
.hero-jedi {
    background: url('/ghosts-bg.jpg') center center / cover no-repeat;
}
.hero-jedi .hero-overlay {
    background: linear-gradient(180deg, rgba(2,5,16,.78) 0%, rgba(2,5,16,.72) 40%, rgba(2,5,16,.85) 100%);
}

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-dark { background: var(--bg-card); }
.section-cta {
    text-align: center;
    background: url('/ghosts-bg.jpg') center center / cover no-repeat;
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.section-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(2,5,16,.82);
}
.section-cta h2, .section-cta p, .section-cta .hero-buttons, .section-cta .container {
    position: relative;
    z-index: 1;
}
.section-cta h2 { font-size: 2rem; margin-bottom: 12px; }
.section-cta p { color: var(--text-dim); margin-bottom: 24px; }
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    letter-spacing: 1px;
}
.sub-title {
    font-size: 1.4rem;
    margin: 40px 0 12px;
}
.section-desc { color: var(--text-dim); margin-bottom: 20px; }

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--accent-dim); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.feature-card p { color: var(--text-dim); font-size: .92rem; }

/* ===== Info Grid ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.info-card {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.info-card h3 { margin-bottom: 16px; font-size: 1.1rem; color: var(--accent); }
.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.info-table td:last-child { text-align: right; color: var(--text-dim); }
.info-table code { color: var(--accent); font-size: .85rem; }
.highlight { color: var(--accent); font-weight: 700; }

.zone-list { display: flex; flex-wrap: wrap; gap: 6px; }
.zone-tag {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: .8rem;
    color: var(--text-dim);
}

/* ===== Bounty System ===== */
.bounty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.bounty-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
}
.bounty-card h3 { margin: 8px 0; font-size: 1.1rem; }
.bounty-amount { font-size: 1.5rem; font-weight: 700; color: var(--accent); margin: 8px 0 12px; }
.bounty-badge { font-size: 2.5rem; }
.bounty-card p { color: var(--text-dim); font-size: .9rem; margin-bottom: 8px; }
.bounty-card ul { text-align: left; color: var(--text-dim); font-size: .9rem; padding-left: 20px; }
.bounty-card ul li { margin: 4px 0; }
.bounty-target {
    margin-top: 12px;
    padding: 10px;
    background: rgba(92,184,232,.06);
    border: 1px solid rgba(92,184,232,.25);
    border-radius: 4px;
    font-size: .85rem;
    color: var(--accent);
    text-align: left;
}
.bounty-target.apex {
    background: rgba(232,92,122,.06);
    border-color: rgba(232,92,122,.25);
    color: var(--dark-side);
}

/* Hunter Table */
.hunter-table-wrap { overflow-x: auto; margin-top: 12px; }
.hunter-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
}
.hunter-table th {
    background: var(--bg-card-alt);
    padding: 10px 12px;
    text-align: left;
    border-bottom: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
}
.hunter-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
}
.hunter-table tbody tr:hover { background: rgba(92,184,232,.04); }

/* ===== Community Section ===== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.community-card {
    background: var(--bg-card-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}
.community-card h3 { margin: 12px 0; font-size: 1.2rem; }
.community-card p { color: var(--text-dim); font-size: .92rem; margin-bottom: 20px; }
.community-icon { font-size: 2.5rem; }
.discord-card { border-color: rgba(88,101,242,.3); }
.discord-card:hover { border-color: var(--discord); }

/* ===== Jedi Guide ===== */
.guide-container {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: start;
}
.guide-toc {
    position: sticky;
    top: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.guide-toc h3 { font-size: .95rem; margin-bottom: 12px; color: var(--accent); }
.guide-toc ol { padding-left: 20px; }
.guide-toc li { margin: 6px 0; }
.guide-toc a { color: var(--text-dim); font-size: .85rem; transition: color .2s; }
.guide-toc a:hover { color: var(--accent); }

.guide-content article { margin-bottom: 48px; }
.guide-content h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.guide-content p { margin-bottom: 12px; color: var(--text-dim); }
.guide-content ul, .guide-content ol { color: var(--text-dim); padding-left: 24px; margin-bottom: 16px; }
.guide-content li { margin: 6px 0; font-size: .95rem; }
.guide-content code {
    background: var(--bg-card-alt);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: .85rem;
    color: var(--accent);
}

/* Progression Flow */
.progression-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 24px 0;
}
.flow-step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
}
.flow-step.flow-master { border-color: var(--accent); color: var(--accent); }
.flow-arrow { color: var(--accent); font-size: 1.2rem; }

/* Phase Grid */
.phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 16px 0; }
.phase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.phase-card h4 { color: var(--accent); margin-bottom: 8px; }
.phase-card ul { padding-left: 18px; }
.phase-card li { font-size: .88rem; color: var(--text-dim); margin: 3px 0; }

/* Branch Grid */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0; }
.branch-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}
.branch-category h4 { color: var(--accent); margin-bottom: 8px; font-size: .95rem; }
.branch-category ul { padding-left: 18px; }
.branch-category li { font-size: .85rem; color: var(--text-dim); margin: 3px 0; }

/* Shrine Grid */
.shrine-grid { margin: 16px 0; }
.shrine-grid h4 { margin-bottom: 12px; font-size: 1rem; }
.shrine-list { display: flex; flex-wrap: wrap; gap: 8px; }

/* FRS Grid */
.frs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 16px 0; }
.frs-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.frs-card.light { border-color: rgba(92,184,232,.3); }
.frs-card.dark { border-color: rgba(232,92,122,.3); }
.frs-card h4 { margin-bottom: 8px; }
.frs-card.light h4 { color: var(--light-side); }
.frs-card.dark h4 { color: var(--dark-side); }
.frs-card ul { padding-left: 18px; margin-bottom: 8px; }
.frs-card li, .frs-card p { font-size: .88rem; color: var(--text-dim); }

/* Info Boxes */
.info-box {
    background: rgba(92,184,232,.06);
    border: 1px solid rgba(92,184,232,.2);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 16px 0;
    font-size: .92rem;
    color: var(--text-dim);
}
.info-box.warning {
    background: rgba(92,184,232,.06);
    border-color: rgba(92,184,232,.2);
}
.info-box.danger {
    background: rgba(232,92,122,.06);
    border-color: rgba(232,92,122,.2);
}

/* Guide CTA */
.guide-cta {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 32px;
}
.guide-cta h3 { margin-bottom: 16px; }

/* ===== Footer ===== */
footer {
    padding: 32px 20px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: .85rem;
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-left { text-align: left; }
.footer-right { display: flex; gap: 20px; }
.footer-link { color: var(--text-dim); font-size: .85rem; transition: color .2s; }
.footer-link:hover { color: var(--accent); }
.footer-small { margin-top: 4px; font-size: .75rem; opacity: .6; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: .8rem; }
    .guide-container { grid-template-columns: 1fr; }
    .guide-toc { position: static; margin-bottom: 24px; }
    .frs-grid { grid-template-columns: 1fr; }
    .progression-flow { gap: 4px; }
    .flow-step { padding: 6px 10px; font-size: .78rem; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-left { text-align: center; }
    .footer-right { justify-content: center; }
    .status-banner { font-size: .8rem; padding: 6px 14px; flex-wrap: wrap; justify-content: center; }
}
