/* ============================================
   ANIME-LIST.CSS - Premium Design (Bigger)
   Larger Text • Bigger Covers • Better Readability
   ============================================ */

/* ============================================
   PAGE CONTAINER
   ============================================ */
#anime-list-page {
    padding: 0;
    margin: 0;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

/* ============================================
   ANIME LIST CONTAINER - Premium Card
   ============================================ */
.anime-list-container {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: all 0.3s ease;
}

.anime-list-container:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--border-hover);
}

/* ============================================
   ANIME LIST HEADER - Bigger
   ============================================ */
.anime-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 32px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 18px;
}

.anime-list-title h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-primary);
}

.anime-list-title h2 i {
    font-size: 1.5rem;
    color: var(--clr-primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 10px;
    border-radius: 12px;
}

/* ============================================
   ANIME FILTERS - Bigger
   ============================================ */
.anime-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.anime-filters select {
    padding: 10px 20px;
    padding-right: 40px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238B5CF6'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    min-width: 140px;
}

.anime-filters select:hover {
    border-color: var(--border-hover);
    background-color: var(--bg-hover);
}

.anime-filters select:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.anime-counter {
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.anime-counter i {
    font-size: 0.9rem;
}

/* ============================================
   TABLE CONTAINER
   ============================================ */
.table-container {
    overflow-x: auto;
    width: 100%;
    padding: 0;
}

/* ============================================
   ANIME TABLE - Bigger Design
   ============================================ */
.anime-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: 1rem;
}

/* Table Header - Bigger */
.anime-table thead tr {
    background: var(--bg-tertiary);
}

.anime-table th {
    padding: 18px 24px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
    text-align: left;
    white-space: nowrap;
    position: sticky;
    top: 0;
    background: var(--bg-tertiary);
    z-index: 5;
}

/* Table Rows - Bigger */
.anime-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    position: relative;
}

.anime-table tbody tr:hover {
    background: var(--bg-hover);
    transform: scale(1.003);
}

.anime-table tbody tr:last-child {
    border-bottom: none;
}

.anime-table td {
    padding: 18px 24px;
    color: var(--text-secondary);
    vertical-align: middle;
}

/* ============================================
   ANIME TITLE CELL - Bigger
   ============================================ */
.anime-title-cell {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 280px;
}

/* Bigger Cover Image */
.anime-table .anime-cover {
    width: 56px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.anime-table tbody tr:hover .anime-cover {
    transform: scale(1.05) rotate(1deg);
    border-color: var(--clr-primary);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.2);
}

/* Bigger Text */
.anime-table .anime-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
}

.anime-table .anime-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    transition: color 0.3s ease;
}

.anime-table tbody tr:hover .anime-title {
    color: var(--clr-primary);
}

/* Bigger Genres */
.anime-table .anime-genres {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.anime-table .anime-genres span {
    background: rgba(139, 92, 246, 0.08);
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.08);
}

/* ============================================
   TYPE BADGE - Bigger
   ============================================ */
.anime-table .anime-type {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #A78BFA;
    white-space: nowrap;
    border: 1px solid rgba(139, 92, 246, 0.12);
    transition: all 0.3s ease;
}

.anime-table tbody tr:hover .anime-type {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.25);
    transform: scale(1.02);
}

/* ============================================
   PROGRESS CELL - Bigger
   ============================================ */
.anime-table .progress-cell {
    min-width: 150px;
}

.progress-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.anime-table .progress-container {
    width: 120px;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.anime-table .progress-bar {
    height: 100%;
    border-radius: 30px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.anime-table .progress-bar {
    background: linear-gradient(90deg, #6366F1, #8B5CF6);
}

.anime-table .progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.anime-table .progress-wrapper small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   STATUS BADGES - Bigger
   ============================================ */
.anime-table .badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.anime-table tbody tr:hover .badge {
    transform: scale(1.02);
}

.badge-completed {
    background: rgba(16, 185, 129, 0.12);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-watching {
    background: rgba(99, 102, 241, 0.12);
    color: #A78BFA;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-plan {
    background: rgba(245, 158, 11, 0.12);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-dropped {
    background: rgba(239, 68, 68, 0.12);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ============================================
   SCORE BADGE - Bigger
   ============================================ */
.anime-table .anime-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 158, 11, 0.08);
    padding: 6px 18px;
    border-radius: 30px;
    color: #FBBF24;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    border: 1px solid rgba(245, 158, 11, 0.15);
    transition: all 0.3s ease;
}

.anime-table tbody tr:hover .anime-score {
    background: rgba(245, 158, 11, 0.15);
    transform: scale(1.02);
}

.anime-table .anime-score i {
    font-size: 0.8rem;
}

/* ============================================
   DATE CELL - Bigger
   ============================================ */
.anime-table .anime-date {
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.anime-table .anime-date i {
    color: #A78BFA;
    font-size: 0.8rem;
}

/* ============================================
   NO ANIME STATE
   ============================================ */
.anime-table .no-anime {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
    font-size: 1.05rem;
    grid-column: 1 / -1;
}

.anime-table .no-anime::before {
    content: '\f07c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    font-size: 3rem;
    display: block;
    margin-bottom: 16px;
    color: var(--clr-secondary);
    opacity: 0.3;
}

/* ============================================
   LIGHT THEME SUPPORT
   ============================================ */
[data-theme="light"] .anime-list-container {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .anime-list-header {
    background: #F8FAFC;
}

[data-theme="light"] .anime-filters select {
    background: #FFFFFF;
    border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .anime-filters select:hover {
    background: #F8FAFC;
}

[data-theme="light"] .anime-table thead tr {
    background: #F8FAFC;
}

[data-theme="light"] .anime-table th {
    color: #64748B;
}

[data-theme="light"] .anime-table tbody tr:hover {
    background: #F8FAFC;
}

[data-theme="light"] .badge-completed {
    background: rgba(16, 185, 129, 0.08);
}

[data-theme="light"] .badge-watching {
    background: rgba(99, 102, 241, 0.08);
}

[data-theme="light"] .badge-plan {
    background: rgba(245, 158, 11, 0.08);
}

[data-theme="light"] .badge-dropped {
    background: rgba(239, 68, 68, 0.08);
}

[data-theme="light"] .anime-table .anime-genres span {
    background: rgba(99, 102, 241, 0.06);
}

/* ============================================
   RESPONSIVE - All Sizes
   ============================================ */
@media (max-width: 1024px) {
    .anime-list-header {
        padding: 22px 24px;
        flex-direction: column;
        align-items: stretch;
    }
    
    .anime-list-title h2 {
        font-size: 1.4rem;
    }
    
    .anime-filters {
        flex-wrap: wrap;
        width: 100%;
    }
    
    .anime-filters select {
        flex: 1;
        min-width: 120px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .anime-counter {
        flex: 1;
        justify-content: center;
        padding: 8px 18px;
        font-size: 0.85rem;
    }
    
    .anime-table {
        min-width: 700px;
        font-size: 0.9rem;
    }
    
    .anime-table th,
    .anime-table td {
        padding: 14px 18px;
    }
    
    .anime-table .anime-cover {
        width: 48px;
        height: 68px;
    }
    
    .anime-table .anime-title {
        font-size: 0.95rem;
        max-width: 180px;
    }
    
    .anime-title-cell {
        min-width: 240px;
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .anime-list-title h2 {
        font-size: 1.2rem;
    }
    
    .anime-list-title h2 i {
        font-size: 1.1rem;
        padding: 8px;
    }
    
    .anime-filters select {
        padding: 8px 14px;
        font-size: 0.8rem;
        min-width: 100px;
        padding-right: 32px;
        background-size: 16px;
    }
    
    .anime-counter {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    
    .anime-table {
        min-width: 650px;
        font-size: 0.85rem;
    }
    
    .anime-table th,
    .anime-table td {
        padding: 12px 14px;
    }
    
    .anime-table .anime-cover {
        width: 42px;
        height: 60px;
    }
    
    .anime-table .anime-title {
        max-width: 150px;
        font-size: 0.9rem;
    }
    
    .anime-title-cell {
        min-width: 200px;
        gap: 12px;
    }
    
    .anime-table .progress-container {
        width: 90px;
        height: 6px;
    }
    
    .anime-table .anime-type {
        font-size: 0.7rem;
        padding: 4px 14px;
    }
    
    .anime-table .badge {
        font-size: 0.7rem;
        padding: 4px 14px;
    }
    
    .anime-table .anime-score {
        font-size: 0.8rem;
        padding: 4px 14px;
    }
    
    .anime-table .anime-date {
        font-size: 0.75rem;
    }
    
    .anime-table .anime-genres {
        font-size: 0.65rem;
        max-width: 160px;
    }
}

@media (max-width: 480px) {
    .anime-list-header {
        padding: 16px 14px;
    }
    
    .anime-list-title h2 {
        font-size: 1rem;
    }
    
    .anime-list-title h2 i {
        font-size: 0.95rem;
        padding: 6px;
    }
    
    .anime-filters {
        flex-direction: column;
        gap: 8px;
    }
    
    .anime-filters select {
        width: 100%;
        min-width: auto;
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    
    .anime-counter {
        width: 100%;
        justify-content: center;
        padding: 8px 14px;
        font-size: 0.75rem;
    }
    
    .anime-table {
        min-width: 550px;
        font-size: 0.75rem;
    }
    
    .anime-table th,
    .anime-table td {
        padding: 10px 10px;
    }
    
    .anime-table .anime-cover {
        width: 34px;
        height: 48px;
        border-radius: 6px;
    }
    
    .anime-table .anime-title {
        max-width: 100px;
        font-size: 0.75rem;
    }
    
    .anime-title-cell {
        min-width: 150px;
        gap: 10px;
    }
    
    .anime-table .anime-type {
        font-size: 0.6rem;
        padding: 3px 10px;
    }
    
    .anime-table .badge {
        font-size: 0.55rem;
        padding: 3px 10px;
        letter-spacing: 0.5px;
    }
    
    .anime-table .anime-score {
        font-size: 0.7rem;
        padding: 3px 10px;
        gap: 4px;
    }
    
    .anime-table .anime-score i {
        font-size: 0.6rem;
    }
    
    .anime-table .anime-date {
        font-size: 0.6rem;
        gap: 4px;
    }
    
    .anime-table .anime-date i {
        font-size: 0.6rem;
    }
    
    .anime-table .progress-container {
        width: 60px;
        height: 5px;
    }
    
    .anime-table .progress-wrapper small {
        font-size: 0.6rem;
    }
    
    .anime-table .anime-genres {
        font-size: 0.55rem;
        max-width: 100px;
    }
    
    .anime-table .anime-genres span {
        padding: 1px 8px;
        font-size: 0.5rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .anime-table tbody tr,
    .anime-table .anime-cover,
    .anime-table .progress-bar::after,
    .anime-filters select {
        animation: none !important;
        transition: none !important;
    }
    
    .anime-table tbody tr:hover {
        transform: none !important;
    }
}

