/* ============================================================
   Updates / Changelog Page
   ============================================================ */

.nav-active {
    color: var(--accent-light) !important;
}
.nav-active::after {
    transform: scaleX(1) !important;
}

/* Hero */
#updates-hero {
    min-height: 38vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 3rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.updates-hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

/* Section */
#updates-section {
    padding: 0 2rem 6rem;
}

.updates-container {
    max-width: 700px;
    margin: 0 auto;
}

/* Feed */
.updates-feed {
    display: flex;
    flex-direction: column;
    gap: 1px;
    position: relative;
}

/* Timeline line */
.updates-feed::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

/* Empty state */
.updates-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-faint);
}

.empty-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

/* Update card */
.update-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0 1.5rem 2rem;
    position: relative;
    animation: fadeSlideIn 0.35s ease both;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Timeline dot */
.update-card::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 1.85rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--bg);
    transition: background 0.2s;
}

.update-card:hover::before {
    background: var(--accent);
}

.update-body {
    flex: 1;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    transition: border-color 0.2s;
}

.update-card:hover .update-body {
    border-color: rgba(234, 179, 8, 0.2);
}

.update-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
    flex-wrap: wrap;
}

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

.update-version {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-light);
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    padding: 0.1rem 0.5rem;
    border-radius: 20px;
}

.update-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.update-content {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Type badge (reuse portal styles via shared class names) */
.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
}

.badge-browser     { background: rgba(56,189,248,0.1);  color: #38bdf8; border: 1px solid rgba(56,189,248,0.25); }
.badge-games       { background: rgba(74,222,128,0.1);  color: #4ade80; border: 1px solid rgba(74,222,128,0.25); }
.badge-feature     { background: rgba(234,179,8,0.1);   color: #facc15; border: 1px solid rgba(234,179,8,0.25); }
.badge-design      { background: rgba(192,132,252,0.1); color: #c084fc; border: 1px solid rgba(192,132,252,0.25); }
.badge-bugfix      { background: rgba(248,113,113,0.1); color: #f87171; border: 1px solid rgba(248,113,113,0.25); }
.badge-announcement{ background: rgba(251,191,36,0.1);  color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }

/* Responsive */
@media (max-width: 560px) {
    #updates-hero { padding: 7rem 1.5rem 2rem; }
    #updates-section { padding: 0 1rem 4rem; }
    .update-card { padding-left: 1.5rem; gap: 1rem; }
    .update-body { padding: 1rem; }
}
