/**
 * @Project VINAFIS 4.x
 * @Author VINAFIS.ORG.VN <contact@vinafis.org.vn>
 * @Copyright (C) 2025 VINAFIS.ORG.VN
 * @Createdate 10/12/2025
 */
/* =================================================
   MODULE FISHS – CSS RIÊNG (ISOLATED)
   ================================================= */

.view-list-fish {
    width: 100%;
}

/* Reset ảnh trong fishs – chặn CSS global */
.view-list-fish img {
    max-width: none;
    height: auto;
}

/* ======================
   CARD
   ====================== */
.view-list-fish .card {
    border: 1px solid #eee;
    transition: all 0.3s ease;
    overflow: hidden;
}
.view-list-fish .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ======================
   IMAGE
   ====================== */
.view-list-fish .fishs-thumb {
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.view-list-fish .fishs-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;

    object-fit: contain !important;
    object-position: center;
    display: block;
}

/* ======================
   GROUP LINK
   ====================== */
.view-list-fish .fishs-group-link {
    display: block;
    padding: 10px;
    text-align: center;
    text-transform: uppercase;

    background-color: #1f9cf8;
    border: 1px solid #dee2e6;
    border-radius: 4px;

    text-decoration: none;
    color: #fff;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    transition: all 0.2s ease;
}
.view-list-fish .fishs-group-link:hover {
    background-color: #1687da;
    color: #fff;
}
.view-list-fish .fishs-group-link.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    font-weight: 600;
}

/* ======================
   RESPONSIVE
   ====================== */
@media (max-width: 767.98px) {
    .view-list-fish .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (max-width: 575.98px) {
    .view-list-fish .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* ===== ZOOM ẢNH CHI TIẾT ===== */
#fishs-zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: zoom-out;
}

#fishs-zoom-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    background: #fff;
    border-radius: 4px;
}

.fishs-zoom-img {
    cursor: zoom-in;
}

/* Caption */
#fishs-overlay .caption {
    color: #fff;
    margin-top: 10px;
    text-align: center;
}

.fish-lang-tabs {
    border: 1px solid #ddd;
}
.fish-lang-tabs .tab-title {
    text-align: center;
    font-weight: 600;
    padding: 8px;
    border-bottom: 1px solid #ddd;
    background: #f8f9fa;
}
.lang-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
.lang-tabs li {
    flex: 1;
    text-align: center;
    border-right: 1px solid #ddd;
}
.lang-tabs li:last-child {
    border-right: 0;
}
.lang-tabs li a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
}
.lang-tabs li.active a {
    background: #007bff;
    color: #fff;
    font-weight: 600;
}
/* ===== MÔ TẢ NGẮN ===== */
.fish-desc {
    font-style: italic;
    background: #f8f9fa;
    padding: 12px 15px;
    border-left: 4px solid #17a2b8;
    margin-bottom: 15px;
    color: #444;
}

/* ===== THÔNG TIN CHI TIẾT ===== */
.fish-content {
    line-height: 1.8;
    font-size: 15px;
    color: #222;
}

.fish-content h1,
.fish-content h2,
.fish-content h3 {
    margin-top: 20px;
    font-weight: 600;
}

.fish-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
}
