/* ==========================================================================
   Updates & Roadmap Stylesheet (Dark Glassmorphic Timeline & Kanban)
   ========================================================================== */

.updates-container {
    padding: 3.5rem 1.5rem 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Hero Header --- */
.updates-hero {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.updates-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.3);
    color: #8fa0ff;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.updates-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.updates-hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Tab Switcher --- */
.tab-switcher-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.tab-navigation {
    display: inline-flex;
    background: rgba(18, 24, 38, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    padding: 0.35rem;
    gap: 0.35rem;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-button:hover {
    color: #f8fafc;
}

.tab-button.active {
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

/* --- Tab Content Visibility --- */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Updates Feed / Timeline --- */
.updates-feed {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
}

.update-post {
    background: rgba(18, 24, 38, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.update-post:hover {
    transform: translateY(-3px);
    border-color: rgba(88, 101, 242, 0.4);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.post-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
}

.post-content {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.75;
}

.post-content p {
    margin: 0 0 1rem;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content ul, .post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.post-content li {
    margin-bottom: 0.35rem;
}

.post-footer {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-tags .tag {
    display: inline-flex;
    align-items: center;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.25);
    color: #8fa0ff;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- Updates Pagination --- */
.updates-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.updates-pagination .page-numbers {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.updates-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 40px;
    height: 40px;
    padding: 0 0.85rem;
    border-radius: 10px;
    background: rgba(18, 24, 38, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.updates-pagination a.page-link:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: rgba(88, 101, 242, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

.updates-pagination .page-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.updates-pagination .page-link.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(15, 23, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.04);
    color: #64748b;
}

/* --- Roadmap Kanban Columns --- */
.roadmap-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    align-items: flex-start;
}

.roadmap-column {
    background: rgba(18, 24, 38, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 1.5rem;
}

.roadmap-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roadmap-column-header h3 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.column-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.column-pill.in-progress {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.column-pill.planned {
    background: rgba(88, 101, 242, 0.15);
    color: #8fa0ff;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.roadmap-items-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.roadmap-item {
    background: rgba(25, 33, 50, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.25s ease;
}

.roadmap-item:hover {
    border-color: rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.roadmap-item.active {
    border-color: var(--accent);
    background: rgba(30, 41, 62, 0.85);
}

.roadmap-item .post-header {
    border-bottom: none;
    margin-bottom: 0;
    padding: 1.15rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.roadmap-item .post-header h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.roadmap-chevron {
    color: #64748b;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.roadmap-item.active .roadmap-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.roadmap-item .post-content {
    max-height: 0;
    opacity: 0;
    padding: 0 1.25rem;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
    border-top: 1px solid transparent;
}

.roadmap-item.active .post-content {
    max-height: 500px;
    opacity: 1;
    padding: 0 1.25rem 1.25rem;
    border-top-color: rgba(255, 255, 255, 0.05);
}

.roadmap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.roadmap-tags .mini-tag {
    font-size: 0.72rem;
    padding: 0.15rem 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: #94a3b8;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .updates-hero h1 {
        font-size: 2.1rem;
    }

    .roadmap-layout {
        grid-template-columns: 1fr;
    }
}