/* public/css/content-pages.css
   Shared styles for standalone content pages (changelog, guide, about).
   Replicates the game's space aesthetic: black bg, cyan glow, monospace. */

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

body {
    background: #000;
    color: #e0f0ff;
    font-family: monospace;
    font-size: 15px;
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: #3b82f6; text-decoration: none; }
a:hover { color: #60b5ff; text-decoration: underline; }

/* --- Starfield background --- */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background:
        radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 30% 70%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 50% 10%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 70% 50%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 90% 80%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 15% 90%, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 45% 45%, rgba(0,230,255,0.3), transparent),
        radial-gradient(1px 1px at 65% 85%, rgba(0,230,255,0.2), transparent),
        radial-gradient(1px 1px at 25% 35%, rgba(255,255,255,0.2), transparent);
    background-size: 300px 300px;
    z-index: -1;
    pointer-events: none;
}

/* --- Header --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid rgba(0, 230, 255, 0.25);
    box-shadow: 0 2px 20px rgba(0, 230, 255, 0.15);
    backdrop-filter: blur(8px);
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo-link {
    text-decoration: none !important;
    flex-shrink: 0;
}

.site-title {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 4px;
    color: white;
    text-shadow:
        0 0 14px rgba(0, 230, 255, 0.85),
        0 0 28px rgba(0, 230, 255, 0.4);
    white-space: nowrap;
}

.site-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.site-nav a:hover {
    color: white;
    border-color: rgba(0, 230, 255, 0.3);
    background: rgba(0, 230, 255, 0.08);
}

.site-nav a.active {
    color: rgba(0, 230, 255, 0.95);
    border-color: rgba(0, 230, 255, 0.4);
    background: rgba(0, 230, 255, 0.1);
}

.header-spacer { flex: 1; }

.play-now-btn {
    display: inline-block;
    padding: 8px 22px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.6), rgba(255, 140, 0, 0.6));
    border: 2px solid rgba(255, 215, 0, 0.9);
    border-radius: 100px;
    color: white !important;
    font-family: monospace;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8), 0 0 3px rgba(255, 255, 255, 0.5);
    cursor: pointer;
    animation: play-now-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.3);
    flex-shrink: 0;
    white-space: nowrap;
}

@keyframes play-now-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 12px rgba(255, 215, 0, 0.3); }
    50%      { transform: scale(1.04); box-shadow: 0 0 24px rgba(255, 215, 0, 0.6); }
}

/* --- Main Content --- */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}

.page-hero {
    text-align: center;
    margin-bottom: 48px;
}

.page-hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: bold;
    letter-spacing: 4px;
    color: white;
    text-shadow:
        0 0 18px rgba(0, 230, 255, 0.85),
        0 0 36px rgba(0, 230, 255, 0.45);
    margin-bottom: 12px;
}

.page-hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 8px rgba(0, 230, 255, 0.3);
    letter-spacing: 1px;
}

/* --- Content Cards --- */
.content-card {
    background: linear-gradient(to bottom, rgba(10, 30, 40, 0.6), rgba(5, 15, 25, 0.6));
    border: 1px solid rgba(0, 230, 255, 0.2);
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 24px;
    box-shadow: 0 0 12px rgba(0, 230, 255, 0.08);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    border-color: rgba(0, 230, 255, 0.35);
    box-shadow: 0 0 20px rgba(0, 230, 255, 0.15);
}

.card-title {
    font-size: 20px;
    font-weight: bold;
    color: rgba(0, 230, 255, 0.9);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(0, 230, 255, 0.4);
}

.card-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    margin-top: 8px;
    background: linear-gradient(to right, rgba(0, 230, 255, 0.6), transparent);
}

/* --- Section Dividers --- */
.section-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 230, 255, 0.3), transparent);
    margin: 40px 0;
}

/* --- Changelog Entries --- */
.changelog-date {
    font-size: 14px;
    font-weight: bold;
    color: rgba(0, 230, 255, 0.7);
    letter-spacing: 2px;
    margin: 32px 0 12px;
    text-shadow: 0 0 6px rgba(0, 230, 255, 0.3);
}

.changelog-date:first-child { margin-top: 0; }

.changelog-entry {
    display: flex;
    gap: 16px;
    padding: 10px 16px;
    margin-bottom: 6px;
    border-left: 2px solid rgba(0, 230, 255, 0.15);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.changelog-entry:hover {
    border-left-color: rgba(0, 230, 255, 0.5);
    background: rgba(0, 230, 255, 0.04);
}

.changelog-version {
    color: rgba(0, 230, 255, 0.8);
    font-weight: bold;
    font-size: 13px;
    white-space: nowrap;
    min-width: 160px;
    flex-shrink: 0;
}

.changelog-message {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
}

.changelog-old-versions {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    line-height: 2;
    margin-top: 16px;
}

/* --- Guide Sections --- */
.guide-section { margin-bottom: 32px; }

.guide-section h3 {
    color: rgba(0, 230, 255, 0.85);
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-shadow: 0 0 6px rgba(0, 230, 255, 0.3);
}

.guide-section p,
.guide-section ul { margin-bottom: 12px; }

.guide-section ul {
    list-style: none;
    padding-left: 0;
}

.guide-section li {
    padding: 4px 0 4px 20px;
    position: relative;
}

.guide-section li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: rgba(0, 230, 255, 0.5);
    font-weight: bold;
}

.key-badge {
    display: inline-block;
    padding: 1px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    font-size: 12px;
    color: white;
    font-weight: bold;
}

.faction-name {
    font-weight: bold;
    letter-spacing: 1px;
}

.faction-concordium { color: #00B7FF; }
.faction-unbound { color: #E6FF00; }
.faction-bonecollectors { color: #FF4444; }
.faction-outlaws { color: #A0FFD0; }

.tip-card {
    background: rgba(0, 40, 35, 0.4);
    border: 1px solid rgba(0, 255, 153, 0.15);
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.tip-number {
    color: rgba(0, 255, 153, 0.6);
    font-size: 12px;
    font-weight: bold;
    text-decoration: underline;
}

.tip-headline {
    color: #d8fff0;
    font-weight: bold;
    margin: 4px 0;
}

.tip-body {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

/* --- Footer --- */
.site-footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(0, 230, 255, 0.2);
    padding: 24px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-left,
.footer-right {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.footer-left { text-align: left; }
.footer-right { text-align: right; }

.footer-beta {
    color: #ff3333;
    font-weight: 900;
    letter-spacing: 1px;
    -webkit-text-stroke: 1px white;
    paint-order: stroke fill;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .header-content { flex-wrap: wrap; justify-content: center; gap: 12px; }
    .header-spacer { display: none; }
    .site-nav { justify-content: center; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-left, .footer-right { text-align: center; }
    .changelog-entry { flex-direction: column; gap: 4px; }
    .changelog-version { min-width: auto; }
    .page-content { padding: 32px 16px 60px; }
}
