/* ═══════════════════════════════════════════════════════════════════════
   Game My Life — Shared CSS for sub-pages (about, legal, news)
   ═══════════════════════════════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Quicksand', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #0F0F1F, #1A1A3E, #0F0F1F);
    color: #E8E8F0;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: #00CED1; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Page wrapper ─────────────────────────────────────────────────── */
.page { position: relative; z-index: 1; }

/* ─── Shared Header (site-header.js) ──────────────────────────────── */
.sh-header {
    text-align: center;
    padding: 2rem 1.5rem 0;
    margin-bottom: 1.5rem;
}

.sh-logo {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}
.sh-logo:hover { opacity: 0.8; text-decoration: none; }

.sh-logo-game {
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 22px;
    color: #fff;
    letter-spacing: 3px;
    line-height: 1;
}

.sh-logo-my {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-style: italic;
    line-height: 1.3;
    margin: 0 5px;
    transform: translateY(7px);
    display: inline-flex;
    align-items: baseline;
    clip-path: inset(0px 2px 0px -2px);
    background: linear-gradient(90deg, #90EE90, #00CED1, #4169E1, #8A2BE2, #FF8C00, #FFD700, #90EE90);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shGradientShift 18s linear infinite;
}

.sh-logo-my-m { font-size: 22px; }
.sh-logo-my-y { font-size: 26px; }

@keyframes shGradientShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.sh-logo-l {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    line-height: 1;
}

.sh-logo-i-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 1px 0;
    padding-right: 2px;
}

.sh-ori-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    animation: shOriDotCycle 30s linear infinite, oriDotPulse 8s ease-in-out infinite;
}

@keyframes shOriDotCycle {
    0%   { background: #90EE90; box-shadow: 0 0 5px rgba(144,238,144,0.6); }
    16%  { background: #00CED1; box-shadow: 0 0 5px rgba(0,206,209,0.6); }
    33%  { background: #4169E1; box-shadow: 0 0 5px rgba(65,105,225,0.6); }
    50%  { background: #8A2BE2; box-shadow: 0 0 5px rgba(138,43,226,0.6); }
    66%  { background: #FF8C00; box-shadow: 0 0 5px rgba(255,140,0,0.6); }
    83%  { background: #FFD700; box-shadow: 0 0 5px rgba(255,215,0,0.6); }
    100% { background: #90EE90; box-shadow: 0 0 5px rgba(144,238,144,0.6); }
}

.sh-logo-i-stick {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    line-height: 1;
    margin-top: 1px;
}

.sh-logo-fe {
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #fff;
    line-height: 1;
    letter-spacing: 2px;
}

.sh-slogan {
    font-family: 'Quicksand', sans-serif;
    font-weight: 400;
    font-size: 7px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-top: 6px;
    margin-bottom: 6px;
}

.sh-gradient-bar {
    width: 80px;
    height: 1px;
    border-radius: 1px;
    background: linear-gradient(90deg, transparent, #90EE90, #00CED1, #4169E1, #8A2BE2, #FF8C00, #FFD700, transparent);
    background-size: 300% 100%;
    animation: shBarShift 24s linear infinite;
    margin: 0 auto 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, white 15%, white 85%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, white 15%, white 85%, transparent 100%);
}

@keyframes shBarShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ─── Navigation ──────────────────────────────────────────────────── */
.sh-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin-top: 4px;
}

.sh-nav-link {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 14px;
    transition: color 0.2s, background 0.2s;
}
.sh-nav-link:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.05);
    text-decoration: none;
}
.sh-nav-link.is-active {
    color: #C9A0FF;
    background: rgba(138,43,226,0.1);
    font-weight: 600;
}

.sh-nav-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(138,43,226,0.3);
    flex-shrink: 0;
}

/* ─── Legacy page-header (kept for compatibility) ─────────────────── */
.page-header {
    text-align: center;
    padding: 2.5rem 1.5rem 1rem;
}
.page-header .logo-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: rgba(255,255,255,0.5);
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color 0.2s;
}
.page-header .logo-mini:hover { color: rgba(255,255,255,0.8); text-decoration: none; }
.page-header .logo-mini .ori-dot-mini {
    width: 6px; height: 6px; border-radius: 50%;
    background: #8A2BE2;
    box-shadow: 0 0 8px rgba(138,43,226,0.5);
    animation: oriDotPulse 3s ease-in-out infinite;
}

.page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C9A0FF;
    margin-top: 1rem;
}

/* ─── Content ──────────────────────────────────────────────────────── */
.content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}

/* ─── Section ──────────────────────────────────────────────────────── */
.section { margin-bottom: 2.5rem; }

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8A2BE2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-title .emoji { font-size: 1.2rem; }
.section-title h2, .section-title h3 { font: inherit; margin: 0; display: inline; }

.section-sep {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}
.section-sep-line {
    flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(138,43,226,0.4), transparent);
}
.section-sep-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #8A2BE2;
    box-shadow: 0 0 10px rgba(138,43,226,0.5);
    animation: oriDotPulse 3s ease-in-out infinite;
}

/* ─── Accordion ───────────────────────────────────────────────────── */
.accordion-section {
    margin-bottom: 0.5rem;
}
.accordion-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 12px 16px;
    background: rgba(14,14,26,0.5);
    border: 1px solid rgba(138,43,226,0.15);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    text-align: left;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}
.accordion-toggle:hover {
    background: rgba(14,14,26,0.7);
    border-color: rgba(138,43,226,0.3);
}
.accordion-toggle .emoji { font-size: 1.2rem; flex-shrink: 0; }
.accordion-toggle h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8A2BE2;
    margin: 0;
    flex: 1;
}
.accordion-chevron {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.3);
    transition: transform 0.3s;
    flex-shrink: 0;
}
.accordion-section.is-open .accordion-chevron {
    transform: rotate(180deg);
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    padding: 0 4px;
}
.accordion-section.is-open .accordion-body {
    max-height: 3000px;
}
.accordion-body-inner {
    padding-top: 12px;
}

/* ─── Cards ────────────────────────────────────────────────────────── */
.card {
    background: rgba(14,14,26,0.7);
    border: 1px solid rgba(138,43,226,0.2);
    border-radius: 12px;
    padding: 1.5rem 1.8rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    transition: border-color 0.3s;
}
.card:hover { border-color: rgba(138,43,226,0.35); }
.card p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.7);
}
.card p:last-child { margin-bottom: 0; }

.highlight { color: #FFD700; font-weight: 600; }
.accent { color: #00CED1; font-weight: 500; }
.soft { color: rgba(255,255,255,0.45); font-weight: 300; }

/* ─── Pillar list ──────────────────────────────────────────────────── */
.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}
.pillar-num {
    width: 24px; height: 24px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    font-size: 11px; font-weight: 700;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
}
.pillar-text { font-size: 0.95rem; line-height: 1.6; color: rgba(255,255,255,0.75); }
.pillar-text strong { color: rgba(255,255,255,0.9); }

/* ─── Legal fields ─────────────────────────────────────────────────── */
.legal-field { margin-bottom: 12px; }
.legal-field .label {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
}
.legal-field .value {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.65);
}

/* ─── News entry ───────────────────────────────────────────────────── */
.news-entry {
    background: rgba(14,14,26,0.7);
    border: 1px solid rgba(138,43,226,0.15);
    border-radius: 14px;
    padding: 1.5rem 1.8rem;
    margin-bottom: 1.2rem;
    transition: border-color 0.3s;
}
.news-entry:hover { border-color: rgba(138,43,226,0.35); }
.news-entry-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.news-entry-emoji { font-size: 1.4rem; }
.news-entry-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #C9A0FF;
}
.news-entry-date {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.news-entry-version {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(138,43,226,0.15);
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(138,43,226,0.7);
    letter-spacing: 0.5px;
    margin-left: 6px;
}
.news-entry-body {
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

/* ─── Milestone entries (X.0.0 — major versions) ─────────────────── */
.news-entry.is-milestone {
    border: 1.5px solid rgba(212,175,55,0.45);
    background: linear-gradient(135deg, rgba(14,14,26,0.85), rgba(40,30,10,0.35));
    box-shadow: 0 0 18px rgba(212,175,55,0.08), inset 0 0 30px rgba(212,175,55,0.03);
}
.news-entry.is-milestone:hover { border-color: rgba(212,175,55,0.7); }
.news-entry.is-milestone .news-entry-title { color: #D4AF37; }
.news-entry.is-milestone .news-entry-version {
    background: rgba(212,175,55,0.18);
    color: #D4AF37;
}

/* ─── Beta banner ──────────────────────────────────────────────────── */
.beta-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255,191,0,0.06);
    border: 1px solid rgba(255,191,0,0.18);
    border-radius: 10px;
    margin-bottom: 16px;
}
.beta-banner-icon { font-size: 0.9rem; color: rgba(255,191,0,0.65); }
.beta-banner-text { font-size: 0.8rem; line-height: 1.4; color: rgba(255,191,0,0.7); }

/* ─── Footer ───────────────────────────────────────────────────────── */
.footer {
    width: 100%;
    text-align: center;
    padding: 16px 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(138,43,226,0.1);
}
.footer-line {
    font-size: 8px; font-weight: 400;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1.2px;
    font-variant: small-caps;
}
.footer-line-bold { font-weight: 700; }
.footer-sub {
    font-size: 8px; font-weight: 400;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1.2px;
    font-variant: small-caps;
    font-style: italic;
    margin-top: 2px;
}

.footer-hr {
    width: 60px;
    height: 1px;
    border: none;
    background: linear-gradient(90deg, transparent, rgba(138,43,226,0.3), transparent);
    margin: 10px auto;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 9px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}
.footer-links a:hover { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-links .sep {
    color: rgba(255,255,255,0.15);
    font-size: 8px;
}

/* ─── Animations ──────────────────────────────────────────────────── */
@keyframes oriDotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .card { padding: 1.2rem 1.3rem; }
    .content { padding: 0 1rem 3rem; }
    .page-title { font-size: 0.95rem; }
    .news-entry { padding: 1.2rem 1.3rem; }
    .sh-logo-game { font-size: 18px; letter-spacing: 2px; }
    .sh-logo-my-m { font-size: 18px; }
    .sh-logo-my-y { font-size: 22px; }
    .sh-logo-l, .sh-logo-fe { font-size: 20px; }
    .sh-logo-i-stick { font-size: 12px; }
    .sh-ori-dot { width: 4px; height: 4px; }
    .sh-nav-link { font-size: 0.65rem; padding: 3px 7px; }
}
