/* ============================================
   Updates Section Styles
   ============================================ */

/* Updates Section Container */
.updates-section {
    background: rgba(30, 58, 138, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 0;
    backdrop-filter: blur(10px);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* Updates Header */
.updates-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.updates-header:hover {
    background: rgba(59, 130, 246, 0.1);
}

.updates-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.updates-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.updates-icon-wrapper i {
    color: white;
    font-size: 1.1rem;
}

.updates-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.updates-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
    margin: 0;
}

.updates-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.updates-toggle i {
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.updates-section.open .updates-toggle i {
    transform: rotate(180deg);
}

/* Updates Content */
.updates-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.updates-section.open .updates-content {
    max-height: 800px;
}

.updates-list {
    padding: 0 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Individual Update Card */
.update-card {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    transition: all 0.3s ease;
}

.update-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(4px);
    background: rgba(17, 24, 39, 0.8);
}

/* Update Type Badge */
.update-type-badge {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.update-type-badge.new_content {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.update-type-badge.update {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

.update-type-badge.feature {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #8b5cf6;
}

.update-type-badge.bugfix {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.2));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

/* Update Content */
.update-content {
    flex: 1;
    min-width: 0;
}

.update-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.update-title a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.update-title a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.update-description {
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0;
    line-height: 1.5;
}

/* Update Date */
.update-date {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
    background: rgba(55, 65, 81, 0.4);
    border-radius: 4px;
    white-space: nowrap;
}

/* View All Link */
.updates-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    text-align: center;
}

.view-all-updates {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.view-all-updates:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.view-all-updates i {
    transition: transform 0.3s ease;
}

.view-all-updates:hover i {
    transform: translateX(4px);
}

/* ============================================
   Updates Page Styles
   ============================================ */

/* Filter Buttons */
.updates-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(75, 85, 99, 0.5);
    background: rgba(17, 24, 39, 0.8);
    color: #d1d5db;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-btn:hover {
    border-color: rgba(59, 130, 246, 0.5);
    color: #ffffff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #3b82f6, #1e40af);
    border-color: #1e40af;
    color: #ffffff;
}

.filter-btn i {
    font-size: 0.8rem;
}

/* Full Page Update Card (larger version) */
.update-card-full {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.update-card-full:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.update-card-full .update-type-badge {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
}

.update-card-full .update-title {
    font-size: 1.1rem;
}

.update-card-full .update-description {
    font-size: 0.9rem;
}

.update-card-full .update-date {
    font-size: 0.8rem;
}

/* Timeline line */
.updates-timeline {
    position: relative;
    padding-left: 2rem;
}

.updates-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.5));
    border-radius: 1px;
}

.updates-timeline .update-card-full {
    position: relative;
}

.updates-timeline .update-card-full::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    width: 10px;
    height: 10px;
    background: #3b82f6;
    border-radius: 50%;
    transform: translateX(-4px);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

/* No Updates Message */
.no-updates {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
}

.no-updates i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 640px) {
    .update-card {
        flex-wrap: wrap;
    }
    
    .update-date {
        order: -1;
        margin-left: auto;
    }
    
    .update-content {
        width: 100%;
    }
    
    .updates-timeline {
        padding-left: 1.5rem;
    }
    
    .updates-timeline .update-card-full::before {
        left: -1.5rem;
    }
}
