/* ============================================
   FreeITSM - Updates Page Styles
   ============================================ */

.updates-timeline {
    padding: var(--space-4xl) 0;
}

.updates-timeline .container {
    max-width: 900px;
}

/* Update Entry */
.update-entry {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-4xl);
    position: relative;
}

.update-entry:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 69px;
    top: 120px;
    width: 2px;
    height: calc(100% - 80px);
    background: var(--color-border);
}

/* Date Badge */
.update-date {
    text-align: center;
    background: var(--color-bg-alt);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.date-day {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.date-month {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--space-xs);
}

.date-year {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-top: var(--space-xs);
}

/* Update Content */
.update-content h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}

.update-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.update-item {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.2s ease;
}

.update-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.update-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

.badge-feature {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-improvement {
    background: #f3e5f5;
    color: #6a1b9a;
}

.badge-fix {
    background: #fff3e0;
    color: #e65100;
}

.update-module {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-light);
    background: var(--color-border);
    margin-bottom: var(--space-md);
    margin-left: 6px;
}

.update-item h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.update-item p {
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Subscribe Section */
.updates-subscribe {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-alt);
    text-align: center;
}

.updates-subscribe h2 {
    margin-bottom: var(--space-md);
}

.updates-subscribe p {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .update-entry {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .update-entry::after {
        display: none;
    }

    .update-date {
        position: static;
        flex-direction: row;
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .date-day {
        font-size: 2rem;
    }

    .date-month {
        font-size: var(--text-base);
    }

    .date-year {
        font-size: var(--text-xs);
    }

    .update-content h2 {
        font-size: var(--text-2xl);
    }

    .update-item {
        padding: var(--space-lg);
    }

    .update-item h3 {
        font-size: var(--text-lg);
    }
}

@media (max-width: 576px) {
    .date-day {
        font-size: 1.5rem;
    }

    .update-items {
        gap: var(--space-lg);
    }
}
