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

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

:root {
    --accent: #4fc3f7;
    --bg: #0a0a0f;
    --text: #ffffff;
    --text-dim: #8a8a9a;
    --text-body: #b0b0c0;
    --accent-glow: rgba(79, 195, 247, 0.3);
    --accent-secondary: #7c4dff;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-border: rgba(255, 255, 255, 0.08);
    --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    --max-width: 900px;
    --section-gap: 8rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

.galaxy-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 48px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-wordmark {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-wordmark:hover {
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.star-tooltip {
    position: fixed;
    padding: 6px 12px;
    background: #0d0d14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    white-space: nowrap;
    z-index: 150;
}

.star-tooltip.visible {
    opacity: 1;
}

.galaxy-popup-dim {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.galaxy-popup-dim.active {
    opacity: 1;
    pointer-events: auto;
}

.galaxy-popup {
    background: #0c0c12;
    border: 1px solid #1a1a22;
    border-radius: 8px;
    max-width: 400px;
    width: calc(100% - 48px);
    position: relative;
    overflow: hidden;
    font-family: var(--font);
}

.galaxy-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.galaxy-popup-close:hover {
    color: #aaa;
}

.popup-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #08080e;
    position: relative;
    overflow: hidden;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.popup-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-family: var(--font);
    font-size: 12px;
}

.popup-main {
    padding: 20px 24px 24px;
    font-family: var(--font);
}

.popup-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 6px;
}

.popup-title-row h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    margin: 0;
    font-family: var(--font);
}

.popup-flag {
    height: 12px;
    border-radius: 1px;
    flex-shrink: 0;
}

.popup-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup-user-name {
    font-size: 13px;
    color: #666;
    font-family: var(--font);
}

.popup-age {
    font-size: 12px;
    color: #555;
    font-family: var(--font);
    margin-left: auto;
}

.popup-divider {
    border: none;
    border-top: 1px solid #181820;
    margin: 16px 0;
}

.popup-text {
    font-size: 14px;
    line-height: 1.7;
    color: #808088;
    margin: 0 0 20px;
    font-family: var(--font);
}

.popup-buttons {
    display: flex;
    gap: 8px;
}

.popup-button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
}

.popup-button-main {
    background: #fff;
    color: #0a0a0f;
}

.popup-button-main:hover {
    background: #e0e0e0;
    color: #0a0a0f;
}

.popup-button-secondary {
    background: none;
    color: #999;
    border: 1px solid #222;
}

.popup-button-secondary:hover {
    border-color: #444;
    color: #ccc;
}