:root {
    --bg: #0b1220;
    --card: #0f1724;
    --accent: #ffb730;
    --muted: #9aa6b2;
    --danger: #ffb4b4;
    --success: #4ade80;
}

* {
    box-sizing: border-box;
    font-family: 'Play', system-ui, Arial, sans-serif;
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image: url("https://images.unsplash.com/photo-1462331940025-496dfbfc7564?q=80&w=2000&auto=format&fit=crop");
    background-attachment: fixed;
    background-size: cover;
    color: #e6eef6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    padding: 18px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(135deg, #222 25%, #111 25%, #111 50%, #222 50%, #222 75%, #111 75%, #111 100%);
    background-size: 5px 5px;
    border-bottom: 1px solid #444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 1);
}

header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

header img {
    height: 44px;
}

/* Fallback logo styling if image not present */
.text-logo {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 0;
    line-height: 44px;
}

.container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    border-left: 1px solid #444;
    border-right: 1px solid #444;
    background: linear-gradient(180deg, #0b1622, rgba(0, 0, 0, 0.8));
    backdrop-filter: blur(5px);
    margin: 0px auto;
    position: relative;
}

.btn {
    display: inline-block;
    text-align: center;
    width: 125px;
    cursor: pointer;
    text-decoration: none;
    background: var(--accent);
    color: #333;
    padding: 11px 18px;
    border-radius: .25rem;
    border: none;
    font-weight: 700;
    font-size: 14px;
}

.secondary {
    display: inline-block;
    text-align: center;
    width: 125px;
    cursor: pointer;
    text-decoration: none;
    background: #333;
    color: #ffb730;
    padding: 11px 18px;
    border-radius: .25rem;
    border: none;
    font-weight: 700;
    font-size: 14px;
}

.card {
    background: linear-gradient(180deg, #0b1622, rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: .25rem;
    border: 1px solid #444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 1);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0;
    border-radius: .25rem;
    border: 1px solid #444;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    box-sizing: border-box;
    font-size: 1rem;
}

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

.form-note {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
}

.error,
.alert-error {
    color: var(--danger);
    font-size: 14px;
    margin: 8px 0;
    padding: 10px;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #f87171;
    border-radius: .25rem;
}

.success,
.alert-success {
    color: var(--success);
    font-size: 14px;
    margin: 8px 0;
    padding: 10px;
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--success);
    border-radius: .25rem;
}

.footer {
    padding: .5rem;
    background-image: linear-gradient(135deg, #222 25%, #111 25%, #111 50%, #222 50%, #222 75%, #111 75%, #111 100%);
    background-size: 5px 5px;
    color: #ffb730;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid #444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 1);
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 1rem;
}

@media (max-width: 900px) {
    header {
        padding: 18px;
    }

    .container {
        max-width: 100%;
        border: none;
        padding: 15px;
    }
}

/* Landing Page Specific Styles */
.hero {
    display: grid;
    grid-template-columns: 65% 1fr;
    align-items: center;
    height: 100%;
}

.hero-left {
    padding: 50px;
    height: 100%;
    padding-right: 50px;
    border-right: 1px dashed #444;
}

.hero h1 {
    font-size: 36px;
    margin: 0 0 12px;
}

.hero p,
.hero li {
    color: var(--muted);
    margin: 0 0 20px;
    line-height: 1.5;
}

.hero-right {
    padding: 50px;
    height: 100%;
}

.shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 28px;
    margin-top: 28px;
}

.shot {
    background: linear-gradient(180deg, #0b1622, rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(5px);
    padding: 12px;
    border-radius: .25rem;
    border: 1px solid #444;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 1);
}

.shot img {
    width: 100%;
    height: 125px;
    object-fit: cover;
    border-radius: .25rem;
    cursor: pointer;
}

.shot h4 {
    margin: 10px 0 0;
    font-size: 14px;
}

.shot-desc {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 8px;
}

/* Lightbox Modal */
#lightboxModal {
    backdrop-filter: blur(5px);
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

#lightboxClose {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

#lightboxImg {
    max-width: 90%;
    max-height: 90%;
    border-radius: .25rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: solid 1px #444;
}

@media (max-width: 900px) {
    .hero {
        display: flex;
        flex-direction: column;
    }

    .hero-left {
        height: auto;
        overflow: visible;
        width: 100%;
        padding: 10px;
        border-right: none;
    }

    .hero-right {
        width: 100%;
        padding: 15px;
    }

    .shots {
        grid-template-columns: none;
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .shot {
        width: 100%;
    }

    .shot img {
        height: auto;
    }
}

/* Auth Styles */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: calc(100vh - 200px);
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(180deg, #0b1622, rgba(0, 0, 0, 0.7));
    backdrop-filter: blur(5px);
    padding: 30px;
    border-radius: .25rem;
    border: 1px solid #444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 1);
}

/* Universe Overview Map Styles */
.overview-container {
    width: 100%;
    height: 700px;
    overflow: auto;
    border: 1px solid #444;
    background: #000;
    position: relative;
}

.overview-map {
    position: relative;
    width: 1500px;
    height: 1500px;
    background: #000;
    margin: 0;
    background-image: radial-gradient(circle at center, rgba(30, 30, 50, 0.5) 0%, #000 70%);
}

.overview-node {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Star Colors - simplified for overview */
.overview-map .star-yellow_star {
    background-color: #ffd700;
}

.overview-map .star-red_dwarf {
    background-color: #ff4500;
}

.overview-map .star-binary_system {
    background-color: #87cefa;
}

.overview-map .star-nebula {
    background-color: #da70d6;
    box-shadow: 0 0 5px 1px #da70d6;
}

.overview-map .star-black_hole {
    background-color: #111;
    border: 1px solid #666;
    width: 4px;
    height: 4px;
}

/* Universe Sector Map Styles */
.map-container {
    width: 100%;
    height: 700px;
    overflow: auto;
    border: 1px solid #444;
    background: #000;
    position: relative;
}

.universe-map {
    position: relative;
    width: 1000px;
    height: 1000px;
    background: #080c14;
    margin: 0;
    background-image:
        linear-gradient(#111 1px, transparent 1px),
        linear-gradient(90deg, #111 1px, transparent 1px);
    background-size: 50px 50px;
}

.system-node {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 0 5px currentColor;
    transition: transform 0.2s;
}

.system-node:hover,
.system-node.active {
    transform: translate(-50%, -50%) scale(2);
    z-index: 10;
    border: 1px solid #fff;
}

/* Star Colors for sector */
.universe-map .star-yellow_star {
    background-color: #ffd700;
    color: #ffd700;
}

.universe-map .star-red_dwarf {
    background-color: #ff4500;
    color: #ff4500;
}

.universe-map .star-binary_system {
    background-color: #87cefa;
    color: #87cefa;
}

.universe-map .star-nebula {
    background-color: #da70d6;
    color: #da70d6;
    box-shadow: 0 0 10px 2px #da70d6;
}

.universe-map .star-black_hole {
    background-color: #111;
    color: #444;
    border: 1px solid #666;
    width: 8px;
    height: 8px;
    box-shadow: 0 0 8px #fff;
}

.system-info {
    display: none;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 22, 34, 0.95);
    border: 1px solid var(--accent);
    padding: 15px;
    border-radius: 8px;
    width: 280px;
    z-index: 20;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    cursor: default;
}

.system-node.active .system-info {
    display: block;
    transform: translateX(-50%) scale(0.5);
    bottom: 25px;
}

.planet-list {
    margin: 8px 0 0 0;
    padding-left: 15px;
    list-style: none;
}

.planet-list li {
    margin-bottom: 4px;
}

.habitable {
    color: var(--success);
}

.nav-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}
