/*
Theme Name: FS Truyền Kỳ
Theme URI: https://fstruyenky.com
Author: Antigravity
Author URI: https://github.com/google-deepmind
Description: WordPress Theme converted from the original FS Truyền Kỳ HTML landing page. Displays dynamic posts on the homepage with custom category filters.
Version: 1.0.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fstruyenky
Tags: gaming, MMORPG, dark, responsive-layout, clean-layout, custom-background

This theme is developed dynamically to convert static MMORPG landing pages into fully functional WordPress themes.
All original CSS files are located in the /css directory and enqueued via functions.php.
*/

/* --- Custom Styles from index.html --- */
.article-list-container {
    position: absolute;
    top: 47%;
    width: 54vw;
    max-width: 1000px;
    height: 28vw;
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(255, 192, 18, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 0 15px rgba(255, 192, 18, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2.5vw 3vw 2vw 3vw;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    font-family: "uec", sans-serif;
    z-index: 10;
}

@media only screen and (max-width: 1023px) {
    .article-list-container {
        width: 85vw;
        height: 68vw;
        top: 60%;
        padding: 4vw 4vw 3vw 4vw;
        border-radius: 8px;
    }
}

.article-tabs {
    display: flex;
    gap: 1.5vw;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.8vw;
    margin-bottom: 1.5vw;
}

@media only screen and (max-width: 1023px) {
    .article-tabs {
        gap: 3vw;
        padding-bottom: 1.5vw;
        margin-bottom: 3vw;
        border-bottom-width: 1px;
    }
}

.article-tabs .tab-item {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95vw;
    font-family: "tsb", sans-serif;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 0 0.5vw;
}

@media only screen and (max-width: 1023px) {
    .article-tabs .tab-item {
        font-size: 3vw;
        padding: 0 1vw;
    }
}

.article-tabs .tab-item:hover, .article-tabs .tab-item.active {
    color: #ffc012;
    text-shadow: 0 0 8px rgba(255, 192, 18, 0.4);
}

.article-tabs .tab-item.active::after {
    content: "";
    position: absolute;
    bottom: -1vw;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ffc012, #fff0a3);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(255, 192, 18, 0.5);
}

@media only screen and (max-width: 1023px) {
    .article-tabs .tab-item.active::after {
        bottom: -1.7vw;
        height: 2px;
    }
}

.article-items {
    display: flex;
    flex-direction: column;
    gap: 0.8vw;
    overflow-y: auto;
    flex-grow: 1;
}

@media only screen and (max-width: 1023px) {
    .article-items {
        gap: 2vw;
    }
}

.article-items::-webkit-scrollbar {
    width: 6px;
}
.article-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
.article-items::-webkit-scrollbar-thumb {
    background: rgba(255, 192, 18, 0.25);
    border-radius: 3px;
}
.article-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 192, 18, 0.45);
}

.article-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8vw 1vw;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: all 0.3s ease;
}

@media only screen and (max-width: 1023px) {
    .article-row {
        padding: 2vw 2.5vw;
        border-radius: 4px;
    }
}

.article-row:hover {
    background: rgba(255, 192, 18, 0.05);
    border-color: rgba(255, 192, 18, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.article-row .badge {
    padding: 0.2vw 0.6vw;
    font-size: 0.7vw;
    font-family: "tb", sans-serif;
    border-radius: 4px;
    text-align: center;
    min-width: 4.5vw;
    letter-spacing: 0.5px;
}

@media only screen and (max-width: 1023px) {
    .article-row .badge {
        padding: 0.6vw 1.5vw;
        font-size: 2.2vw;
        min-width: 13vw;
        border-radius: 3px;
    }
}

.badge-news {
    background: rgba(255, 192, 18, 0.15);
    color: #ffc012;
    border: 1px solid rgba(255, 192, 18, 0.3);
}

.badge-event {
    background: rgba(255, 78, 80, 0.15);
    color: #ff4e50;
    border: 1px solid rgba(255, 78, 80, 0.3);
}

.badge-guide {
    background: rgba(78, 205, 196, 0.15);
    color: #4ecdc4;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.article-title {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85vw;
    text-decoration: none;
    flex-grow: 1;
    margin: 0 2vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
    text-align: left;
}

@media only screen and (max-width: 1023px) {
    .article-title {
        font-size: 2.8vw;
        margin: 0 3vw;
    }
}

.article-title:hover {
    color: #ffc012;
}

.article-date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8vw;
    font-family: Arial, sans-serif;
    min-width: 5vw;
    text-align: right;
}

@media only screen and (max-width: 1023px) {
    .article-date {
        font-size: 2.4vw;
        min-width: 14vw;
    }
}

.frame-2 .frame-container .title-2.news-title {
    background: none;
    font-family: "tsb", sans-serif;
    font-size: 2.2vw;
    color: #ffc012;
    text-shadow: 0 0 10px rgba(255, 192, 18, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: auto;
    height: auto;
}

@media only screen and (max-width: 1023px) {
    .frame-2 .frame-container .title-2.news-title {
        font-size: 6vw;
    }
}

/* Top left navigation links styles */
.frame-1 .frame-container .frame-link {
    position: absolute;
    top: 2.5vh;
    left: 3vh;
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 1.5vh;
    font-family: "tsb", sans-serif;
    color: #fffae4;
    font-size: 1.8vh;
    z-index: 99;
}

@media only screen and (max-width: 1023px) {
    .frame-1 .frame-container .frame-link {
        top: 4vw;
        left: 4vw;
        font-size: 3.2vw;
    }
}

.frame-1 .frame-container .frame-link a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.frame-1 .frame-container .frame-link a:hover {
    color: #ffc012;
    text-shadow: 0 0 10px rgba(255, 192, 18, 0.8);
}

.frame-1 .frame-container .frame-link span {
    color: rgba(255, 192, 18, 0.6);
    text-shadow: 0 0 5px rgba(255, 192, 18, 0.4);
}


/* --- Custom Styles from detail.html --- */
.detail-wrapper {
    background: url("images/frame-2/bg.jpg") no-repeat top center;
    background-size: 100% auto;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

@media only screen and (max-width: 1023px) {
    .detail-wrapper {
        background: url("images/frame-2/bg-mb.jpg") no-repeat top center;
        background-size: 100% auto;
    }
}

.detail-header {
    width: 80vw;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5vh 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

@media only screen and (max-width: 1023px) {
    .detail-header {
        width: 90vw;
        padding: 4vw 0;
        flex-direction: column;
        gap: 3vw;
    }
}

.back-home-btn {
    display: flex;
    align-items: center;
    gap: 0.8vh;
    font-family: "tsb", sans-serif;
    color: #ffffff;
    font-size: 1.6vh;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 192, 18, 0.1);
    border: 1px solid rgba(255, 192, 18, 0.3);
    padding: 0.8vh 1.8vh;
    border-radius: 4px;
}

.back-home-btn:hover {
    color: #ffc012;
    background: rgba(255, 192, 18, 0.2);
    border-color: #ffc012;
    box-shadow: 0 0 10px rgba(255, 192, 18, 0.4);
    transform: translateX(-3px);
}

@media only screen and (max-width: 1023px) {
    .back-home-btn {
        font-size: 3vw;
        padding: 2vw 4vw;
        width: 100%;
        justify-content: center;
    }
}

.detail-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5vh;
    font-family: "tsb", sans-serif;
    color: #fffae4;
    font-size: 1.8vh;
}

@media only screen and (max-width: 1023px) {
    .detail-nav-links {
        font-size: 3.2vw;
        gap: 3vw;
    }
}

.detail-nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.detail-nav-links a:hover {
    color: #ffc012;
    text-shadow: 0 0 10px rgba(255, 192, 18, 0.8);
}

.detail-nav-links span {
    color: rgba(255, 192, 18, 0.6);
}

/* Detail Card Container */
.article-detail-card {
    width: 58vw;
    max-width: 1000px;
    margin: 3vh auto 5vh auto;
    background: rgba(15, 15, 15, 0.85);
    border: 1px solid rgba(255, 192, 18, 0.25);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 192, 18, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3vw 4vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

@media only screen and (max-width: 1023px) {
    .article-detail-card {
        width: 90vw;
        margin: 4vw auto 8vw auto;
        padding: 6vw 5vw;
        border-radius: 8px;
    }
}

.detail-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5vw;
}

@media only screen and (max-width: 1023px) {
    .detail-meta {
        margin-bottom: 4vw;
    }
}

.detail-meta .badge {
    padding: 0.3vw 0.8vw;
    font-size: 0.75vw;
    font-family: "tb", sans-serif;
    border-radius: 4px;
    text-align: center;
    min-width: 5vw;
    letter-spacing: 0.5px;
}

@media only screen and (max-width: 1023px) {
    .detail-meta .badge {
        padding: 1vw 2.5vw;
        font-size: 2.4vw;
        min-width: 16vw;
    }
}

.detail-meta .date {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85vw;
    font-family: Arial, sans-serif;
}

@media only screen and (max-width: 1023px) {
    .detail-meta .date {
        font-size: 2.8vw;
    }
}

.detail-title {
    color: #ffc012;
    font-family: "tb", sans-serif;
    font-size: 2vw;
    line-height: 1.3;
    text-align: left;
    margin-bottom: 1.5vw;
    text-shadow: 0 0 10px rgba(255, 192, 18, 0.4);
}

@media only screen and (max-width: 1023px) {
    .detail-title {
        font-size: 5vw;
        margin-bottom: 4vw;
    }
}

.detail-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 192, 18, 0.3) 15%, rgba(255, 192, 18, 0.3) 85%, transparent);
    margin-bottom: 2vw;
}

@media only screen and (max-width: 1023px) {
    .detail-divider {
        margin-bottom: 5vw;
    }
}

/* Article content rich styles */
.article-detail-content {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95vw;
    line-height: 1.7;
}

@media only screen and (max-width: 1023px) {
    .article-detail-content {
        font-size: 3.2vw;
        line-height: 1.6;
    }
}

.article-detail-content p {
    margin-bottom: 1.2vw;
}

@media only screen and (max-width: 1023px) {
    .article-detail-content p {
        margin-bottom: 3.5vw;
    }
}

.article-detail-content strong {
    color: #fffae4;
    font-weight: bold;
}

.article-detail-content h3 {
    color: #ffc012;
    font-family: "tsb", sans-serif;
    font-size: 1.3vw;
    margin-top: 2.2vw;
    margin-bottom: 0.8vw;
    text-shadow: 0 0 5px rgba(255, 192, 18, 0.3);
    text-transform: uppercase;
}

.article-detail-content h4 {
    color: #ffeea2;
    font-family: "tsb", sans-serif;
    font-size: 1.1vw;
    margin-top: 1.8vw;
    margin-bottom: 0.6vw;
}

@media only screen and (max-width: 1023px) {
    .article-detail-content h3 {
        font-size: 4vw;
        margin-top: 6vw;
        margin-bottom: 2vw;
    }
    .article-detail-content h4 {
        font-size: 3.5vw;
        margin-top: 5vw;
        margin-bottom: 1.5vw;
    }
}

.article-detail-content ul, .article-detail-content ol {
    margin-bottom: 1.5vw;
    padding-left: 1.8vw;
}

@media only screen and (max-width: 1023px) {
    .article-detail-content ul, .article-detail-content ol {
        margin-bottom: 4vw;
        padding-left: 5vw;
    }
}

.article-detail-content li {
    margin-bottom: 0.6vw;
}

.article-detail-content ul li {
    list-style-type: square;
}

.article-detail-content ol li {
    list-style-type: decimal;
}

/* Content tables */
.article-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5vw 0;
    font-size: 0.85vw;
    background: rgba(0, 0, 0, 0.3);
}

@media only screen and (max-width: 1023px) {
    .article-detail-content table {
        font-size: 2.6vw;
        margin: 4vw 0;
    }
}

.article-detail-content table th {
    background: rgba(255, 192, 18, 0.12);
    color: #ffc012;
    border: 1px solid rgba(255, 192, 18, 0.25);
    padding: 0.8vw 1.2vw;
    font-family: "tsb", sans-serif;
    font-weight: bold;
}

.article-detail-content table td {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.8vw 1.2vw;
    color: rgba(255, 255, 255, 0.8);
}

.article-detail-content table tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.01);
}

.article-detail-content table tr:hover td {
    background: rgba(255, 192, 18, 0.04);
    color: #ffffff;
}

/* Related Articles Section */
.related-section {
    margin-top: 4vw;
    border-top: 1px dashed rgba(255, 192, 18, 0.2);
    padding-top: 2vw;
}

@media only screen and (max-width: 1023px) {
    .related-section {
        margin-top: 8vw;
        padding-top: 5vw;
    }
}

.related-heading {
    font-family: "tsb", sans-serif;
    color: #ffc012;
    font-size: 1.2vw;
    margin-bottom: 1.5vw;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 192, 18, 0.3);
}

@media only screen and (max-width: 1023px) {
    .related-heading {
        font-size: 3.8vw;
        margin-bottom: 4vw;
    }
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 0.8vw;
}

@media only screen and (max-width: 1023px) {
    .related-list {
        gap: 2.5vw;
    }
}

.related-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8vw 1vw;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
}

@media only screen and (max-width: 1023px) {
    .related-item {
        padding: 3vw;
        border-radius: 4px;
    }
}

.related-item:hover {
    background: rgba(255, 192, 18, 0.05);
    border-color: rgba(255, 192, 18, 0.3);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.related-item-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85vw;
    font-family: "uec", sans-serif;
    flex-grow: 1;
    margin: 0 1.5vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
}

.related-item:hover .related-item-title {
    color: #ffc012;
}

@media only screen and (max-width: 1023px) {
    .related-item-title {
        font-size: 2.8vw;
        margin: 0 3vw;
    }
}

.related-item-date {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8vw;
    font-family: Arial, sans-serif;
    min-width: 5vw;
    text-align: right;
}

@media only screen and (max-width: 1023px) {
    .related-item-date {
        font-size: 2.4vw;
        min-width: 14vw;
    }
}

.frame-1 .frame-container .frame-time .frame-button button.tai-auto-btn {
    background-image: url(images/frame-1/tai-auto.png);
    background-size: 70%;
}
