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

/* ========================================
   WIKI GAME PAGE
======================================== */

.wiki-game-shell {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 48px;
}

/* Wiki Layout - Main content + Sidebar */
.wiki-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    margin-top: 16px;
}

.wiki-main-column {
    min-width: 0; /* Permite que o conteúdo encolha corretamente */
}

.wiki-sidebar {
    position: sticky;
    top: 24px;
    height: fit-content;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.wiki-sidebar-widget {
    background: linear-gradient(to bottom, #1a1a1a 0%, #222 100%);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.wiki-sidebar-widget:last-child {
    margin-bottom: 0;
}

.wiki-sidebar-title {
    font-family: 'Sora', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #D4AF37;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #2a2a2a;
    padding-bottom: 10px;
}

.wiki-sidebar-content {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.6;
}

/* Ad placeholder styling */
.wiki-sidebar-ad {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    border: 1px dashed #333;
    border-radius: 8px;
    color: #555;
    font-size: 12px;
    text-align: center;
    padding: 20px;
}

/* Scrollbar para sidebar */
.wiki-sidebar::-webkit-scrollbar {
    width: 6px;
}

.wiki-sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.wiki-sidebar::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 3px;
}

.wiki-sidebar::-webkit-scrollbar-thumb:hover {
    background: #C5A028;
}

/* Responsive layout */
@media (max-width: 1024px) {
    .wiki-layout-wrapper {
        grid-template-columns: 1fr 250px;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .wiki-layout-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .wiki-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        order: 2;
    }
    
    .wiki-main-column {
        order: 1;
    }
}

/* Top dropdown bar */
.wiki-game-bar {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
    border-bottom: none;
}

.wiki-dropdown {
    position: relative;
    display: inline-block;
}

.wiki-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #d1d1d1;
    border: none;
    border-radius: 0;
    padding: 8px 0;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
    font-family: inherit;
    position: relative;
}

.wiki-dropdown-trigger:hover {
    color: #D4AF37;
}

.wiki-dropdown.open .wiki-dropdown-trigger {
    color: #D4AF37;
}

.wiki-dropdown .caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.25s ease;
    margin-left: 6px;
    vertical-align: middle;
}

.wiki-dropdown.open .caret {
    transform: rotate(180deg);
}

.wiki-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    transform: translateY(-4px);
}

.wiki-dropdown.open .wiki-dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.wiki-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 13px;
    border-left: 2px solid transparent;
    position: relative;
}

.wiki-dropdown-menu a:first-child {
    border-top: none;
}

.wiki-dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.08);
    color: #D4AF37;
    border-left-color: #D4AF37;
}

/* Parent category link (e.g., Armas) */
.wiki-dropdown-parent {
    font-weight: 600;
    color: #e0e0e0 !important;
    border-top: 1px solid #2a2a2a;
    margin-top: 2px;
    padding-top: 10px;
}

.wiki-dropdown-parent:first-child {
    border-top: none;
    margin-top: 0;
}

.wiki-dropdown-parent:hover {
    color: #D4AF37 !important;
    background: rgba(212, 175, 55, 0.08) !important;
}

/* Child category link (e.g., Samurai, Ninja) - indented */
.wiki-dropdown-child {
    padding-left: 24px !important;
    font-size: 12px;
    color: #888 !important;
}

.wiki-dropdown-child:hover {
    color: #D4AF37 !important;
}

/* Hero */
.wiki-game-hero {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 64px 32px;
    margin: 16px 0 32px;
    background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    background-size: cover;
    background-position: center;
}

/* ========================================
   WIKI CATEGORY CARDS SIMPLES - v2
======================================== */

.wiki-category-simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0 0 0;
}

.wiki-category-simple-card:nth-child(7):last-child {
    grid-column: 2;
}

.wiki-category-simple-card {
    background: linear-gradient(to bottom, #1a1a1a 0%, #222 100%);
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.wiki-category-simple-card:hover {
    transform: translateY(-2px);
    border-color: #D4AF37;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.15);
}

.wiki-category-simple-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.wiki-category-simple-title:hover {
    color: #D4AF37;
}

.wiki-category-simple-subs {
    font-size: 13px;
    color: #b0b0b0;
    line-height: 1.6;
}

.wiki-category-simple-subs a {
    color: #d1d1d1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wiki-category-simple-subs a:hover {
    color: #D4AF37;
}

.wiki-game-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

.wiki-game-hero__content {
    position: relative;
    max-width: 720px;
    display: grid;
    gap: 12px;
}

.wiki-game-eyebrow {
    color: #D4AF37;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.wiki-game-title {
    font-family: 'Sora', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    margin: 0;
}

.wiki-game-subtitle {
    color: #d9d9d9;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

/* Content */
.wiki-game-content {
    background: linear-gradient(to bottom, #1a1a1a 0%, #222 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
    color: #d1d1d1;
    line-height: 1.7;
}

.wiki-game-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wiki-game-content h2,
.wiki-game-content h3,
.wiki-game-content h4 {
    color: #D4AF37;
    font-family: 'Sora', sans-serif;
    margin-top: 28px;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.wiki-game-content p {
    margin-bottom: 1.1em;
}

.wiki-game-content ul,
.wiki-game-content ol {
    padding-left: 22px;
    margin: 18px 0;
}

.wiki-game-content a {
    color: #D4AF37;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.wiki-game-content a:hover {
    color: #C5A028;
}

/* Override para títulos de categorias */
.wiki-game-content .wiki-category-simple-title {
    color: #fff !important;
    text-decoration: none !important;
}

.wiki-game-content .wiki-category-simple-title:hover {
    color: #D4AF37 !important;
}

/* Layout de duas colunas para Stats */
.two-columns-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 24px;
}

.two-columns-stats > div,
.two-columns-stats > section {
    min-width: 0;
}

@media (max-width: 768px) {
    .two-columns-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .wiki-game-shell {
        padding: 0 16px 40px;
    }

    .wiki-game-bar {
        gap: 10px;
    }

    .wiki-dropdown-menu {
        min-width: 200px;
    }

    .wiki-game-hero {
        padding: 48px 20px;
    }

    .wiki-game-title {
        font-size: 2.1rem;
    }

    .wiki-game-content {
        padding: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .wiki-game-title {
        font-size: 2.3rem;
    }
}

/* ========================================
   WIKI BREADCRUMB
======================================== */

.wiki-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-size: 14px;
    color: #888;
}

.wiki-breadcrumb a {
    color: #D4AF37;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wiki-breadcrumb a:hover {
    color: #fff;
    text-decoration: underline;
}

.wiki-breadcrumb .separator {
    color: #555;
}

.wiki-breadcrumb .current {
    color: #d1d1d1;
}

/* ========================================
   WIKI ITEM SINGLE PAGE
======================================== */

.wiki-item-content {
    background: linear-gradient(to bottom, #1a1a1a 0%, #222 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.wiki-item-article {
    max-width: 900px;
    margin: 0 auto;
}

.wiki-item-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.wiki-item-title {
    font-family: 'Sora', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px 0;
}

.wiki-item-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wiki-item-category {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wiki-item-category:hover {
    background: rgba(212, 175, 55, 0.3);
    color: #fff;
}

.wiki-item-thumbnail {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.wiki-item-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.wiki-item-body {
    color: #d1d1d1;
    line-height: 1.8;
    font-size: 16px;
}

.wiki-item-body h2,
.wiki-item-body h3,
.wiki-item-body h4 {
    color: #D4AF37;
    font-family: 'Sora', sans-serif;
    margin-top: 32px;
    margin-bottom: 16px;
}

.wiki-item-body h2 {
    font-size: 1.5rem;
}

.wiki-item-body h3 {
    font-size: 1.25rem;
}

.wiki-item-body p {
    margin-bottom: 1.2em;
}

.wiki-item-body ul,
.wiki-item-body ol {
    padding-left: 24px;
    margin: 16px 0;
}

.wiki-item-body li {
    margin-bottom: 8px;
}

.wiki-item-body a {
    color: #D4AF37;
    text-decoration: underline;
}

.wiki-item-body a:hover {
    color: #fff;
}

/* Tables in wiki items - Container with scroll */
.wiki-item-body > table,
.wiki-game-content > table {
    display: block;
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.wiki-item-body table,
.wiki-game-content table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    background: #1a1a1a;
    font-family: 'Montserrat', 'Sora', sans-serif;
    font-size: 13px;
}

.wiki-item-body th,
.wiki-item-body td,
.wiki-game-content th,
.wiki-game-content td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid #333;
    white-space: normal;
    vertical-align: middle;
    font-size: 13px;
}

.wiki-item-body th,
.wiki-game-content th {
    background: #252525;
    color: #D4AF37;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 8px 8px;
}

.wiki-item-body tr:last-child td,
.wiki-game-content tr:last-child td {
    border-bottom: none;
}

/* Zebra striping - linhas alternadas */
.wiki-item-body tbody tr:nth-child(odd),
.wiki-game-content tbody tr:nth-child(odd) {
    background: #1a1a1a;
}

.wiki-item-body tbody tr:nth-child(even),
.wiki-game-content tbody tr:nth-child(even) {
    background: #1f1f1f;
}

/* Hover effect - destaca a linha inteira */
.wiki-item-body tbody tr:hover,
.wiki-game-content tbody tr:hover {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.08) 0%, rgba(212, 175, 55, 0.05) 100%) !important;
    transition: background 0.2s ease;
}

.wiki-item-body tr:hover td,
.wiki-game-content tr:hover td {
    background: transparent;
}

/* Table wrapper for horizontal scroll */
.wiki-item-body .table-wrapper,
.wiki-game-content .table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 24px 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.wiki-item-body .table-wrapper table,
.wiki-game-content .table-wrapper table {
    margin: 0;
    display: table;
}

/* Scrollbar styling */
.wiki-item-body > table::-webkit-scrollbar,
.wiki-game-content > table::-webkit-scrollbar,
.wiki-item-body .table-wrapper::-webkit-scrollbar,
.wiki-game-content .table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.wiki-item-body > table::-webkit-scrollbar-track,
.wiki-game-content > table::-webkit-scrollbar-track,
.wiki-item-body .table-wrapper::-webkit-scrollbar-track,
.wiki-game-content .table-wrapper::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 4px;
}

.wiki-item-body > table::-webkit-scrollbar-thumb,
.wiki-game-content > table::-webkit-scrollbar-thumb,
.wiki-item-body .table-wrapper::-webkit-scrollbar-thumb,
.wiki-game-content .table-wrapper::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

.wiki-item-body > table::-webkit-scrollbar-thumb:hover,
.wiki-game-content > table::-webkit-scrollbar-thumb:hover,
.wiki-item-body .table-wrapper::-webkit-scrollbar-thumb:hover,
.wiki-game-content .table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #C5A028;
}

/* Table Icons - Standardized sizes (FORÇA O TAMANHO!) */
.wiki-item-body table img,
.wiki-game-content table img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Icon column - fixed width */
.wiki-item-body table td:first-child,
.wiki-game-content table td:first-child,
.wiki-item-body table th:first-child,
.wiki-game-60px;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
    padding: 6px;
    white-space: nowrap;
}

/* Icon cells specifically */
.wiki-item-body table td:has(img),
.wiki-game-content table td:has(img) {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
    padding: 6: center;
    padding: 8px;
    white-space: nowrap;
}

/* Small icons variant */
.wiki-item-body table.icon-small img,
.wiki-game-content table.icon-small img {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
}

/* Large icons variant */
.wiki-item-body table.icon-large img,
.wiki-game-content table.icon-large img {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
}

/* Responsive table adjustments */
@media (max-width: 768px) {
    .wiki-item-body table,
    .wiki-game-content table {
        font-size: 11px;
    }
    
    .wiki-item-body th,
    .wiki-item-body td,
    .wiki-game-content th,
    .wiki-game-content td {
        padding: 5px 6px;
    }
    
    .wiki-item-body table img,
    .wiki-game-content table img {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }
    
    .wiki-item-body table td:first-child,
    .wiki-game-content table td:first-child,
    .wiki-item-body table th:first-child,
    .wiki-game-content table th:first-child,
    .wiki-item-body table td:has(img),
    .wiki-game-content table td:has(img) {
        width: 45px;
        min-width: 45px;
        max-width: 45px;
        padding: 4px;
    }
}

/* ========================================
   WIKI CATEGORY LISTING PAGE
======================================== */

.wiki-category-content {
    background: linear-gradient(to bottom, #1a1a1a 0%, #222 100%);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

.wiki-category-header {
    margin-bottom: 32px;
    text-align: center;
}

.wiki-category-title {
    font-family: 'Sora', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
}

.wiki-category-count {
    color: #888;
    font-size: 14px;
    margin: 0;
}

/* Items Grid */
.wiki-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wiki-item-card {
    background: #1a1a1a;
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wiki-item-card:hover {
    border-color: #D4AF37;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

.wiki-item-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wiki-item-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #252525;
}

.wiki-item-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Aspect ratio especial para Sets (mostra armadura completa) */
.armor-items-panel[data-part="sets"] .wiki-item-card-image {
    aspect-ratio: 3/4;
}

.wiki-item-card:hover .wiki-item-card-image img {
    transform: scale(1.05);
}

.wiki-item-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wiki-item-card-placeholder .placeholder-icon {
    font-size: 48px;
    opacity: 0.3;
}

.wiki-item-card-content {
    padding: 16px;
    text-align: center;
}

.wiki-item-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.wiki-item-card-excerpt {
    color: #888;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wiki-no-items {
    text-align: center;
    padding: 48px 24px;
    color: #888;
}

/* Responsive for wiki items */
@media (max-width: 768px) {
    .wiki-item-content,
    .wiki-category-content {
        padding: 20px;
    }

    .wiki-item-title {
        font-size: 1.75rem;
    }

    .wiki-category-title {
        font-size: 1.5rem;
    }

    .wiki-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .wiki-item-card-content {
        padding: 12px;
    }

    .wiki-item-card-title {
        font-size: 14px;
    }

    .wiki-breadcrumb {
        font-size: 13px;
    }

    .wiki-category-simple-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wiki-category-simple-card {
        padding: 16px;
    }

    .wiki-category-simple-title {
        font-size: 1rem;
    }

    .wiki-category-simple-subs {
        font-size: 12px;
    }
}

/* Responsive for tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .wiki-category-simple-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .wiki-category-simple-card:nth-child(7):last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .wiki-category-simple-title {
        font-size: 1.1rem;
    }
}

/* ========================================
   WEAPON CATEGORY TABS SYSTEM
======================================== */

.weapon-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0;
    padding: 16px;
    background: transparent;
    border: none;
    border-radius: 0;
    justify-content: center;
}

.weapon-tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(to bottom, #252525 0%, #1f1f1f 100%);
    border: 2px solid #333;
    border-radius: 8px;
    padding: 16px 20px;
    min-width: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    color: #b0b0b0;
}

.weapon-tab-btn .tab-icon {
    font-size: 32px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.weapon-tab-btn .tab-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.weapon-tab-btn .tab-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.weapon-tab-btn:hover {
    border-color: #D4AF37;
    background: linear-gradient(to bottom, #2a2a2a 0%, #252525 100%);
    color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.weapon-tab-btn:hover .tab-icon {
    opacity: 1;
    transform: scale(1.1);
}

.weapon-tab-btn.active {
    border-color: #D4AF37;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.08) 100%);
    color: #D4AF37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.weapon-tab-btn.active .tab-icon {
    opacity: 1;
}

/* Weapon category content panels */
.weapon-category-content {
    margin-top: 24px;
}

.weapon-items-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.weapon-items-panel.active {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* Grid dentro do painel deve ser flex horizontal */
.weapon-items-panel .wiki-items-grid {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 0;
    align-items: flex-start;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.weapon-panel-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    padding: 16px 0;
    text-align: center;
    position: relative;
}

.weapon-panel-title::before,
.weapon-panel-title::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #D4AF37 50%, transparent 100%);
}

.weapon-panel-title::before {
    top: 0;
}

.weapon-panel-title::after {
    bottom: 0;
}

.weapon-uncategorized-items {
    margin-top: 40px;
}

/* Responsive tabs */
@media (max-width: 768px) {
    .weapon-category-tabs {
        gap: 8px;
        padding: 12px;
    }
    
    .weapon-tab-btn {
        min-width: 80px;
        padding: 12px 16px;
        gap: 6px;
    }
    
    .weapon-tab-btn .tab-icon {
        font-size: 24px;
    }
    
    .weapon-tab-btn .tab-label {
        font-size: 11px;
    }
    
    .weapon-panel-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .weapon-tab-btn {
        min-width: 90px;
        padding: 14px 18px;
    }
    
    .weapon-tab-btn .tab-icon {
        font-size: 28px;
    }
}

/* ========================================
   SUBCATEGORY CARDS (COMPACT)
======================================== */

/* Weapon subcategory tabs (second level - Katana, Odachi, etc.) */
.weapon-subcategory-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    width: 56px;
    flex-shrink: 0;
}

.weapon-subtab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #252525 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    color: #b0b0b0;
}

.weapon-subtab-btn .subtab-icon {
    font-size: 22px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.weapon-subtab-btn .subtab-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.weapon-subtab-btn .subtab-label {
    display: none;
}

.weapon-subtab-btn:hover {
    border-color: #D4AF37;
    background: linear-gradient(to bottom, #2a2a2a 0%, #1f1f1f 100%);
    color: #D4AF37;
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.weapon-subtab-btn:hover .subtab-icon {
    opacity: 1;
}

.weapon-subtab-btn.active {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.weapon-subtab-btn.active .subtab-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Weapon subcategory content panels */
.weapon-subcategory-content {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Reset grid interna - volta a ser grid 3 colunas */
.weapon-subcategory-content .wiki-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
}

.weapon-subitems-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.weapon-subitems-panel.active {
    display: block;
    margin: 0;
    padding: 0;
}

/* Responsive subtabs */
@media (max-width: 768px) {
    .weapon-subcategory-tabs {
        gap: 6px;
        padding: 8px;
    }
    
    .weapon-subtab-btn {
        width: 42px;
        height: 42px;
    }
    
    .weapon-subtab-btn .subtab-icon {
        font-size: 18px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .weapon-subtab-btn {
        width: 45px;
        height: 45px;
    }
    
    .weapon-subtab-btn .subtab-icon {
        font-size: 20px;
    }
}

.wiki-subcategory-card {
    background: linear-gradient(to bottom, #252525 0%, #1f1f1f 100%);
    border: 2px solid #333;
    border-radius: 8px;
    padding: 0;
    min-height: auto;
    transition: all 0.3s ease;
}

.wiki-subcategory-card:hover {
    border-color: #D4AF37;
    background: linear-gradient(to bottom, #2a2a2a 0%, #252525 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.wiki-subcategory-card .wiki-item-card-link {
    padding: 20px 16px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wiki-subcategory-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.wiki-subcategory-content .subcategory-icon {
    font-size: 28px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.wiki-subcategory-card:hover .subcategory-icon {
    opacity: 1;
    transform: scale(1.1);
}

.wiki-subcategory-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #d1d1d1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.wiki-subcategory-card:hover .wiki-subcategory-title {
    color: #D4AF37;
}

/* Responsive subcategory cards */
@media (max-width: 768px) {
    .wiki-subcategory-card .wiki-item-card-link {
        padding: 16px 12px;
        min-height: 70px;
    }
    
    .wiki-subcategory-content .subcategory-icon {
        font-size: 24px;
    }
    
    .wiki-subcategory-title {
        font-size: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .wiki-subcategory-card .wiki-item-card-link {
        padding: 18px 14px;
        min-height: 75px;
    }
    
    .wiki-subcategory-content .subcategory-icon {
        font-size: 26px;
    }
    
    .wiki-subcategory-title {
        font-size: 13px;
    }
}



/* ========================================
   ARMOR LAYOUT
   Sistema de navegação de armaduras com sidebar lateral
======================================== */

.armor-single-layout {
    width: 100%;
}

/* Esconde o header da categoria quando for armaduras ou armas */
body.tax-wiki_category .armor-single-layout ~ * .wiki-category-header,
.armor-single-layout + * .wiki-category-header {
    display: none;
}

/* Esconde o header quando existe armor-single-layout ou weapon-category-tabs na página */
.wiki-category-content:has(.armor-single-layout) .wiki-category-header,
.wiki-category-content:has(.weapon-category-tabs) .wiki-category-header {
    display: none;
}

.armor-section-title {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 0;
    text-align: center;
    position: relative;
}

/* Descrição da categoria */
.armor-category-description {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0 0 20px 0;
    margin: 0 0 32px 0;
    color: #d1d1d1;
    line-height: 1.8;
    font-size: 15px;
}

.armor-category-description p {
    margin: 0 0 1em 0;
}

.armor-category-description p:last-child {
    margin-bottom: 0;
}

.armor-category-description a {
    color: #D4AF37;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.armor-category-description a:hover {
    color: #fff;
}

.armor-section-title::before,
.armor-section-title::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent 0%, #D4AF37 50%, transparent 100%);
}

.armor-section-title::before {
    top: 0;
}

.armor-section-title::after {
    bottom: 0;
}

/* Layout principal: Sidebar + Conteúdo */
.armor-layout {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 20px;
    min-height: 400px;
}

/* Sidebar com partes de armadura */
.armor-parts-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 8px;
    height: fit-content;
    position: sticky;
    top: 24px;
    width: 64px;
    flex-shrink: 0;
}

.armor-part-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #252525 0%, #1a1a1a 100%);
    border: 1px solid #333;
    border-radius: 6px;
    padding: 0;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    color: #b0b0b0;
}

.armor-part-btn .part-icon {
    font-size: 22px;
    opacity: 0.6;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.armor-part-btn .part-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.armor-part-btn .part-label {
    display: none;
}

.armor-part-btn:hover {
    border-color: #D4AF37;
    background: linear-gradient(to bottom, #2a2a2a 0%, #1f1f1f 100%);
    color: #D4AF37;
    transform: translateY(-1px) scale(1.05);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.armor-part-btn:hover .part-icon {
    opacity: 1;
}

.armor-part-btn.active {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.armor-part-btn.active .part-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* Conteúdo das partes */
.armor-parts-content {
    position: relative;
    min-height: 400px;
}

.armor-items-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.armor-items-panel.active {
    display: block;
}

.armor-items-panel .wiki-items-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
}

/* Responsive Armor Layout */
@media (max-width: 768px) {
    .armor-layout {
        grid-template-columns: 1fr !important;

        gap: 16px;
    }
    
    .armor-parts-sidebar {
        position: static;
        flex-direction: row;
        overflow-x: auto;
        gap: 6px;
        padding: 8px;
    }
    
    .armor-part-btn {
        flex-direction: column;
        gap: 6px;
        padding: 10px 8px;
        min-width: 70px;
        text-align: center;
    }
    
    .armor-part-btn .part-label {
        font-size: 11px;
        white-space: normal;
        line-height: 1.2;
    }
    
    .armor-parts-content {
        min-height: 300px;
    }
    
    .armor-items-panel .wiki-items-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .armor-layout {
        grid-template-columns: 160px 1fr;
        gap: 16px;
    }
    
    .armor-parts-sidebar {
        padding: 10px;
        gap: 6px;
    }
    
    .armor-part-btn {
        padding: 10px;
        font-size: 12px;
        gap: 10px;
    }
    
    .armor-part-btn .part-icon {
        font-size: 18px;
    }
    
    .armor-items-panel .wiki-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (min-width: 1025px) and (max-width: 1400px) {
    .armor-items-panel .wiki-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
