/**
 * Estilos CSS para compatibilidad con el tema EastManga
 * NTRGod Reader Plugin
 */

/* === CONTENEDOR PRINCIPAL === */
.ntrgod-reader-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* === CARDS DE MANGA ESTILO EASTMANGA === */
.ntrgod-manga-item .manga-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 20px;
}

.ntrgod-manga-item .manga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.ntrgod-manga-item .card-thumb {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.ntrgod-manga-item .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ntrgod-manga-item .card-thumb:hover img {
    transform: scale(1.05);
}

/* === OVERLAY === */
.ntrgod-manga-item .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 15px;
}

.ntrgod-manga-item .card-thumb:hover .card-overlay {
    opacity: 1;
}

.ntrgod-manga-item .overlay-content {
    color: white;
}

.ntrgod-manga-item .manga-type {
    background: #007bff !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-right: 5px;
}

.ntrgod-manga-item .manga-score {
    color: #ffc107;
    font-weight: bold;
    margin-top: 5px;
}

/* === BADGES DE ESTADO === */
.ntrgod-manga-item .status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}

.ntrgod-manga-item .status-badge.badge-ongoing,
.ntrgod-manga-item .status-badge.badge-publishing {
    background: #28a745;
}

.ntrgod-manga-item .status-badge.badge-completed,
.ntrgod-manga-item .status-badge.badge-finished {
    background: #007bff;
}

.ntrgod-manga-item .status-badge.badge-hiatus {
    background: #ffc107;
    color: #333;
}

.ntrgod-manga-item .status-badge.badge-cancelled {
    background: #dc3545;
}

/* === CONTENIDO DE LA CARD === */
.ntrgod-manga-item .card-body {
    padding: 15px;
}

.ntrgod-manga-item .manga-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.ntrgod-manga-item .manga-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ntrgod-manga-item .manga-title a:hover {
    color: #007bff;
}

.ntrgod-manga-item .manga-chapters {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.ntrgod-manga-item .manga-actions {
    display: flex;
    gap: 8px;
}

.ntrgod-manga-item .btn {
    border-radius: 4px;
    font-size: 0.85em;
    padding: 6px 12px;
    border: none;
    transition: all 0.3s ease;
}

.ntrgod-manga-item .btn-primary {
    background: #007bff;
}

.ntrgod-manga-item .btn-primary:hover {
    background: #0056b3;
}

.ntrgod-manga-item .btn-success {
    background: #28a745;
}

.ntrgod-manga-item .btn-success:hover {
    background: #1e7e34;
}

/* === ESTILO LISTA === */
.ntrgod-manga-item.manga-list-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.ntrgod-manga-item.manga-list-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.ntrgod-manga-item .manga-thumb {
    height: 120px;
    overflow: hidden;
    border-radius: 6px;
}

.ntrgod-manga-item .manga-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ntrgod-manga-item .manga-info {
    padding-left: 20px;
}

.ntrgod-manga-item .manga-meta {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ntrgod-manga-item .manga-meta .badge {
    font-size: 0.75em;
    padding: 4px 8px;
}

.ntrgod-manga-item .manga-synopsis {
    color: #666;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 10px 0;
}

/* === PLACEHOLDER SIN IMAGEN === */
.ntrgod-manga-item .no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    width: 100%;
    height: 100%;
}

/* === TABS DE NAVEGACIÓN === */
.ntrgod-reader-tabs {
    border-bottom: 2px solid #dee2e6;
}

.ntrgod-reader-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    transition: all 0.3s ease;
}

.ntrgod-reader-tabs .nav-link:hover {
    color: #007bff;
    border-bottom-color: #007bff;
}

.ntrgod-reader-tabs .nav-link.active {
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

/* === OPCIONES DE VISTA === */
.ntrgod-view-options .btn-group .btn {
    border-radius: 4px;
    margin-left: 2px;
}

.ntrgod-view-options .btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* === BARRA DE BÚSQUEDA === */
.ntrgod-search-container .input-group {
    max-width: 500px;
    margin: 0 auto;
}

.ntrgod-search-container .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
    padding: 12px 20px;
}

.ntrgod-search-container .btn {
    border-radius: 0 25px 25px 0;
    padding: 12px 25px;
}

/* === RESULTADOS === */
.ntrgod-results-container {
    min-height: 300px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .ntrgod-manga-item .manga-info {
        padding-left: 0;
        margin-top: 15px;
    }
    
    .ntrgod-manga-item .card-thumb {
        height: 200px;
    }
    
    .ntrgod-reader-tabs .nav-link {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    
    .ntrgod-view-options {
        text-align: center !important;
        margin-bottom: 20px;
    }
}

@media (max-width: 576px) {
    .ntrgod-reader-container {
        padding: 10px;
    }
    
    .ntrgod-manga-item .manga-actions {
        flex-direction: column;
    }
    
    .ntrgod-manga-item .btn {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* === ANIMACIONES === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ntrgod-manga-item {
    animation: fadeInUp 0.5s ease forwards;
}

/* === LOADING SPINNER === */
.ntrgod-loading {
    text-align: center;
    padding: 40px;
}

.ntrgod-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* === MENSAJES DE ERROR === */
.ntrgod-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.ntrgod-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

/* === COMPATIBILIDAD CON TEMA OSCURO === */
@media (prefers-color-scheme: dark) {
    .ntrgod-manga-item .manga-card {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .ntrgod-manga-item .manga-title a {
        color: #e2e8f0;
    }
    
    .ntrgod-manga-item .manga-title a:hover {
        color: #63b3ed;
    }
    
    .ntrgod-manga-item .manga-chapters {
        color: #a0aec0;
    }
}
