/**
 * EXPMU - Development Page
 */

.development-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem;
}

/* ========== HEADER ========== */
.dev-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.dev-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.dev-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.dev-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========== GRID ========== */
.dev-grid {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* ========== SIDEBAR ========== */
.dev-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.sidebar-icon {
    font-size: 0.9rem;
    color: var(--primary);
}

.sidebar-header h3 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.version-list {
    display: flex;
    flex-direction: column;
}

.version-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.25rem;
    text-decoration: none;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.version-item:last-child {
    border-bottom: none;
}

.version-item:hover {
    background: var(--bg-light);
}

.version-item.active {
    background: var(--primary-soft);
    border-left: 3px solid var(--primary);
}

/* ========== VERSIÓN ACTUAL - EFECTO DESTACADO ========== */
.version-item.latest {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(245, 158, 11, 0.03) 100%);
    position: relative;
    overflow: hidden;
    border-left: 2px solid var(--warning);
}

.version-item.latest::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--warning), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.version-item.latest:hover {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(245, 158, 11, 0.08) 100%);
}

.version-item.latest .version-number {
    color: var(--warning);
    font-weight: 700;
}

.version-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.version-number {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.version-badge {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--warning);
    background: rgba(245, 158, 11, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
}

.version-arrow {
    color: var(--text-muted);
    font-size: 0.65rem;
    opacity: 0;
    transition: all 0.2s ease;
}

.version-item:hover .version-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.version-item.active .version-arrow {
    opacity: 1;
    color: var(--primary);
}

.version-item.latest .version-arrow {
    color: var(--warning);
}

.version-item.latest .version-arrow:hover {
    color: var(--warning);
}

/* ========== MAIN CONTENT ========== */
.dev-content {
    flex: 1;
    min-width: 0;
    margin-top: 0;
    padding-top: 0;
}

.changelog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 0;
}

.changelog-card-header {
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-light);
}

.changelog-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.changelog-icon {
    font-size: 0.9rem;
    color: var(--primary);
}

.changelog-title h2 {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.changelog-card-body {
    padding: 1.5rem;
}

/* ========== CHANGELOG CONTENT STYLES ========== */
.changelog-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.changelog-section {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1rem;
}

.changelog-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.section-badge {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.section-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.change-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.5rem;
}

.change-list li {
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
    position: relative;
    padding-left: 1.2rem;
    line-height: 1.45;
}

.change-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.change-list li strong,
.change-list li b {
    font-weight: 400;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    background: var(--bg-light);
    border-radius: var(--radius-md);
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-muted);
}

.empty-state p {
    margin: 0;
    font-size: 0.8rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .dev-grid {
        flex-direction: column;
    }
    
    .dev-sidebar {
        width: 100%;
    }
    
    .development-page {
        padding: 1rem;
    }
    
    .dev-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 550px) {
    .version-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .version-badge {
        font-size: 0.5rem;
    }
    
    .change-list li {
        font-size: 0.7rem;
    }
}