/* Estilos específicos para la página de Ejemplos Generales PHP */
/* Tema púrpura para desarrollo de software */

.tutorial-article {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #ecf0f1;
}

.article-title {
    font-size: 2.5rem;
    color: #8e44ad;
    margin-bottom: 1rem;
    font-weight: 300;
}

.article-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.content-section {
    margin-bottom: 3rem;
}

.content-section h2 {
    color: #8e44ad;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #ecf0f1;
}

/* Grid de ejemplos */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.example-card {
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(142, 68, 173, 0.15);
    border-color: #8e44ad;
}

.example-button {
    width: 100%;
    background: none;
    border: none;
    padding: 2rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-button:hover {
}

.example-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.example-card h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.example-card p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    color: #3498db;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Grid de consejos */
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tip {
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #8e44ad;
}

.tip h3 {
    color: #8e44ad;
    margin-top: 0;
    margin-bottom: 1rem;
}

.tip p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Estilos para pasos */
.steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.step {
    padding: 1.5rem;
    border-radius: 6px;
    border-left: 4px solid #8e44ad;
}

.step h3 {
    color: #2c3e50;
    margin-top: 0;
}

.step ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.step li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.step strong {
    color: #8e44ad;
}

/* Mensaje de redirección */
.redirect-message {
    background: #e7f3ff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.redirect-message h3 {
    color: #007bff;
    margin-bottom: 1rem;
}

.redirect-message a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.redirect-message a:hover {
    text-decoration: underline;
}
