/* ORIGINAL: [estilos antigos para navegação e seções]
   ALTERADO: Estilos completos para cards interativos, busca e ordenação estilo ForTibia
   TESTE: Novo sistema de cards com grid responsivo, barra de busca e botões de ordenação */

/* Toolbar de busca e ordenação */
.guide-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 10px 0;
    border-bottom: 1px solid #e8e0d0;
    flex-wrap: wrap;
    gap: 10px;
}

.guide-toolbar-left {
    flex: 1;
    min-width: 200px;
}

.guide-toolbar-right {
    display: flex;
    gap: 8px;
}

/* Input de busca */
.search-input {
    width: 100%;
    max-width: 400px;
    padding: 8px 12px;
    border: 1px solid #d4af37;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #f9d27d;
    box-shadow: 0 0 5px rgba(249, 210, 125, 0.3);
}

.search-input::placeholder {
    color: #999;
}

/* Botões de ordenação */
.ui-btn {
    padding: 6px 12px;
    border: 1px solid #d4af37;
    border-radius: 4px;
    background-color: #f9d27d;
    color: #8b6914;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.ui-btn:hover {
    background-color: #ffb500;
    border-color: #f9d27d;
    color: #df5b19;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ui-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Container de cards */
.guide-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 10px 0;
}

/* Cards individuais */
.guide-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: linear-gradient(135deg, #f9d27d 0%, #f5c842 100%);
    border: 2px solid #d4af37;
    border-radius: 8px;
    text-decoration: none;
    color: #8b6914;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-height: 140px;
    position: relative;
    overflow: hidden;
}

.guide-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: #f9d27d;
    background: linear-gradient(135deg, #ffb500 0%, #f9d27d 100%);
}

.guide-card:hover::before {
    opacity: 1;
}

.guide-card img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 8px;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.guide-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

.guide-card-title {
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    max-width: 100%;
    color: #8b6914;
    transition: color 0.3s ease;
}

.guide-card:hover .guide-card-title {
    color: #df5b19;
}

/* Cards ocultos (filtro de busca) */
.guide-card.hidden {
    display: none;
}

/* Container de categorias */
.guide-categories-container {
    margin: 20px 0;
}

/* Seção de categoria */
.guide-category-section {
    margin-bottom: 40px;
}

.guide-category-section:last-child {
    margin-bottom: 20px;
}

/* Título da categoria */
.guide-category-title {
    font-size: 18px;
    font-weight: bold;
    color: #8b6914;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #d4af37;
    text-align: left;
}

/* Categoria oculta (quando não há resultados) */
.guide-category-section.hidden {
    display: none;
}

/* Responsividade */
@media (max-width: 768px) {
    .guide-card-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .guide-card {
        padding: 12px 8px;
        min-height: 120px;
    }
    
    .guide-card img {
        width: 56px;
        height: 56px;
    }
    
    .guide-card-title {
        font-size: 12px;
    }
    
    .guide-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .guide-toolbar-right {
        justify-content: center;
    }
    
    .search-input {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .guide-card-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
    
    .guide-card {
        padding: 10px 6px;
        min-height: 110px;
    }
    
    .guide-card img {
        width: 48px;
        height: 48px;
    }
    
    .guide-card-title {
        font-size: 11px;
    }
}

/* Estilos antigos mantidos para compatibilidade */
.NavigationBarLinkList {
    list-style: none;
    padding: 0;
    margin: 0;
}

.NavigationBarLinkList nobr {
    display: inline-block;
    margin: 5px;
}

.NavigationBarLinkList a {
    width: 185px;
    display: inline-block;
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
}

.NavigationBarLinkList a:hover {
    background-color: #0056b3;
    color: aqua;
    text-decoration: none;
}

.NavigationBarLinkList a.active {
    background-color: #facc5b;
    color: #ff6000;
}

.NavigationBarLinkList a.active:hover {
    background-color: #ffb500;
    color: #df5b19;
}

.guideTitle {
    margin: auto;
    font-family: martel;
    font-size: 26px;
}

.White {
    background-color: #fff !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.section {
    display: none;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.section.active {
    display: block;
}

.NavigationBarContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 5px;
}
