/* Updates / Patch Notes Page Styles */
.updates-page {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Hero Section */
.updates-hero {
    position: relative;
    padding: 14rem 2rem 6rem;
    text-align: center;
    overflow: hidden;
}

.updates-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(79, 70, 229, 0.18) 0%, transparent 65%),
                radial-gradient(ellipse at 80% 60%, rgba(0, 224, 255, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.updates-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(var(--brand-indigo-rgb), 0.2) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.updates-hero > * {
    position: relative;
    z-index: 1;
}

.updates-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.4rem;
    background: rgba(var(--brand-indigo-rgb), 0.12);
    border: 1px solid rgba(var(--brand-indigo-rgb), 0.35);
    border-radius: 100px;
    color: var(--brand-indigo);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out both, badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 255, 0); }
    50% { box-shadow: 0 0 20px 4px rgba(139, 92, 255, 0.2); }
}

.updates-hero h1 {
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.75) 50%, var(--brand-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.updates-hero h1 b {
    -webkit-text-fill-color: transparent;
}

.updates-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

/* Timeline/Log Layout */
.updates-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 100px;
    position: relative;
    z-index: 1;
}

.update-card {
    background: rgba(10, 10, 31, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.update-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
    border-color: rgba(var(--brand-indigo-rgb), 0.35);
}

.update-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-indigo), var(--brand-purple));
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
}

.update-title-wrapper h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.update-date {
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.update-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-latest {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-older {
    background: rgba(100, 116, 139, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

/* Category Sections */
.update-section {
    margin-bottom: 25px;
}

.update-section:last-child {
    margin-bottom: 0;
}

.update-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Specific Section Colors */
.section-features h3 { color: #38bdf8; }
.section-commands h3 { color: #c084fc; }
.section-fixes h3 { color: #4ade80; }
.section-bugs h3 { color: #f87171; }
.section-system h3 { color: #fbbf24; }
.section-tags h3 { color: #e879f9; }

.update-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.update-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
}

.section-features .update-list li::before { background-color: #38bdf8; }
.section-commands .update-list li::before { background-color: #c084fc; }
.section-fixes .update-list li::before { background-color: #4ade80; }
.section-bugs .update-list li::before { background-color: #f87171; }
.section-system .update-list li::before { background-color: #fbbf24; }
.section-tags .update-list li::before { background-color: #e879f9; }

.update-list strong {
    color: var(--text-primary);
}

.update-list code {
    background: rgba(var(--brand-purple-rgb), 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: var(--brand-cyan);
    border: 1px solid rgba(var(--brand-purple-rgb), 0.25);
}

/* Known Bugs Page Specific Styling */
.bug-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
    margin-left: 8px;
    vertical-align: middle;
}

/* Hub Pro Tip */
.hub-pro-tip {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(var(--brand-purple-rgb), 0.1) 0%, rgba(var(--brand-indigo-rgb), 0.03) 100%);
    border-left: 4px solid var(--brand-indigo);
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--brand-indigo);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hub-pro-tip i {
    color: var(--brand-indigo);
    font-size: 1.5rem;
    margin-top: 4px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(var(--brand-indigo-rgb), 0.5));
}

.hub-pro-tip-content {
    flex: 1;
    min-width: 0;
}

.hub-pro-tip-content h4 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--brand-indigo);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.hub-pro-tip-content p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.hub-link {
    color: var(--brand-cyan);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed rgba(var(--brand-cyan-rgb), 0.4);
    transition: all 0.2s ease;
}

.hub-link:hover {
    color: #fff;
    border-bottom-style: solid;
    text-shadow: 0 0 10px rgba(var(--brand-cyan-rgb), 0.5);
}

@media (max-width: 768px) {
    .updates-hero {
        padding: 10rem 1rem 4rem;
    }

    .update-header {
        flex-direction: column;
        gap: 15px;
    }

    .update-card {
        padding: 25px;
    }

    .hub-pro-tip {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.2rem 1.25rem;
    }

    .hub-pro-tip i {
        margin-top: 0;
    }

    .hub-pro-tip-content p {
        font-size: 0.95rem;
    }
}
