better ui for anilist entries & fixes

This commit is contained in:
2025-12-07 02:24:30 +01:00
parent 6ae823ac0b
commit 1973069949
15 changed files with 1723 additions and 668 deletions

View File

@@ -11,6 +11,8 @@
--radius-full: 9999px;
--danger: #ef4444;
--success: #22c55e;
--bg-amoled: #0a0a0a; /* Añadido de list.css */
--bg-field: #0e0e0f; /* Añadido de list.css */
}
body {
@@ -271,92 +273,144 @@ body {
.sidebar { display: none; }
}
/* Modal Styles */
/* --- ESTILOS DE MODAL (INCLUIDOS DE LIST.CSS) --- */
.modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(8px);
background: rgba(0, 0, 0, 0.9); /* Más oscuro */
backdrop-filter: blur(10px);
z-index: 2000;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s;
padding: 2rem;
padding: 1rem;
}
.modal-overlay.active {
display: flex;
opacity: 1;
}
.modal-content {
background: #18181b;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 24px;
padding: 2.5rem;
max-width: 650px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
position: relative;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
transform: scale(0.95);
transition: transform 0.3s;
}
.modal-overlay.active .modal-content {
transform: scale(1);
@keyframes modalSlideUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.modal-content.modal-list {
max-width: 500px;
.modal-content {
background: var(--bg-amoled); /* AMOLED */
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: var(--radius-lg);
max-width: 900px; /* Ancho para el grid de 3 columnas */
width: 95%;
padding: 0; /* padding se moverá al título y cuerpo */
position: relative;
box-shadow: 0 20px 50px rgba(0,0,0,0.8);
max-height: 90vh;
display: flex;
flex-direction: column;
animation: modalSlideUp 0.3s ease;
}
.modal-content.modal-list { /* Usamos esto para sobrescribir el ancho genérico del modal de descripción */
max-width: 700px;
}
.modal-close {
position: absolute;
top: 1.5rem;
right: 1.5rem;
background: rgba(255, 255, 255, 0.1);
border: none;
top: 1rem;
right: 1rem;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
color: white;
width: 32px;
height: 32px;
border-radius: 50%;
width: 36px;
height: 36px;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
transition: 0.2s;
z-index: 2001;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.2); }
.modal-text {
line-height: 1.8;
font-size: 1.1rem;
color: #e4e4e7;
.modal-close:hover {
background: var(--danger);
border-color: var(--danger);
}
.modal-title {
font-size: 1.8rem;
font-weight: 800;
padding: 1.5rem 2rem 0.5rem;
margin-top: 0;
margin-bottom: 0;
color: var(--text-primary);
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.modal-title { margin-top: 0; margin-bottom: 1.5rem; font-size: 1.5rem; font-weight: 800; }
.modal-body {
display: flex;
flex-direction: column;
gap: 1.5rem;
overflow-y: auto;
padding: 0 2rem;
flex-grow: 1;
}
/* GRUPO PRINCIPAL DE CAMPOS (GRID) */
.modal-fields-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem 2rem;
padding: 1.5rem 0;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
/* Grid layout overrides */
.form-group.notes-group {
grid-column: 1 / span 2;
}
.form-group.checkbox-group {
grid-column: 3 / 4;
align-self: flex-end;
margin-bottom: 0.5rem;
flex-direction: row;
align-items: center;
justify-content: flex-end;
gap: 1rem;
}
.form-group.full-width {
grid-column: 1 / -1;
}
/* Date Input Styling */
.date-group {
display: flex;
gap: 1rem;
}
.date-input-pair {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-group label {
font-size: 0.9rem;
font-weight: 600;
font-size: 0.8rem; /* Tamaño más pequeño */
font-weight: 700;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.form-input {
background: var(--bg-base);
background: var(--bg-field); /* Fondo específico para campos */
border: 1px solid rgba(255,255,255,0.1);
color: var(--text-primary);
padding: 0.8rem 1rem;
@@ -372,10 +426,52 @@ body {
box-shadow: 0 0 10px var(--accent-glow);
}
.notes-textarea {
resize: vertical;
min-height: 100px;
}
/* Checkbox Styling */
.form-checkbox {
width: 18px;
height: 18px;
border: 1px solid rgba(255,255,255,0.2);
background: var(--bg-base);
border-radius: 4px;
cursor: pointer;
-webkit-appearance: none;
appearance: none;
position: relative;
transition: all 0.2s;
flex-shrink: 0;
}
.form-checkbox:checked {
background: var(--accent);
border-color: var(--accent);
}
.form-checkbox:checked::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 14px;
}
/* ACCIONES (Barra inferior pegajosa) */
.modal-actions {
display: flex;
gap: 1rem;
margin-top: 1rem;
margin-top: 0;
justify-content: flex-end;
flex-shrink: 0;
padding: 1rem 2rem;
border-top: 1px solid rgba(255,255,255,0.05);
background: var(--bg-amoled); /* Fondo para la barra sticky */
position: sticky;
bottom: 0;
z-index: 10;
}
.btn-modal-primary, .btn-modal-secondary, .btn-modal-danger {
@@ -385,15 +481,14 @@ body {
font-size: 0.95rem;
border: none;
cursor: pointer;
transition: transform 0.2s, opacity 0.2s;
flex: 1;
transition: transform 0.2s, background 0.2s;
flex: none; /* Asegura que no se estiren */
}
.btn-modal-primary {
background: var(--accent);
color: white;
}
.btn-modal-primary:hover {
transform: scale(1.05);
}
@@ -403,7 +498,6 @@ body {
color: white;
border: 1px solid rgba(255,255,255,0.2);
}
.btn-modal-secondary:hover {
background: rgba(255,255,255,0.15);
}
@@ -411,12 +505,34 @@ body {
.btn-modal-danger {
background: var(--danger);
color: white;
margin-right: auto; /* Para alinear a la izquierda */
}
.btn-modal-danger:hover {
opacity: 0.9;
}
/* Media Queries para el Modal */
@media (max-width: 900px) {
.modal-content { max-width: 95%; }
.modal-fields-grid { grid-template-columns: repeat(2, 1fr); }
.form-group.notes-group { grid-column: 1 / -1; }
.form-group.checkbox-group { grid-column: 1 / -1; align-self: auto; justify-content: flex-start; }
.modal-actions { padding: 1rem 1.5rem; }
.modal-title, .modal-body { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (max-width: 550px) {
.modal-content { margin: 0.5rem; width: auto; }
.modal-fields-grid { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 0; }
.date-group { flex-direction: column; gap: 1rem; }
.form-group.notes-group, .form-group.checkbox-group { grid-column: auto; }
.modal-actions { flex-direction: column; align-items: stretch; }
.btn-modal-danger { margin-right: 0; order: 3; }
.btn-modal-secondary { order: 2; }
.btn-modal-primary { order: 1; }
}
.read-more-btn {
background: none;
border: none;

View File

@@ -3,6 +3,7 @@
--bg-surface: #121215;
--bg-surface-hover: #1e1e22;
--accent: #8b5cf6;
--accent-glow: rgba(139, 92, 246, 0.4); /* Añadido */
--text-primary: #ffffff;
--text-secondary: #a1a1aa;
--radius-md: 12px;
@@ -11,6 +12,9 @@
--glass-border: 1px solid rgba(255, 255, 255, 0.1);
--glass-bg: rgba(20, 20, 23, 0.7);
--nav-height: 80px;
--danger: #ef4444; /* Añadido */
--bg-amoled: #0a0a0a; /* Añadido */
--bg-field: #0e0e0f; /* Añadido */
}
* { box-sizing: border-box; outline: none; }
@@ -219,144 +223,325 @@ body {
}
/* ==================================== */
/* MODAL STYLES (Add to Library Modal) */
/* MODAL STYLES (REEMPLAZO POR MODAL COMPLETO) */
/* ==================================== */
.modal-overlay {
display: none;
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(8px);
background: rgba(0, 0, 0, 0.9);
backdrop-filter: blur(10px);
z-index: 2000;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s;
padding: 2rem;
padding: 1rem;
}
.modal-overlay.active {
display: flex;
opacity: 1;
}
.modal-content {
background: #18181b;
background: var(--bg-amoled); /* Fondo AMOLED oscuro */
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 24px;
padding: 2.5rem;
max-width: 650px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
border-radius: var(--radius-lg);
max-width: 900px; /* Ancho para el grid de 3 columnas */
width: 95%;
padding: 0;
position: relative;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
transform: scale(0.95);
transition: transform 0.3s;
}
.modal-overlay.active .modal-content {
transform: scale(1);
box-shadow: 0 20px 50px rgba(0,0,0,0.8);
max-height: 90vh;
display: flex;
flex-direction: column;
animation: modalSlideUp 0.3s ease;
}
.modal-content.modal-list {
max-width: 500px;
@keyframes modalSlideUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.modal-close {
position: absolute;
top: 1.5rem;
right: 1.5rem;
background: rgba(255, 255, 255, 0.1);
border: none;
top: 1rem;
right: 1rem;
background: rgba(255,255,255,0.05);
border: 1px solid rgba(255,255,255,0.1);
color: white;
width: 32px;
height: 32px;
border-radius: 50%;
width: 36px;
height: 36px;
border-radius: 8px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
transition: 0.2s;
z-index: 2001;
}
.modal-close:hover {
background: var(--danger);
border-color: var(--danger);
}
.modal-title {
font-size: 1.8rem;
font-weight: 800;
padding: 1.5rem 2rem 0.5rem;
margin-bottom: 0;
color: var(--text-primary);
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.modal-close:hover { background: rgba(255, 255, 255, 0.2); }
.modal-title { margin-top: 0; margin-bottom: 1.5rem; font-size: 1.5rem; font-weight: 800; }
.modal-body {
display: flex;
flex-direction: column;
gap: 1.5rem;
overflow-y: auto;
padding: 0 2rem;
flex-grow: 1;
}
.form-group {
/* GRUPO PRINCIPAL DE CAMPOS (GRID) */
.modal-fields-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem 2rem;
padding: 1.5rem 0;
}
.form-group { /* Agregado para consistencia con list.css */
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-group label {
font-size: 0.9rem;
font-weight: 600;
font-size: 0.8rem;
font-weight: 700;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.form-input {
background: var(--bg-base);
/* Ajustes de campos específicos */
.form-group.notes-group {
grid-column: 1 / span 2;
}
.form-group.checkbox-group {
grid-column: 3 / 4;
align-self: flex-end;
margin-bottom: 0.5rem;
flex-direction: row; /* Necesario para la checkbox en línea */
align-items: center;
justify-content: flex-end;
gap: 1rem;
}
.form-group.full-width {
grid-column: 1 / -1;
}
/* Date Input Styling */
.date-group {
display: flex;
gap: 1rem;
}
.date-input-pair {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
/* Input Styling dentro del modal */
.modal-content .form-input {
background: var(--bg-field); /* Fondo específico para campos */
border: 1px solid rgba(255,255,255,0.1);
color: var(--text-primary);
color: var(--text-primary); /* Asegura color del texto */
padding: 0.8rem 1rem;
border-radius: 8px;
font-family: inherit;
font-size: 1rem;
transition: 0.2s;
font-family: inherit; /* Asegura fuente consistente */
font-size: 1rem; /* Asegura tamaño de fuente */
transition: 0.2s; /* Asegura transiciones */
}
.form-input:focus {
outline: none;
.modal-content .form-input:focus {
border-color: var(--accent);
box-shadow: 0 0 10px rgba(139, 92, 246, 0.4); /* Usar el color acento */
box-shadow: 0 0 10px var(--accent-glow);
outline: none; /* Agregado */
}
.notes-textarea {
resize: vertical;
min-height: 100px;
}
/* Select Styling */
.modal-content select.form-input {
/* Reiniciar la apariencia por defecto para selects, si es necesario */
-webkit-appearance: menulist;
appearance: menulist;
}
/* Checkbox Styling */
.form-checkbox {
width: 18px;
height: 18px;
border: 1px solid rgba(255,255,255,0.2);
background: var(--bg-base);
border-radius: 4px;
cursor: pointer;
-webkit-appearance: none;
appearance: none;
position: relative;
transition: all 0.2s;
flex-shrink: 0;
}
.form-checkbox:checked {
background: var(--accent);
border-color: var(--accent);
}
.form-checkbox:checked::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 14px;
}
/* ACCIONES (Barra inferior pegajosa) */
.modal-actions {
display: flex;
gap: 1rem;
margin-top: 1rem;
margin-top: 0;
justify-content: flex-end;
flex-shrink: 0;
padding: 1rem 2rem;
border-top: 1px solid rgba(255,255,255,0.05);
background: var(--bg-amoled); /* Fondo para la barra sticky */
position: sticky;
bottom: 0;
z-index: 10;
}
.btn-modal-primary, .btn-modal-secondary, .btn-modal-danger {
/* Botones con nuevas clases para el modal */
.btn-primary, .btn-secondary, .btn-danger {
padding: 0.8rem 1.5rem;
border-radius: 999px;
font-weight: 700;
font-size: 0.95rem;
border: none;
cursor: pointer;
transition: transform 0.2s, opacity 0.2s;
flex: 1;
transition: transform 0.2s, background 0.2s;
flex: none;
}
.btn-modal-primary {
/* Re-estilizar btn-primary/secondary para el contexto del modal, pero manteniendo la base existente */
/* El .btn-primary global en book.css es blanco/negro, aquí es el color de acento/blanco para el modal */
.modal-actions .btn-primary { /* Asegura que el botón primario del modal use el color de acento */
background: var(--accent);
color: white;
}
.btn-modal-primary:hover {
.modal-actions .btn-primary:hover {
transform: scale(1.05);
/* No hace falta redefinir el hover */
}
.btn-modal-secondary {
.modal-actions .btn-secondary { /* Asegura que el botón secundario del modal use los estilos de blur */
background: rgba(255,255,255,0.1);
color: white;
border: 1px solid rgba(255,255,255,0.2);
}
.btn-modal-secondary:hover {
background: rgba(255,255,255,0.15);
.modal-actions .btn-secondary:hover {
background: rgba(255,255,255,0.15); /* Cambiado para ser coherente con list.css */
}
.btn-modal-danger {
background: #ef4444; /* Usar el color danger */
.btn-danger {
background: var(--danger);
color: white;
margin-right: auto; /* Para alinear a la izquierda */
}
.btn-modal-danger:hover {
.btn-danger:hover {
opacity: 0.9;
}
/* --- Media Queries (Ajuste del Modal) --- */
@media (max-width: 900px) {
.modal-content {
max-width: 95%;
}
.modal-fields-grid {
grid-template-columns: repeat(2, 1fr);
}
.form-group.notes-group {
grid-column: 1 / -1;
}
.form-group.checkbox-group {
grid-column: 1 / -1;
align-self: auto;
justify-content: flex-start;
}
.modal-actions {
padding: 1rem 1.5rem;
}
.modal-title, .modal-body {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
}
@media (max-width: 550px) {
.modal-content {
margin: 0.5rem;
width: auto;
}
.modal-fields-grid {
grid-template-columns: 1fr;
gap: 1rem;
padding-bottom: 0;
}
.date-group {
flex-direction: column;
gap: 1rem;
}
.form-group.notes-group,
.form-group.checkbox-group {
grid-column: auto;
}
.modal-actions {
flex-direction: column;
align-items: stretch;
}
.btn-danger {
margin-right: 0;
order: 3;
}
.btn-secondary {
order: 2;
}
.btn-primary {
order: 1;
}
}

View File

@@ -11,11 +11,14 @@
--nav-height: 80px;
--danger: #ef4444;
--success: #22c55e;
--bg-amoled: #0a0a0a;
--bg-field: #0e0e0f;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
margin: 0; /* Aseguramos que no haya margen en el body */
background-color: var(--bg-base);
color: var(--text-primary);
font-family: 'Inter', system-ui, sans-serif;
@@ -134,6 +137,7 @@ body {
.header-section {
margin-bottom: 3rem;
margin-top: 3rem;
}
.page-title {
@@ -161,12 +165,12 @@ body {
flex-direction: column;
gap: 0.5rem;
transition: transform 0.3s, box-shadow 0.3s;
box-shadow: 0 10px 30px rgba(0,0,0,0.3);
box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}
.stat-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 40px var(--accent-glow);
box-shadow: 0 15px 35px var(--accent-glow);
}
.stat-value {
@@ -181,15 +185,17 @@ body {
font-weight: 600;
}
/* --- Filtros mejorados --- */
.filters-section {
display: flex;
gap: 1rem;
gap: 1.5rem;
margin-bottom: 2rem;
padding: 1.5rem;
background: var(--bg-surface);
border-radius: var(--radius-md);
border: 1px solid rgba(255,255,255,0.05);
flex-wrap: wrap;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.filter-group {
@@ -201,11 +207,11 @@ body {
}
.filter-group label {
font-size: 0.85rem;
font-weight: 600;
font-size: 0.8rem;
font-weight: 700;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
letter-spacing: 1px;
}
.filter-select {
@@ -217,6 +223,13 @@ body {
font-family: inherit;
cursor: pointer;
transition: 0.2s;
-webkit-appearance: none;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23a1a1aa'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 0.7rem center;
background-size: 1.2em;
padding-right: 2.5rem;
}
.filter-select:hover {
@@ -299,46 +312,52 @@ body {
color: var(--text-primary);
}
/* --- Diseño de Lista (Grid/List View) mejorado --- */
.list-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1.5rem;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 2rem;
}
.list-grid.list-view {
grid-template-columns: 1fr;
gap: 1rem;
}
.list-item {
background: var(--bg-surface);
border: 1px solid rgba(255,255,255,0.1);
background: var(--bg-surface-hover);
border: 1px solid rgba(255,255,255,0.08);
border-radius: var(--radius-md);
overflow: hidden;
transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
display: flex;
flex-direction: column;
position: relative;
box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.list-item:hover {
transform: translateY(-5px);
transform: translateY(-8px);
border-color: var(--accent);
box-shadow: 0 10px 20px rgba(0,0,0,0.5);
box-shadow: 0 15px 30px var(--accent-glow);
}
.list-grid.list-view .list-item {
flex-direction: row;
align-items: center;
padding-right: 1rem;
transition: all 0.3s ease;
}
.list-grid.list-view .list-item:hover {
transform: translateX(5px);
transform: none;
box-shadow: 0 4px 20px var(--accent-glow);
}
.item-poster-link {
display: block;
cursor: pointer;
flex-shrink: 0;
}
.item-poster {
@@ -349,48 +368,60 @@ body {
}
.list-grid.list-view .item-poster {
width: 120px;
height: 180px;
width: 100px;
height: 150px;
aspect-ratio: auto;
border-radius: 8px;
margin: 1rem;
}
.item-content {
padding: 1rem;
padding: 1.2rem;
display: flex;
flex-direction: column;
flex-grow: 1;
}
.list-grid.list-view .item-content {
justify-content: space-between;
}
.list-grid.list-view .item-content {
padding: 1rem 0;
flex-direction: row;
align-items: center;
}
.list-grid.list-view .item-content > div:first-child {
flex-basis: 75%;
}
.item-title {
font-size: 1rem;
font-weight: 700;
font-size: 1.1rem;
font-weight: 800;
margin-bottom: 0.5rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: white;
}
.list-grid.list-view .item-title {
font-size: 1.3rem;
white-space: normal;
overflow: hidden;
text-overflow: ellipsis;
max-width: 400px;
}
.item-meta {
display: flex;
gap: 0.5rem;
gap: 0.75rem;
margin-bottom: 0.8rem;
flex-wrap: wrap;
}
.meta-pill {
font-size: 0.75rem;
padding: 0.3rem 0.7rem;
border-radius: 6px;
font-weight: 600;
font-size: 0.7rem;
padding: 0.25rem 0.6rem;
border-radius: 999px;
font-weight: 700;
white-space: nowrap;
text-transform: uppercase;
}
@@ -413,12 +444,26 @@ body {
border: 1px solid rgba(255, 255, 255, 0.2);
}
.repeat-pill {
background: rgba(59, 130, 246, 0.15);
color: #3b82f6;
border: 1px solid rgba(59, 130, 246, 0.3);
text-transform: none;
}
.private-pill {
background: rgba(251, 191, 36, 0.15);
color: #facc15;
border: 1px solid rgba(251, 191, 36, 0.3);
text-transform: none;
}
.progress-bar-container {
background: rgba(255,255,255,0.05);
background: rgba(255,255,255,0.08);
border-radius: 999px;
height: 8px;
height: 10px;
overflow: hidden;
margin-bottom: 0.5rem;
box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.progress-bar {
@@ -434,6 +479,7 @@ body {
display: flex;
justify-content: space-between;
align-items: center;
font-weight: 500;
}
.score-badge {
@@ -441,46 +487,86 @@ body {
align-items: center;
gap: 0.3rem;
font-weight: 700;
color: var(--success);
color: #facc15;
background: rgba(250, 204, 21, 0.1);
padding: 0.1rem 0.5rem;
border-radius: 4px;
}
.edit-btn-card {
background: var(--accent);
/* --- Botón de edición flotante --- */
.edit-icon-btn {
position: absolute;
top: 1rem;
right: 1rem;
z-index: 50;
background: rgba(18, 18, 21, 0.9);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
padding: 0.5rem 1rem;
border-radius: 999px;
font-weight: 700;
border: none;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
transition: transform 0.2s, background 0.2s;
margin-top: 1rem;
}
.edit-btn-card:hover {
background: #7c3aed;
transform: scale(1.03);
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s, transform 0.2s, background 0.2s;
}
.list-item:hover .edit-icon-btn {
opacity: 1;
transform: scale(1.05);
}
.edit-icon-btn:hover {
background: var(--accent);
border-color: var(--accent);
}
.list-grid.list-view .edit-icon-btn {
position: relative;
top: auto;
right: auto;
margin-left: auto;
opacity: 1;
transform: none;
background: var(--bg-surface);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.list-grid.list-view .list-item:hover .edit-icon-btn {
opacity: 1;
background: var(--accent);
border-color: var(--accent);
transform: none;
}
/* --- Modal de Edición Mejorado (Estilo Anilist + AMOLED) --- */
.modal-overlay {
position: fixed;
inset: 0;
background: rgba(0,0,0,0.8);
backdrop-filter: blur(8px);
background: rgba(0,0,0,0.9);
backdrop-filter: blur(10px);
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
padding: 2rem;
padding: 1rem;
}
.modal-content {
background: var(--bg-surface);
background: var(--bg-amoled);
border: 1px solid rgba(255,255,255,0.1);
border-radius: var(--radius-lg);
max-width: 500px;
width: 100%;
padding: 2rem;
max-width: 900px;
width: 95%;
padding: 0;
position: relative;
animation: modalSlideUp 0.3s ease;
box-shadow: 0 20px 50px rgba(0,0,0,0.8);
max-height: 90vh;
display: flex;
flex-direction: column;
}
@keyframes modalSlideUp {
@@ -510,6 +596,7 @@ body {
justify-content: center;
font-size: 1.2rem;
transition: 0.2s;
z-index: 2001;
}
.modal-close:hover {
@@ -519,14 +606,27 @@ body {
.modal-title {
font-size: 1.8rem;
font-weight: 900;
margin-bottom: 1.5rem;
font-weight: 800;
padding: 1.5rem 2rem 0.5rem;
margin-bottom: 0;
color: var(--text-primary);
border-bottom: 1px solid rgba(255,255,255,0.05);
}
.modal-body {
display: flex;
flex-direction: column;
gap: 1.5rem;
overflow-y: auto;
padding: 0 2rem;
flex-grow: 1;
}
/* GRUPO PRINCIPAL DE CAMPOS */
.modal-fields-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1.5rem 2rem;
padding: 1.5rem 0;
}
.form-group {
@@ -535,14 +635,30 @@ body {
gap: 0.5rem;
}
/* Column Span Overrides */
.form-group.notes-group {
grid-column: 1 / span 2;
}
.form-group.checkbox-group {
grid-column: 3 / 4;
align-self: flex-end;
margin-bottom: 0.5rem;
}
.form-group.full-width {
grid-column: 1 / -1;
}
.form-group label {
font-size: 0.9rem;
font-weight: 600;
font-size: 0.8rem;
font-weight: 700;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.form-input {
background: var(--bg-base);
background: var(--bg-field);
border: 1px solid rgba(255,255,255,0.1);
color: var(--text-primary);
padding: 0.8rem 1rem;
@@ -558,10 +674,73 @@ body {
box-shadow: 0 0 10px var(--accent-glow);
}
.notes-textarea {
resize: vertical;
min-height: 100px;
}
.date-group {
display: flex;
gap: 1rem;
}
/* CLAVE: Hace que la etiqueta de fecha esté encima del input */
.date-input-pair {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.checkbox-group {
flex-direction: row;
align-items: center;
gap: 1rem;
}
.form-checkbox {
width: 18px;
height: 18px;
border: 1px solid rgba(255,255,255,0.2);
background: var(--bg-base);
border-radius: 4px;
cursor: pointer;
-webkit-appearance: none;
appearance: none;
position: relative;
transition: all 0.2s;
flex-shrink: 0;
}
.form-checkbox:checked {
background: var(--accent);
border-color: var(--accent);
}
.form-checkbox:checked::after {
content: '✓';
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 14px;
}
/* ACCIONES (Barra inferior pegajosa) */
.modal-actions {
display: flex;
gap: 1rem;
margin-top: 1rem;
margin-top: 0;
justify-content: flex-end;
flex-shrink: 0;
padding: 1rem 2rem;
border-top: 1px solid rgba(255,255,255,0.05);
background: var(--bg-amoled);
position: sticky;
bottom: 0;
z-index: 10;
}
.btn-primary, .btn-secondary, .btn-danger {
@@ -571,8 +750,8 @@ body {
font-size: 0.95rem;
border: none;
cursor: pointer;
transition: transform 0.2s, opacity 0.2s;
flex: 1;
transition: transform 0.2s, background 0.2s;
flex: none;
}
.btn-primary {
@@ -597,6 +776,7 @@ body {
.btn-danger {
background: var(--danger);
color: white;
margin-right: auto;
}
.btn-danger:hover {
@@ -604,7 +784,6 @@ body {
}
.modal-overlay {
display: none;
opacity: 0;
}
@@ -613,65 +792,90 @@ body {
opacity: 1;
}
@media (max-width: 768px) {
.navbar {
padding: 0 1.5rem;
/* --- Media Queries (Responsive) --- */
@media (max-width: 900px) {
.modal-content {
max-width: 95%;
}
.container {
padding: 2rem 1.5rem;
}
.page-title {
font-size: 2rem;
}
.stats-row {
.modal-fields-grid {
grid-template-columns: repeat(2, 1fr);
}
.filters-section {
flex-direction: column;
.form-group.notes-group {
grid-column: 1 / -1;
}
.form-group.checkbox-group {
grid-column: 1 / -1;
align-self: auto;
}
.modal-actions {
padding: 1rem 1.5rem;
}
.modal-title, .modal-body {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
}
@media (max-width: 550px) {
/* Layout de lista (card view) */
.list-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 1.5rem;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.list-grid.list-view .list-item {
flex-direction: column;
align-items: flex-start;
padding-right: 0;
}
.list-grid.list-view .item-poster {
width: 100%;
height: auto;
margin: 0;
border-radius: 0;
aspect-ratio: 16/9;
}
.list-grid.list-view .item-content {
flex-direction: column;
padding: 1rem;
}
.list-grid.list-view .item-content > div:first-child {
flex-basis: auto;
}
.list-grid.list-view .edit-icon-btn {
position: absolute;
top: 1rem;
right: 1rem;
opacity: 1;
background: rgba(18, 18, 21, 0.8);
}
}
.edit-icon-btn {
position: absolute;
top: 1rem;
right: 1rem;
z-index: 50;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(5px);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
width: 36px;
height: 36px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.3s, background 0.2s;
}
.list-item:hover .edit-icon-btn {
opacity: 1;
}
.edit-icon-btn:hover {
background: var(--accent);
border-color: var(--accent);
/* Modal en móvil */
.modal-content {
margin: 0.5rem;
width: auto;
}
.modal-fields-grid {
grid-template-columns: 1fr;
gap: 1rem;
padding-bottom: 0;
}
.form-group.notes-group,
.form-group.checkbox-group {
grid-column: auto;
}
.modal-actions {
flex-direction: column;
align-items: stretch;
}
.btn-danger {
margin-right: 0;
order: 3;
}
.btn-secondary {
order: 2;
}
.btn-primary {
order: 1;
}
}
.edit-btn-card {