/* Updates & Changelog Page Styles - Isometric Factory Theme */

:root {
    --bg-main: #1a1a2e;
    --bg-surface: #16213e;
    --bg-card: #1f2b47;
    --bg-elevated: #253553;
    --primary: #FF9F1C;
    --primary-light: #FFB84D;
    --primary-dark: #E88A00;
    --secondary: #00D9FF;
    --accent-purple: #A78BFA;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);
    --shadow-hard: 4px 4px 0 rgba(0, 0, 0, 0.2);
    --iso-skew: -2deg;
    --radius-md: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.8;
    min-height: 100vh;
}

.container { max-width: 900px; margin: 0 auto; padding: 40px 20px; }

header {
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 20px 40px;
    border-bottom: 2px dashed var(--bg-elevated);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-hard);
    transform: rotate(-3deg);
}

.logo-text {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 800;
}

h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary);
    margin-bottom: 15px;
    transform: skewX(var(--iso-skew));
}

.subtitle { color: var(--text-secondary); font-size: 1.1rem; }

.update-card {
    background: var(--bg-card);
    border: 2px solid var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.2s, border-color 0.2s;
    transform: skewX(var(--iso-skew));
    box-shadow: var(--shadow-hard);
}

.update-card > * {
    transform: skewX(calc(var(--iso-skew) * -1));
}

.update-card:hover {
    transform: skewX(var(--iso-skew)) translateY(-3px);
    border-color: var(--primary);
}

.update-card.latest {
    border-color: var(--primary);
    box-shadow: 5px 5px 0 var(--primary-dark);
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed var(--bg-elevated);
}

.version {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.version-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-main);
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 10px;
    box-shadow: 2px 2px 0 var(--primary-dark);
}

.build-code {
    display: inline-block;
    background: var(--bg-elevated);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: 0.75rem;
    font-family: 'Orbitron', monospace;
    margin-left: 10px;
}

.date { color: var(--text-muted); font-size: 0.9rem; }

.update-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.update-body { color: var(--text-secondary); line-height: 1.8; }
.update-body ul { list-style: none; padding-left: 0; }

.update-body li {
    padding: 8px 0 8px 24px;
    position: relative;
    border-bottom: 1px solid var(--bg-elevated);
}

.update-body li:last-child { border-bottom: none; }

.update-body li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    padding: 12px 24px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    transition: transform 0.2s;
    margin-bottom: 30px;
    transform: skewX(var(--iso-skew));
    box-shadow: var(--shadow-hard);
}

.back-link:hover {
    transform: skewX(var(--iso-skew)) translateY(-2px);
}

footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px dashed var(--bg-elevated);
    color: var(--text-muted);
}

footer a { color: var(--primary); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.cta-section {
    text-align: center;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin: 50px 0;
    transform: skewX(var(--iso-skew));
    box-shadow: 6px 6px 0 var(--primary-dark);
}

.cta-section > * {
    transform: skewX(calc(var(--iso-skew) * -1));
}

.cta-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: var(--primary-light);
    margin-bottom: 15px;
}

.cta-section p { color: var(--text-secondary); margin-bottom: 25px; }

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--bg-main);
    padding: 16px 36px;
    border-radius: var(--radius-md);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--primary-dark);
    transition: transform 0.2s;
}

.cta-button:hover {
    transform: translateY(-3px);
}

.loading { text-align: center; padding: 60px 20px; color: var(--text-muted); }

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.error-message {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 16px;
    color: #ff4757;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin: 40px 0 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: skewX(var(--iso-skew));
}

.section-title:first-child { margin-top: 0; }

.build-count {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.version-info { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }

.version-badge.major { background: var(--secondary); }

.timeline { position: relative; padding-left: 30px; margin-left: 10px; }

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--bg-elevated);
}

.timeline-item {
    position: relative;
    padding: 15px 20px;
    margin-bottom: 8px;
    background: var(--bg-card);
    border: 2px solid var(--bg-elevated);
    border-radius: var(--radius-md);
    transition: transform 0.2s, border-color 0.2s;
    cursor: pointer;
    transform: skewX(var(--iso-skew));
    box-shadow: var(--shadow-hard);
}

.timeline-item > * {
    transform: skewX(calc(var(--iso-skew) * -1));
}

.timeline-item:hover {
    border-color: var(--primary);
    transform: skewX(var(--iso-skew)) translateX(5px);
}

.timeline-item.expanded { border-color: var(--primary); }

.timeline-marker {
    position: absolute;
    left: -38px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 2px;
    border: 3px solid var(--bg-main);
    transform: rotate(45deg) skewX(calc(var(--iso-skew) * -1));
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.timeline-build {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
}

.timeline-version {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-elevated);
    padding: 2px 8px;
    border-radius: var(--radius-md);
}

.timeline-date { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }

.timeline-preview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 8px;
}

.expand-icon {
    color: var(--secondary);
    font-size: 0.85rem;
    transition: transform 0.2s;
}

.timeline-item.expanded .expand-icon { transform: rotate(90deg); }

.timeline-changes {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px dashed var(--bg-elevated);
}

.timeline-item.expanded .timeline-changes { display: block; }

.timeline-changes ul { list-style: none; padding: 0; margin: 0; }

.timeline-changes li {
    padding: 6px 0 6px 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-bottom: 1px solid var(--bg-elevated);
}

.timeline-changes li:last-child { border-bottom: none; }

.timeline-changes li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

.change-count {
    color: var(--secondary);
    font-size: 0.8rem;
    background: rgba(0, 217, 255, 0.15);
    padding: 2px 8px;
    border-radius: var(--radius-md);
}

.build-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px;
    margin: 40px 0;
    background: var(--bg-card);
    border: 2px solid var(--bg-elevated);
    border-radius: var(--radius-lg);
    transform: skewX(var(--iso-skew));
    box-shadow: var(--shadow-hard);
}

.build-stats > * {
    transform: skewX(calc(var(--iso-skew) * -1));
}

.stat { text-align: center; }

.stat-value {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label { font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 600px) {
    .update-header { flex-direction: column; }
    .container { padding: 20px 15px; }
    header { padding: 40px 15px 30px; }
    .build-stats { flex-direction: column; gap: 20px; }
    .timeline { padding-left: 25px; }
    .timeline-marker { left: -33px; width: 10px; height: 10px; }
    .timeline-header { flex-direction: column; align-items: flex-start; gap: 4px; }
    .timeline-date { margin-left: 0; }
}
