/* Changelog Styles */

/* Container principal */
.changelog-container {
    max-width: 900px;
    margin: 40px auto 80px;
    padding: 0 20px;
}

/* Timeline */
.changelog-timeline {
    position: relative;
    padding-left: 50px;
}

/* Línea vertical del timeline */
.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #3498db, #e8f4f8);
}

/* Cada entrada de versión (H1) */
.changelog-content h1 {
    position: relative;
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    margin-left: 20px;
    border-left: 4px solid #3498db;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2c3e50;
    transition: box-shadow 0.3s ease;
}

.changelog-content h1:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Círculo en el timeline */
.changelog-content h1::before {
    content: '';
    position: absolute;
    left: -54px;
    top: 30px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3498db;
    border: 4px solid white;
    box-shadow: 0 0 0 2px #3498db;
    z-index: 1;
}

/* Badge para fecha/versión dentro del H1 */
.changelog-content h1 strong {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 10px;
    font-weight: 500;
}

/* Secciones (H2 - Features, Bugs, etc) */
.changelog-content h2 {
    font-size: 1.2rem;
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 15px;
    margin-left: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Listas de cambios */
.changelog-content ul {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 20px;
}

.changelog-content li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #555;
    line-height: 1.6;
}

.changelog-content li::before {
    content: '→';
    position: absolute;
    left: 5px;
    color: #3498db;
    font-weight: bold;
    font-size: 1.1em;
}

/* Separador entre versiones */
.changelog-content hr {
    border: none;
    border-top: 1px dashed #ddd;
    margin: 50px 20px;
}

/* Párrafos dentro de entradas */
.changelog-content p {
    margin-left: 20px;
    color: #666;
    line-height: 1.7;
}

/* Code blocks si se usan */
.changelog-content code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e74c3c;
}

.changelog-content pre {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 15px 20px;
}

.changelog-content pre code {
    background: none;
    padding: 0;
    color: #333;
}

/* Blockquotes para notas importantes */
.changelog-content blockquote {
    margin: 20px;
    padding: 15px 20px;
    border-left: 4px solid #f39c12;
    background: #fff9e6;
    color: #856404;
    font-style: italic;
}

/* Links dentro del changelog */
.changelog-content a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dotted #3498db;
    transition: color 0.2s ease;
}

.changelog-content a:hover {
    color: #2980b9;
    border-bottom-color: #2980b9;
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .changelog-timeline {
        padding-left: 30px;
    }
    
    .changelog-timeline::before {
        left: 10px;
    }
    
    .changelog-content h1 {
        margin-left: 10px;
        padding: 15px 20px;
        font-size: 1.5rem;
    }
    
    .changelog-content h1::before {
        left: -44px;
        top: 20px;
        width: 14px;
        height: 14px;
    }
    
    .changelog-content h2 {
        margin-left: 10px;
        font-size: 1.1rem;
    }
    
    .changelog-content p,
    .changelog-content ul {
        margin-left: 10px;
    }
    
    .changelog-content hr {
        margin: 40px 10px;
    }
}

@media (max-width: 480px) {
    .changelog-container {
        padding: 0 10px;
    }
    
    .changelog-timeline {
        padding-left: 25px;
    }
    
    .changelog-content h1 {
        margin-left: 5px;
        padding: 12px 15px;
        font-size: 1.3rem;
    }
    
    .changelog-content h1 strong {
        display: block;
        margin-top: 8px;
        margin-left: 0;
    }
}

/* Animaciones suaves */
.changelog-content h1,
.changelog-content h2,
.changelog-content li {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Estado hover para las entradas */
.changelog-content h1 {
    cursor: default;
}
