/* Blake's 7: Liberator Awakening - Dark Sci-Fi Theme */

:root {
    --bg-dark: #0a0e17;
    --bg-panel: #121826;
    --bg-card: #1a2332;
    --accent: #00d4ff;
    --accent-dim: #0099bb;
    --danger: #ff3366;
    --success: #33ff99;
    --warning: #ffcc00;
    --text: #e0e6f0;
    --text-dim: #8a9bb5;
    --border: #2a3a50;
    --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'Courier New', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 51, 102, 0.04) 0%, transparent 50%);
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    color: #fff;
    text-decoration: underline;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.logo span {
    color: var(--text-dim);
    font-weight: 400;
    font-size: 0.9rem;
}

.nav a {
    margin-left: 1.2rem;
    font-size: 0.95rem;
}

/* Cards / Panels */
.panel {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.panel h1, .panel h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Forms */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: var(--accent-dim);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    text-decoration: none;
}

.btn:hover {
    background: var(--accent);
    color: #000;
    text-decoration: none;
}

.btn-danger {
    background: #991133;
}
.btn-danger:hover {
    background: var(--danger);
    color: #fff;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-choice {
    display: block;
    width: 100%;
    margin-bottom: 0.7rem;
    text-align: left;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.9rem 1.2rem;
}

.btn-choice:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}

/* Flash messages */
.flash {
    padding: 0.9rem 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}
.flash-success {
    background: rgba(51, 255, 153, 0.15);
    border: 1px solid var(--success);
    color: var(--success);
}
.flash-error {
    background: rgba(255, 51, 102, 0.15);
    border: 1px solid var(--danger);
    color: var(--danger);
}
.flash-info {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

/* Game layout */
.game-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
}

.scene-panel {
    min-height: 400px;
}

.scene-title {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.scene-text {
    white-space: pre-wrap;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text);
}

.status-panel h3 {
    font-size: 0.95rem;
    color: var(--text-dim);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-bar {
    margin-bottom: 0.6rem;
}

.stat-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.stat-track {
    height: 6px;
    background: var(--bg-dark);
    border-radius: 3px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s;
}

.stat-fill.low { background: var(--danger); }
.stat-fill.mid { background: var(--warning); }

.crew-list, .inventory-list {
    list-style: none;
    font-size: 0.9rem;
}

.crew-list li, .inventory-list li {
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(42, 58, 80, 0.5);
}

.crew-list .loyalty {
    float: right;
    color: var(--accent-dim);
}

.ship-name {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Landing / hero */
.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero h1 {
    font-size: 2.4rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero .subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-dim);
}

.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

/* ===== Fan Hub additions ===== */
.site-header .main-nav a {
    margin-left: 0.9rem;
    font-size: 0.92rem;
}
.site-header .main-nav a.active {
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
}
.nav-user {
    color: var(--text-dim);
    margin-left: 1rem;
    margin-right: 0.4rem;
    font-size: 0.9rem;
}

.hero-buttons {
    margin-top: 1.5rem;
}
.btn-secondary {
    background: #333 !important;
    margin-left: 0.6rem;
}
.btn-secondary:hover {
    background: #444 !important;
    color: #fff !important;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0;
}
.hub-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.4rem;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, transform 0.15s;
}
.hub-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--text);
    text-decoration: none;
}
.hub-card h2 {
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.hub-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin: 0;
}

.series-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}
@media (max-width: 700px) {
    .series-overview { grid-template-columns: 1fr; }
}

.series-block {
    margin-bottom: 1.8rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
}
.series-block h2 {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.char-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.1rem;
}
.char-card h3 {
    color: var(--accent);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}
.char-role {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}
.char-card p:last-child {
    font-size: 0.92rem;
    margin: 0;
}

.quote-panel {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.avon-quote {
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--accent);
    font-style: italic;
    max-width: 700px;
    margin: 1.5rem auto;
    border: none;
    padding: 0;
}

.resource-list {
    list-style: none;
    padding: 0;
}
.resource-list li {
    margin-bottom: 1.3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(42,58,80,0.5);
}
.resource-list a {
    font-size: 0.95rem;
}

.site-footer {
    margin-top: 3rem;
}
.footer-links a {
    margin: 0 0.3rem;
}

@media (max-width: 800px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    .main-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 0.4rem 0.8rem;
    }
    .main-nav a {
        margin-left: 0 !important;
    }
}
