/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e0e0e0;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

header p {
    color: #666;
    font-style: italic;
}

/* Secciones */
section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 1.5rem;
    border-left: 3px solid #2c2c2c;
    padding-left: 1rem;
}

/* Formulario */
.upload-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c2c2c;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: #2c2c2c;
}

textarea {
    resize: vertical;
    min-height: 200px;
}

.submit-btn {
    background-color: #2c2c2c;
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #1a1a1a;
}

/* Estilos para artículos de ensayos */
.essay-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-left: 3px solid #e0e0e0;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.essay-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-left-color: #2c2c2c;
}

.essay-item:last-child {
    margin-bottom: 0;
}

/* Botones de acción */
.essay-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.25rem 0.75rem;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #f5f5f5;
    color: #2c2c2c;
}

.btn-danger {
    border-color: #e74c3c;
    color: #e74c3c;
}

.btn-danger:hover {
    background-color: #e74c3c;
    color: white;
}

/* Lista de ensayos */
.essays-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.essay-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #2c2c2c;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.essay-content {
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
}

.essay-meta {
    font-size: 0.875rem;
    color: #999;
    font-style: italic;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estados vacíos */
.empty-state {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 3rem 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .upload-form {
        padding: 1.5rem;
    }
    
    .essay-item {
        padding: 1.5rem;
    }
    
    .essay-title {
        font-size: 1.25rem;
    }
    
    .essay-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
