/*
Theme Name: Gamxo Child Theme
Template: gamxo
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;700;800;900&display=swap');

/* GLOBAL STYLES */
html, body {
    background-color: #0f1115 !important;
    color: #e2e8f0;
    overflow-x: hidden;
}

/* Fix Fonts */
body, p, span, div, a, input, button { font-family: 'Inter', sans-serif !important; }
h1, h2, h3, h4, h5, h6, .font-bold { font-family: 'Montserrat', sans-serif !important; }

/* HIDE THEME JUNK */
.entry-banner, #preloader { display: none !important; }
#page, #content, .site-content { background: transparent !important; }

/* SEARCH OVERLAY CUSTOM */
.header-search {
    position: fixed; top: -100%; left: 0; width: 100%; height: 100%;
    background: rgba(15, 20, 25, 0.98); z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.5s ease-in-out; opacity: 0;
}
.header-search.open { top: 0; opacity: 1; }
.header-search .close { position: absolute; top: 30px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; background: none; border: none; }
.header-search-form input { background: transparent; border: none; border-bottom: 3px solid #d4af37; color: #fff; font-size: 30px; width: 300px; text-align: center; outline: none; }


/* ==========================================================================
   FIX SEARCH OVERLAY: HIỂN THỊ CHỮ TRẮNG RÕ RÀNG
   ========================================================================== */
.header-search {
    position: fixed; top: -100%; left: 0; width: 100%; height: 100%;
    background: rgba(10, 12, 16, 0.98); /* Nền đen sâu */
    z-index: 100000;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: all 0.6s cubic-bezier(0.77, 0, 0.175, 1); 
    opacity: 0;
    backdrop-filter: blur(20px);
}
.header-search.open { top: 0; opacity: 1; }

.header-search .close { 
    position: absolute; top: 40px; right: 40px; 
    color: #fff; font-size: 40px; cursor: pointer; 
    background: none; border: none; opacity: 0.5; transition: opacity 0.3s;
}
.header-search .close:hover { opacity: 1; color: #d4af37; }

/* FIX LỖI GÕ CHỮ KHÔNG THẤY GÌ */
.header-search-form input { 
    background: transparent !important; 
    border: none !important; 
    border-bottom: 2px solid rgba(212, 175, 55, 0.3) !important; 
    color: #ffffff !important; /* ÉP CHỮ MÀU TRẮNG */
    font-size: 40px !important; 
    width: 80% !important; 
    max-width: 600px;
    text-align: center !important; 
    outline: none !important;
    padding: 20px 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 200;
    caret-color: #d4af37; /* Con trỏ nhấp nháy màu vàng */
}

/* Màu của dòng chữ gợi ý "Bạn muốn tìm gì..." */
.header-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.2) !important;
}

/* Hiệu ứng khi đang gõ */
.header-search-form input:focus {
    border-bottom-color: #d4af37 !important;
}

/* ==========================================================
   TÙY CHỈNH NỘI DUNG BÀI VIẾT (WUWA CONTENT RENDER)
========================================================== */
.wuwa-content-render {
    color: #ffffff;
    line-height: 1.7;
    font-size: 1rem;
}

/* Các thẻ văn bản cơ bản */
.wuwa-content-render p {
    margin-bottom: 1.25rem;
}

.wuwa-content-render strong, 
.wuwa-content-render b {
    color: var(--elem-color, #ffd66b) !important; /* Tự động bắt màu Hệ của nhân vật */
    font-weight: 800 !important;
    text-shadow: 0 0 10px var(--elem-color, rgba(255, 214, 107, 0.4)); /* Thêm hiệu ứng phát sáng nhẹ */
    background: rgba(255, 255, 255, 0.05); /* Nền mờ giúp chữ nổi hơn */
    padding: 0 4px;
    border-radius: 4px;
}

/* Heading 2 - Style khối box với viền trái theo màu Hệ */
.wuwa-content-render h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, transparent 100%);
    border-left: 4px solid var(--elem-color, #ffffff); /* Tự động nhận màu hệ */
    border-radius: 0 8px 8px 0;
}

/* Heading 3 - Chữ màu theo màu Hệ */
.wuwa-content-render h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--elem-color, #ffffff); /* Tự động nhận màu hệ */
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #2a2d35;
    padding-bottom: 0.5rem;
}

.wuwa-content-render h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Danh sách (Lists) */
.wuwa-content-render ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.wuwa-content-render ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.wuwa-content-render ul li, 
.wuwa-content-render ol li {
    margin-bottom: 0.5rem;
}

/* Đổi màu dấu chấm của thẻ ul thành màu của Hệ */
.wuwa-content-render ul li::marker {
    color: var(--elem-color, #ffffff);
}

/* Hình ảnh */
.wuwa-content-render img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem auto;
    display: block;
}

/* Bảng (Tables) - Phong cách Dark Theme Prydwen */
.wuwa-content-render table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    border-radius: 8px;
    overflow: hidden;
}

.wuwa-content-render th, 
.wuwa-content-render td {
    border: 1px solid #2a2d35;
    padding: 0.75rem 1rem;
    text-align: left;
}

.wuwa-content-render th {
    background-color: #16191e;
    color: var(--elem-color, #ffffff);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.wuwa-content-render tr:nth-child(even) {
    background-color: rgba(255,255,255,0.02);
}

/* Liên kết (Links) */
.wuwa-content-render a {
    color: var(--elem-color, #3b82f6);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.wuwa-content-render a:hover {
    text-decoration: underline;
    opacity: 0.8;
}


/* CSS*/
/* ==========================================================
   GIAO DIỆN DARK MODE CHO TRANG CHI TIẾT TIN TỨC
========================================================== */
/* ==========================================================
   CHỨC NĂNG BẬT/TẮT DARK MODE TOÀN TRANG (GLOBAL)
========================================================== */

/* ---------------------------------------------------
   A. KHI Ở CHẾ ĐỘ LIGHT MODE (MENU TRẮNG, NỀN SÁNG)
--------------------------------------------------- */
/* Ép thanh Header thành màu trắng (Ghi đè Tailwind HTML) */
body:not(.is-dark-mode) #masthead {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid #e5e7eb !important;
}
body:not(.is-dark-mode) #masthead .text-white\/70,
body:not(.is-dark-mode) #masthead .text-white,
body:not(.is-dark-mode) #masthead button {
    color: #1e293b !important; /* Chữ menu màu xám đen */
}
body:not(.is-dark-mode) #masthead a:hover,
body:not(.is-dark-mode) #masthead button:hover,
body:not(.is-dark-mode) #masthead .nav-active {
    color: #d4af37 !important; /* Vẫn giữ hover màu vàng */
    text-shadow: none !important;
}
/* Menu Mobile trên Light Mode */
body:not(.is-dark-mode) #mobile-menu-container {
    background-color: #ffffff !important;
    border-top: 1px solid #e5e7eb !important;
}
body:not(.is-dark-mode) #mobile-menu-container a.text-white\/80 {
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* ---------------------------------------------------
   B. KHI BẬT DARK MODE (.is-dark-mode)
--------------------------------------------------- */

/* 1. Nền toàn trang */
body.is-dark-mode,
body.is-dark-mode #primary,
body.is-dark-mode .site-main,
body.is-dark-mode .main-wrap,
body.is-dark-mode #contentHolder,
body.is-dark-mode .post-detail-style2 {
    background-color: #0f1115 !important;
    color: #e2e8f0 !important;
}

/* 2. Đổi toàn bộ chữ thành trắng */
body.is-dark-mode .entry-title,
body.is-dark-mode .entry-title.title-dark-color, 
body.is-dark-mode .entry-content,
body.is-dark-mode .entry-content p,
body.is-dark-mode .entry-content h1,
body.is-dark-mode .entry-content h2,
body.is-dark-mode .entry-content h3,
body.is-dark-mode .entry-content h4,
body.is-dark-mode .entry-content h5,
body.is-dark-mode .entry-content h6,
body.is-dark-mode .entry-content span,
body.is-dark-mode .entry-content li {
    color: #ffffff !important;
}

/* 3. Text phụ (Điều hướng, ngày tháng) */
body.is-dark-mode .entry-meta,
body.is-dark-mode .entry-meta li,
body.is-dark-mode .entry-meta li a,
body.is-dark-mode .gamxo-custom-breadcrumb a,
body.is-dark-mode .gamxo-custom-breadcrumb span.separator {
    color: #cccccc !important;
}
body.is-dark-mode .gamxo-custom-breadcrumb span.last {
    color: #ff6600 !important;
}

/* 4. Widget Upcoming Games, Related Posts, Tác giả */
body.is-dark-mode .about-author,
body.is-dark-mode .related-post,
body.is-dark-mode .rt-news-box-widget {
    background-color: #161920 !important;
    color: #ffffff !important;
    border: 1px solid #2a2d35 !important;
}
body.is-dark-mode .rt-news-box-widget .entry-title a,
body.is-dark-mode .author-title a,
body.is-dark-mode .author-designation,
body.is-dark-mode .author-bio {
    color: #ffffff !important;
}
body.is-dark-mode .rt-news-box-widget .entry-meta,
body.is-dark-mode .rt-news-box-widget .entry-meta i {
    color: #aaaaaa !important;
}
body.is-dark-mode .rt-news-box-widget .entry-cat a {
    background-color: #0f1115 !important;
    color: #d4af37 !important; 
    border: 1px solid #2a2d35 !important;
}

/* Xóa viền đỏ sến của Widget Title */
body.is-dark-mode .rt-widget-title-holder {
    background: transparent !important;
    border-bottom: 2px solid #2a2d35 !important;
    padding-bottom: 12px !important;
    margin-bottom: 20px !important;
}
body.is-dark-mode .rt-widget-title-holder .widgettitle { color: #ffffff !important; }
body.is-dark-mode .rt-widget-title-holder::before,
body.is-dark-mode .rt-widget-title-holder::after,
body.is-dark-mode .rt-widget-title-holder .widgettitle::before,
body.is-dark-mode .rt-widget-title-holder .widgettitle::after {
    display: none !important;
}

/* 5. Mục lục EZ-TOC */
body.is-dark-mode div#ez-toc-widget-container {
    background-color: #161920 !important;
    border: 1px solid #2a2d35 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6) !important;
}
body.is-dark-mode div#ez-toc-widget-container .ez-toc-title,
body.is-dark-mode #ezw_tco-2 .ez-toc-title { color: #ffffff !important; }
body.is-dark-mode div#ez-toc-widget-container ul.ez-toc-list > li > a,
body.is-dark-mode div#ez-toc-widget-container ul.ez-toc-list li a span.ez-toc-section { color: #cccccc !important; }
body.is-dark-mode div#ez-toc-widget-container ul.ez-toc-list ul li > a { color: #999999 !important; }
body.is-dark-mode div#ez-toc-widget-container ul.ez-toc-list li.active { background-color: #0f1115 !important; }
body.is-dark-mode #ezw_tco-2 .ez-toc-widget-container ul.ez-toc-list li.active > a { color: #d4af37 !important; }

/* 6. Form Comment và Tìm Kiếm */
body.is-dark-mode .comments-area {
    background-color: #161920 !important;
    border: 1px solid #2a2d35 !important;
    border-radius: 8px;
    padding: 30px !important;
}
body.is-dark-mode .comments-title,
body.is-dark-mode .comment-reply-title,
body.is-dark-mode .comment-author-name a,
body.is-dark-mode .comment-content { color: #ffffff !important; }
body.is-dark-mode .comment-meta,
body.is-dark-mode .comment-text p { color: #cccccc !important; }

body.is-dark-mode .widget_search .search-query.form-control,
body.is-dark-mode .comment-form input[type="text"],
body.is-dark-mode .comment-form input[type="email"],
body.is-dark-mode .comment-form input[type="url"],
body.is-dark-mode .comment-form textarea {
    background-color: #0f1115 !important;
    color: #ffffff !important;
    border: 1px solid #2a2d35 !important;
    border-radius: 6px !important;
}
body.is-dark-mode .widget_search .search-query.form-control::placeholder,
body.is-dark-mode .comment-form input::placeholder,
body.is-dark-mode .comment-form textarea::placeholder {
    color: #888888 !important;
}
body.is-dark-mode .widget_search .btn,
body.is-dark-mode .comment-form input[type="submit"] {
    background-color: #d4af37 !important;
    color: #000000 !important;
    border: none !important;
}

/* 7. Màu sắc Link & Sửa lỗi tiêu đề Gradient */
body.is-dark-mode .entry-content a { color: #d4af37 !important; text-decoration: underline; }
body.is-dark-mode .entry-content a:hover { color: #ffffff !important; }
body.is-dark-mode { --title_dark_color: #ffffff !important; --title_light_color: #ffffff !important; }
body.is-dark-mode .entry-header .entry-title,
body.is-dark-mode .entry-title.title-dark-color,
body.is-dark-mode .entry-content h1, body.is-dark-mode .entry-content h2,
body.is-dark-mode .entry-content h3, body.is-dark-mode .entry-content h4,
body.is-dark-mode .entry-content h5, body.is-dark-mode .entry-content h6 {
    background-image: none !important;
    -webkit-text-fill-color: #ffffff !important;
    background: transparent !important;
}



/* ==========================================================
   WUTHERING WAVES WEAPONS ARCHIVE (WUTHERING.GG CLONE)
========================================================== */

/* Lưới hiển thị danh sách vũ khí */
.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    padding: 0;
    list-style: none;
    margin: 0;
}
@media (min-width: 768px) {
    .weapons-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
}

/* Thẻ Card Vũ khí */
.weapon-item .weapon {
    display: flex;
    flex-direction: column;
    background-color: #1a1c23; /* Nền card đen nhám */
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    border: 1px solid #2a2d35;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.weapon-item .weapon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--q-color); /* Phát sáng viền theo độ hiếm */
}

/* Hình ảnh vũ khí có Gradient phía sau tùy độ hiếm */
.weapon-item .image {
    background: radial-gradient(circle at bottom, rgba(255,255,255,0.1) 0%, transparent 70%), linear-gradient(to top, var(--q-color) 0%, #1a1c23 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    border-bottom: 2px solid var(--q-color);
}
.weapon-item .image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

/* Tên vũ khí */
.weapon-item .name {
    color: #ffffff;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', sans-serif;
}

/* CÁC BIẾN MÀU THEO ĐỘ HIẾM (RARITY COLORS) */
.weapon.quality5 { --q-color: #ffd66b; } /* 5 Sao: Vàng */
.weapon.quality4 { --q-color: #c288f0; } /* 4 Sao: Tím */
.weapon.quality3 { --q-color: #55bdfb; } /* 3 Sao: Xanh dương */
.weapon.quality2 { --q-color: #8ce46a; } /* 2 Sao: Xanh lá */
.weapon.quality1 { --q-color: #b0b4b8; } /* 1 Sao: Xám */

/* Fix lại thanh cuộn của dropdown trên PC */
.quality-filter select, .weapon-type select {
    appearance: auto;
}

/* ==========================================================
   WUTHERING WAVES WEAPONS ARCHIVE
========================================================== */
.weapons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    padding: 0;
    list-style: none;
    margin: 0;
}
@media (min-width: 768px) {
    .weapons-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 20px;
    }
}

.weapon-item .weapon {
    display: flex;
    flex-direction: column;
    background-color: #1a1c23;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    border: 1px solid #2a2d35;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.weapon-item .weapon:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--q-color); 
}

.weapon-item .image {
    background: radial-gradient(circle at bottom, rgba(255,255,255,0.15) 0%, transparent 70%), linear-gradient(to top, var(--q-color) 0%, #1a1c23 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1;
    border-bottom: 2px solid var(--q-color);
}
.weapon-item .image img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.weapon-item .name {
    color: #ffffff;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Inter', sans-serif;
}

/* Biến màu theo độ hiếm */
.weapon.quality5 { --q-color: #ffd66b; } 
.weapon.quality4 { --q-color: #c288f0; } 
.weapon.quality3 { --q-color: #55bdfb; } 
.weapon.quality2 { --q-color: #8ce46a; } 
.weapon.quality1 { --q-color: #b0b4b8; } 

.quality-filter select, .weapon-type select {
    appearance: auto;
}


/* ==========================================================
   SINGLE WEAPON PAGE (WUTHERING.GG CLONE)
========================================================== */

/* 1. Layout tổng thể Weapon Card */
.wuwa-single-weapon .weapon-card {
    display: grid;
    grid-template-columns: 1fr; /* Mobile 1 cột */
    gap: 30px;
    background: #1a1c23;
    border: 1px solid #2a2d35;
    border-radius: 12px;
    padding: 24px;
    color: #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
@media (min-width: 992px) {
    .wuwa-single-weapon .weapon-card {
        grid-template-columns: 350px 1fr; /* Desktop chia 2 cột: Trái nhỏ, Phải lớn */
    }
}

/* Biến màu theo độ hiếm */
.wuwa-single-weapon .weapon-card.quality5 { --q-color: #ffd66b; }
.wuwa-single-weapon .weapon-card.quality4 { --q-color: #c288f0; }
.wuwa-single-weapon .weapon-card.quality3 { --q-color: #55bdfb; }
.wuwa-single-weapon .weapon-card.quality2 { --q-color: #8ce46a; }
.wuwa-single-weapon .weapon-card.quality1 { --q-color: #b0b4b8; }

/* ================== CỘT TRÁI ================== */
.wuwa-single-weapon .left .top {
    background: #0f1115;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #2a2d35;
    margin-bottom: 20px;
}
/* Hiệu ứng nền toả sáng cho vũ khí */
.wuwa-single-weapon .left .image {
    background: radial-gradient(circle at bottom, rgba(255,255,255,0.15) 0%, transparent 70%), linear-gradient(to top, var(--q-color) 0%, #1a1c23 100%);
    padding: 40px;
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--q-color);
}
.wuwa-single-weapon .left .image img { 
    max-width: 140px; 
    filter: drop-shadow(0 15px 20px rgba(0,0,0,0.6)); 
}

/* Chỉ số ATK */
.wuwa-single-weapon .left .stats { padding: 20px; }
.wuwa-single-weapon .left .stats h1 { font-size: 22px; color: #fff; margin-bottom: 20px; font-weight: 800; font-family: 'Montserrat', sans-serif;}
.wuwa-single-weapon .left .stats .item, 
.wuwa-single-weapon .level .values {
    display: flex; 
    justify-content: space-between;
    background: #1a1c23; 
    padding: 12px 16px;
    border-radius: 6px; 
    margin-bottom: 8px;
    font-weight: 600; 
    border: 1px solid #2a2d35;
    font-size: 14px;
}
.wuwa-single-weapon .left .stats .value, 
.wuwa-single-weapon .level .value { 
    color: var(--q-color); 
}

/* Ascension Materials */
.wuwa-single-weapon .ascension { margin-top: 24px; }
.wuwa-single-weapon .ascension .top-h2 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.wuwa-single-weapon .ascension h2 { font-size: 18px; color: #fff; margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.wuwa-single-weapon .ascension span { color: #888; font-size: 13px; }
.wuwa-single-weapon .ascension .list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0; }
.wuwa-single-weapon .ascension .consume {
    background: #0f1115; border: 1px solid #2a2d35; border-radius: 8px;
    text-align: center; padding: 12px 6px;
}
.wuwa-single-weapon .ascension .consume img { width: 40px; height: 40px; margin: 0 auto 8px; object-fit: cover; }
.wuwa-single-weapon .ascension .consume .name { font-size: 11px; color: #aaa; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wuwa-single-weapon .ascension .consume .cost { font-size: 13px; color: #fff; font-weight: bold; }

/* ================== CỘT PHẢI ================== */
.wuwa-single-weapon .right .wrapper { margin-bottom: 30px; }
.wuwa-single-weapon .right h2 { 
    font-size: 20px; 
    color: #fff; 
    margin-bottom: 16px; 
    padding-bottom: 8px; 
    border-bottom: 1px solid #2a2d35; 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700;
}
.wuwa-single-weapon .right .about { 
    background: #0f1115; 
    border: 1px solid #2a2d35; 
    border-radius: 8px; 
    padding: 24px; 
}
.wuwa-single-weapon .right .ability h3 { 
    color: var(--q-color); 
    font-size: 18px; 
    margin-bottom: 15px; 
    font-weight: 700;
}
.wuwa-single-weapon .right .container p { color: #cccccc; line-height: 1.7; margin-bottom: 0; }
/* Đổi màu chữ highlight trong mô tả skill giống wuthering.gg */
.wuwa-single-weapon .right .container span { color: #ffd66b; font-weight: bold; }



/* ==========================================================
   TRANG DANH SÁCH NGUYÊN LIỆU (ITEMS ARCHIVE)
========================================================== */
.items-table {
    width: 100%;
    border-collapse: collapse;
    background: #2a2d3e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.items-table th {
    background: #1e1e24;
    color: #888;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #3d3b5a;
}

.items-table td {
    padding: 15px;
    border-bottom: 1px solid #3d3b5a;
    vertical-align: middle;
}

.items-table tr:hover {
    background: #3d3b5a;
}

/* Cột Thông tin tên */
.items-table .name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}
.items-table .subtypes {
    font-size: 12px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cột Mô tả */
.items-table .description {
    color: #cbd5e0;
    font-size: 14px;
    line-height: 1.6;
}

/* Bảng Màu sắc theo Độ hiếm (Rarity) */
.quality5 { color: #ffd66b !important; } /* Vàng */
.quality4 { color: #d194ff !important; } /* Tím */
.quality3 { color: #61d3ff !important; } /* Xanh biển */
.quality2 { color: #52eec4 !important; } /* Xanh lá */
.quality1 { color: #ffffff !important; } /* Trắng */

/* Phân trang (Pagination) */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
}
.pagination a, .pagination span {
    background: #2e2d44;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    padding: 8px 15px;
    text-decoration: none;
    transition: 0.2s;
}
.pagination a:hover {
    background: #3d3b5a;
}
.pagination .current {
    background: #5b57a6;
    border-color: #5b57a6;
    font-weight: 700;
}
/* ==========================================================
   TÙY CHỈNH THANH SEARCH VÀ MENU LỌC NGUYÊN LIỆU
========================================================== */
.filters-container {
    background: #2a2d3e;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.search-box label {
    color: #a0aec0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}
.search-box input {
    flex: 1;
    max-width: 400px;
    background: #1e1e24;
    border: 1px solid #41455f;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}
.search-box input:focus {
    border-color: var(--q-color, #ffd66b);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 214, 107, 0.1);
}

/* Menu Loại Vật Phẩm */
.types-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #3d3b5a;
    padding-top: 15px;
}
.type-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #a0aec0;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.type-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.type-btn.active {
    background: rgba(255, 214, 107, 0.1);
    color: var(--q-color, #ffd66b);
    border-color: var(--q-color, #ffd66b);
}

/* Ảnh nguyên liệu */
.items-table img {
    border-radius: 6px;
    background: #1a1c23;
    border: 1px solid #41455f;
    object-fit: cover;
}

/* --- Bento Grid Layout --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.bento-grid-single {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Layout chia 1/3 và 2/3 */
    gap: 30px;
    margin-top: 30px;
}

/* --- Glassmorphism UI --- */
.glassmorphism-card, .glassmorphism-box {
    background: rgba(255, 255, 255, 0.05); /* Tông nền tối ưu cho dark mode */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* Hover effects */
.glassmorphism-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.echo-thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.echo-cost-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700; /* Màu vàng kim Wuthering Waves */
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

.echo-title {
    font-size: 16px;
    color: #fff;
    text-align: center;
    margin: 0;
}

.bento-heading {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .bento-grid-single {
        grid-template-columns: 1fr;
    }
}


/* Style cho Auto Internal Link Wiki */

a.gamxo-auto-link {   
    align-items: center;
    font-weight: 600;
    color: #e6b96b; 
    text-decoration: none;
    /* background-color: rgba(230, 185, 107, 0.1); */
    padding: 2px 6px 2px 2px;
    border-radius: 20px;
    transition: all 0.2s ease-in-out;
    margin: 0 2px;
}

a.gamxo-auto-link:hover {
    background-color: rgba(230, 185, 107, 0.2);
    transform: translateY(-1px);
}

img.gamxo-auto-link-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    vertical-align: middle;
}


/* ÉP TRẮNG NỘI DUNG TRONG TAB NHÂN VẬT */
.wuwa-content-render p, 
.wuwa-content-render li, 
.wuwa-content-render div {
    color: #ffffff !important;
    font-weight: 400 !important;
}


/* Fix lỗi icon hoặc link bên trong nội dung */
.wuwa-content-render a {
    color: var(--elem-color, #3b82f6) !important;
    text-decoration: underline;
}
