@charset "UTF-8";

/* GameWith Style Taxonomy Page CSS */

/* Base Layout */
.taxonomy-page {
    background: transparent;
    padding-top: 24px;
}

.game-content-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.game-content {
    flex: 1;
    min-width: 0; /* Flexbox overflow fix */
    background: rgba(34, 34, 34, 0.6);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.game-sidebar {
    width: 336px;
    flex-shrink: 0;
}

/* Header Area */
.article-header {
    margin-bottom: 16px;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #ffffff;
}

.article-meta {
    font-size: 12px;
    color: #d1d5db;
    text-align: right;
}

.article-lead {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #ffffff;
}

/* TOC (Table Style) */
.gw-toc {
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 32px;
    background: rgba(34, 34, 34, 0.4);
}

.gw-toc-header {
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    padding: 8px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gw-toc-body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(34, 34, 34, 0.2);
}

.gw-toc-body a {
    display: block;
    padding: 12px 8px;
    font-size: 13px;
    color: #60a5fa;
    text-decoration: none;
    font-weight: 700;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.gw-toc-body a:hover {
    background: rgba(96, 165, 250, 0.1);
    text-decoration: underline;
}

.gw-toc-body a:nth-child(3n) {
    border-right: none;
}

.gw-toc-body a:nth-last-child(-n+3) {
    border-bottom: none;
}

/* Notice Bar */
.gw-notice-bar {
    background: rgba(245, 55, 121, 0.2);
    border: 1px solid #f53779;
    padding: 12px;
    margin-bottom: 32px;
    text-align: center;
}

.gw-notice-bar a {
    color: #f53779;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.gw-notice-bar a:hover {
    text-decoration: underline;
}

/* Section Common */
.gw-section {
    margin-bottom: 40px;
}

/* Headings */
.gw-heading-bar {
    font-size: 18px;
    font-weight: 700;
    border-left: 5px solid var(--color-primary);
    padding-left: 12px;
    margin-bottom: 16px;
    line-height: 1.4;
    color: #ffffff;
}

.gw-heading-icon {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.gw-heading-icon i {
    color: var(--color-primary);
}

/* Featured Section */
.gw-featured-content {
    background: transparent;
}

.gw-featured-image {
    margin-bottom: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gw-featured-image img {
    display: block;
    width: 100%;
    height: auto;
}

.gw-featured-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
    color: #ffffff;
}

.gw-btn-block {
    display: block;
    width: 100%;
    background: transparent;
    color: #60a5fa;
    border: 2px solid #60a5fa;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
}

.gw-btn-block:hover {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

/* Icon Grid */
.gw-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.gw-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    background: rgba(34, 34, 34, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 8px;
    transition: all 0.2s;
}

.gw-icon-card:hover {
    border-color: var(--color-primary);
    background: rgba(34, 34, 34, 0.6);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gw-icon-thumb {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.gw-icon-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gw-icon-text {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    color: #ffffff;
}

/* Article List */
.gw-article-list {
    border-top: 1px solid #eee;
}

.gw-article-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gw-article-link {
    display: flex;
    padding: 16px 0;
    text-decoration: none;
    color: #ffffff;
    gap: 16px;
}

.gw-article-link:hover .gw-article-title {
    color: #60a5fa;
    text-decoration: underline;
}

.gw-article-thumb {
    width: 120px;
    height: 68px;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.gw-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gw-article-body {
    flex: 1;
}

.gw-article-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 4px;
    color: #ffffff;
}

.gw-article-meta {
    font-size: 12px;
    color: #9ca3af;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: rgba(34, 34, 34, 0.6);
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    margin-bottom: 24px;
}

.widget-title {
    font-size: 15px;
    font-weight: 700;
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 8px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
}

.sidebar-ranking-list {
    display: flex;
    flex-direction: column;
}

.sidebar-ranking-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #ffffff;
}

.sidebar-ranking-item:last-child {
    border-bottom: none;
}

.sidebar-ranking-item:hover .rank-title {
    color: #60a5fa;
    text-decoration: underline;
}

.rank-badge {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #999;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    border-radius: 3px;
    margin-right: 12px;
    flex-shrink: 0;
}

.rank-badge.rank-1 { background: #FFD700; }
.rank-badge.rank-2 { background: #C0C0C0; }
.rank-badge.rank-3 { background: #CD7F32; }

.rank-thumb {
    width: 60px;
    height: 34px;
    border-radius: 3px;
    overflow: hidden;
    margin-right: 12px;
    flex-shrink: 0;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff;
}

.ranking-more-link {
    text-align: right;
    margin-top: 8px;
}

.ranking-more-link a {
    font-size: 12px;
    color: #60a5fa;
    text-decoration: none;
}

.ranking-more-link a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Sidebar Nav */
.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-nav li:last-child {
    border-bottom: none;
}

.sidebar-nav a {
    display: block;
    padding: 10px 0;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    padding-left: 16px;
}

.sidebar-nav a::before {
    content: '>';
    position: absolute;
    left: 0;
    top: 50%;
    color: #60a5fa;
    font-weight: 700;
    font-size: 10px;
}

.sidebar-nav a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 900px) {
    .game-content-wrapper {
        flex-direction: column;
        padding: 0;
        gap: 0;
    }

    .game-content {
        box-shadow: none;
        padding: 16px;
        border-radius: 0;
    }

    .game-sidebar {
        width: 100%;
        padding: 16px;
    }
    
    .gw-icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gw-toc-body {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gw-toc-body a:nth-child(3n) { border-right: 1px solid #ddd; }
    .gw-toc-body a:nth-child(2n) { border-right: none; }
}
