/* css/manga-details.css */

/* --- Variables (Actualizadas con Fucsia) --- */
:root {
    /* ... (tus otras variables como --background-color, etc.) ... */
    --primary-color: #ff0062; /* ¡FUCSIA PRINCIPAL! */
    --fuchsia-hover: #d40051; /* Fucsia más oscuro para hover */
    --border-color: #3a3a3a;
    --surface-color: #1e1e1e;
    --text-color: #e0e0e0;
    --text-color-secondary: #a0a0a0;
    --border-radius: 8px;
}

/* --- ESTILOS MÓVILES (PANTALLAS PEQUEÑAS) --- */

.manga-details-container {
    display: flex;
    flex-direction: column; /* Apilado en móvil */
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.manga-cover {
    align-self: center;
    max-width: 250px;
    width: 60%;
}

.manga-cover img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.manga-content h1 {
    margin-top: 0;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.tag {
    background-color: var(--surface-color);
    border: 1px solid var(--primary-color); /* Borde Fucsia */
    color: var(--primary-color); /* Texto Fucsia */
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.manga-content h2 {
    font-size: 1.3rem;
    border-left: 4px solid var(--primary-color); /* Borde Izquierdo Fucsia */
    padding-left: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.description {
    line-height: 1.6;
    color: var(--text-color-secondary);
    font-size: 0.9rem;
}

.details-list {
    list-style: none;
    padding: 0;
    color: var(--text-color-secondary);
    font-size: 0.85rem;
}

.details-list li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #2c2c2c;
}

.details-list li strong {
    color: var(--text-color);
    margin-right: 0.5rem;
}

/* --- Sección de Capítulos (Móvil) --- */
.chapters-section {
    padding: 1.5rem 0;
}

.chapter-list {
    padding: 0;
    background-color: transparent;
}

.chapter-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.chapter-list li {
    background-color: var(--surface-color);
    border-radius: 4px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.5rem 1rem;
}
.chapter-list li:hover {
    background-color: #2a2a2a;
}
.chapter-list a.chapter-link {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    flex-grow: 1;
}
.chapter-number { font-weight: 500; font-size: 0.95rem; }
.chapter-title { color: var(--text-color-secondary); font-size: 0.85rem; margin-left: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chapter-date { font-size: 0.75rem; color: var(--text-color-secondary); margin-left: 0; margin-top: 0.25rem; }

/* Checkmark leído */
.read-checkmark {
    color: var(--primary-color); /* Fucsia */
    font-weight: bold;
    margin-left: 0.5rem;
    font-size: 1.2em;
}

.chapter-edit-btn { /* Botón editar amarillo */
    background-color: #ffc107;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s;
    flex-shrink: 0;
    margin: 0.5rem;
}
.chapter-edit-btn:hover { background-color: #d39e00; }

/* Opacidad capítulo leído */
.chapter-list li.chapter-read { opacity: 0.7; }
.chapter-list li.chapter-read:hover { opacity: 1; }


/* --- MEDIA QUERIES (TABLET Y SUPERIORES) --- */
@media (min-width: 768px) {
    .profile-header { height: 250px; }
    .profile-avatar-img { width: 120px; height: 120px; border-width: 4px; }
    .profile-username { font-size: 2.5rem; }
    .profile-description { font-size: 0.95rem; -webkit-line-clamp: 3; }
    .profile-links { margin-top: 1rem; gap: 0.5rem 1rem; }
    .profile-link-item { font-size: 0.9rem; }
    .profile-nav-tabs { flex-direction: row; }
    .profile-nav-tab { padding: 1rem 0.5rem; font-size: 1rem; }
    .profile-tab-content .manga-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.2rem; }
    .profile-tab-content .manga-card img { height: 240px; }
    .profile-tab-content .manga-card .manga-info { padding: 1rem; }
    .profile-tab-content .manga-card .manga-nombre { font-size: 1rem; }

    /* Restaurar tamaños para detalles de manga en desktop */
    .manga-details-container { flex-direction: row; gap: 2.5rem; padding: 2rem 0; }
    .manga-cover { align-self: flex-start; width: 250px; }
    .manga-content h1 { font-size: 2.5rem; text-align: left; }
    .genre-tags { justify-content: flex-start; }
    .tag { padding: 0.25rem 0.75rem; font-size: 0.8rem; }
    .manga-content h2 { font-size: 1.5rem; padding-left: 1rem; }
    .description { font-size: 1rem; }
    .details-list { font-size: 0.9rem; }
    .details-list li { padding: 0.5rem 0; }

    /* Lista de capítulos en desktop */
    .chapter-list a.chapter-link { flex-direction: row; align-items: center; }
    .chapter-number { font-size: 1rem; }
    .chapter-title { margin-left: 0.5rem; font-size: 0.85rem; }
    .read-checkmark { order: 5; margin-left: 1rem; }
    .chapter-date { order: 6; margin-left: auto; margin-top: 0; padding-left: 1rem; font-size: 0.85rem; }
    .chapter-edit-btn { margin-left: 1rem; margin-right: 1.5rem; }
}