/* ==============================================
   CinePrompt Changelog — Stylesheet
   Extends guides/models design system
   ============================================== */

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

:root {
    --bg: #060606;
    --bg-card: #0d0d0b;
    --bg-card-hover: #141410;
    --text: #e8dcc8;
    --text-dim: #8a7e6b;
    --text-faint: #5a5245;
    --accent: #c9a84c;
    --accent-light: #e0c068;
    --accent-dark: #9a7a30;
    --accent-glow: rgba(201, 168, 76, 0.08);
    --border: #1e1c17;
    --border-light: #2a2418;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-mono: 'Courier Prime', 'Courier New', monospace;
    --max-width: 1100px;
    --gutter: 2rem;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

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

/* --- Ambient Glow --- */
.ambient-glow {
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* --- Navigation --- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.5rem var(--gutter);
    background: rgba(6, 6, 6, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
}
.nav-logo:hover { color: var(--accent-light); }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--accent); }

/* --- Hero --- */
.hero {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem var(--gutter) 3rem;
    border-bottom: 1px solid var(--border);
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-faint);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--text);
    letter-spacing: -0.5px;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    margin-top: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-dim);
    max-width: 600px;
    line-height: 1.65;
}

/* --- Releases Timeline --- */
.releases {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem var(--gutter) 6rem;
}

.release {
    position: relative;
    padding-left: 2.75rem;
    margin-bottom: 3.5rem;
}

/* Timeline line */
.release::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0.6rem;
    bottom: -2.5rem;
    width: 1px;
    background: var(--border-light);
}

.release:last-child::before {
    display: none;
}

/* Timeline dot */
.release::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.6rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent-dark);
    z-index: 1;
}

.release:first-child::after {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.35);
}

/* --- Release Header --- */
.release-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}

.release-version {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    letter-spacing: 0.5px;
}

.release-date {
    font-size: 0.8rem;
    color: var(--text-faint);
}

.release-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 1.25rem;
    letter-spacing: -0.2px;
}

/* --- Entry List --- */
.release-entries {
    list-style: none;
    padding: 0;
    margin: 0;
}

.release-entry {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-dim);
    line-height: 1.6;
}

/* --- Entry Badges --- */
.entry-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 0.25rem;
    min-width: 3.2rem;
    text-align: center;
}

.entry-badge.new {
    color: #7dd3a0;
    background: rgba(125, 211, 160, 0.08);
    border: 1px solid rgba(125, 211, 160, 0.15);
}

.entry-badge.improved {
    color: #7db8d3;
    background: rgba(125, 184, 211, 0.08);
    border: 1px solid rgba(125, 184, 211, 0.15);
}

.entry-badge.fixed {
    color: #d3a87d;
    background: rgba(211, 168, 125, 0.08);
    border: 1px solid rgba(211, 168, 125, 0.15);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 2rem var(--gutter) 1.5rem;
    color: var(--text-faint);
    font-size: 0.7rem;
    border-top: 1px solid var(--border);
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer a {
    color: var(--text-dim);
    transition: color 0.2s;
}
.footer a:hover { color: var(--accent); }
.footer-sep { margin: 0 0.5rem; }

/* --- Responsive --- */
@media (max-width: 768px) {
    :root { --gutter: 1.25rem; }

    .hero { padding: 3.5rem var(--gutter) 2rem; }
    .hero-title { font-size: 2.5rem; }

    .release { padding-left: 2rem; }
    .release-title { font-size: 1.25rem; }
    .release-header { gap: 0.65rem; }
}

@media (max-width: 480px) {
    .nav { padding: 1rem var(--gutter); }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
}
