.updates-section {
    background: #262626;
    border-radius: 0.5rem;
    padding: 0;
    margin: 0.5rem 0;
    border: 1px solid rgba(147, 51, 234, 0.2);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.updates-header {
    background: linear-gradient(90deg, #9333ea, #3b82f6);
    padding: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: opacity 0.2s ease;
    user-select: none;
}

.updates-header:hover {
    opacity: 0.95;
}

.updates-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.updates-icon {
    font-size: 1.2rem;
}

.updates-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
}

.updates-badge {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}

.updates-date {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: normal;
    margin-left: 0.5rem;
}

.updates-arrow {
    font-size: 1.2rem;
    color: white;
    transition: transform 0.3s ease;
}

.updates-arrow.expanded {
    transform: rotate(180deg);
}

.updates-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    background: #1a1a1a;
}

.updates-content.expanded {
    max-height: 800px;
    overflow-y: auto;
}

#updates-list {
    padding: 0;
}

.update-card {
    background: #262626;
    margin: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border-left: 3px solid #9333ea;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.update-card:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 8px rgba(147, 51, 234, 0.2);
}

.update-card.update-pinned {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(147, 51, 234, 0.05));
}

.pin-icon {
    color: #f59e0b;
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.update-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.update-category-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.category-feature,
.category-newfeature,
.category-new {
    background: rgba(16, 185, 129, 0.1);
    color: #34D399;
}

.category-bugfix {
    background: rgba(239, 68, 68, 0.1);
    color: #F87171;
}

.category-improvement {
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
}

.category-maintenance {
    background: rgba(245, 158, 11, 0.1);
    color: #FBBF24;
}

.category-announcement {
    background: rgba(147, 51, 234, 0.1);
    color: #A78BFA;
}

.update-title {
    font-size: 0.95rem;
    font-weight: bold;
    background: linear-gradient(90deg, #9333ea, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}

.update-time {
    font-size: 0.75rem;
    color: #9ca3af;
    flex-shrink: 0;
}

.update-content {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #e5e7eb;
    margin: 0;
    opacity: 0.95;
}

.update-content a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.update-content a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.update-content strong,
.update-content b {
    color: #f3f4f6;
    font-weight: 600;
}

.update-content em,
.update-content i {
    font-style: italic;
    color: #d1d5db;
}

.updates-footer {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(147, 51, 234, 0.2);
}

.view-all-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.view-all-link:hover {
    color: #9333ea;
    text-decoration: underline;
}

.updates-loading {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

.updates-error {
    text-align: center;
    padding: 2rem;
    color: #ef4444;
    font-size: 0.9rem;
}

.updates-empty {
    text-align: center;
    padding: 2rem;
    color: #9ca3af;
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .updates-header {
        padding: 0.75rem;
    }

    .updates-title {
        font-size: 1rem;
    }

    .updates-icon {
        font-size: 1rem;
    }

    .update-card {
        margin: 0.5rem;
        padding: 0.75rem;
    }

    .update-title {
        font-size: 1rem;
    }

    .update-content {
        font-size: 0.9rem;
    }

    .updates-content.expanded {
        max-height: 600px;
    }
}

.updates-content::-webkit-scrollbar {
    width: 8px;
}

.updates-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.updates-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #9333ea, #3b82f6);
    border-radius: 4px;
}

.updates-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7e22ce, #2563eb);
}
