/* Estilos para a página wiki */
.wiki-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Seções */
.secao {
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.secao h2 {
    color: var(--verde-escuro);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    text-align: center;
}

.secao p {
    color: var(--dark-gray);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Barra de pesquisa */
.search-container {
    margin-bottom: 2rem;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    border: 2px solid var(--verde-medio);
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--verde-escuro);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--verde-medio);
    font-size: 1.2rem;
}

/* Navegação por categorias */
.categories-nav {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.category-group {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.category-group h3 {
    color: var(--verde-escuro);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--verde-suave);
    font-family: 'Playfair Display', serif;
}

.subcategories {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.category-tab {
    padding: 0.8rem 1.5rem;
    background: var(--verde-suave);
    border: none;
    border-radius: 8px;
    color: var(--verde-medio);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.category-tab:hover {
    background: var(--verde-medio);
    color: white;
    transform: translateY(-2px);
}

.category-tab.active {
    background: var(--verde-medio);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.category-tab i {
    font-size: 1.1rem;
}

/* Grid de cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
    min-height: 400px;
}

.species-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.species-card:hover {
    transform: translateY(-5px);
}

.species-image {
    width: 100%;
    aspect-ratio: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    background: #f8f8f8;
}

.species-content {
    padding: 1.5rem;
}

.species-name {
    font-size: 1.5rem;
    color: var(--verde-escuro);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.scientific-name {
    font-style: italic;
    color: var(--verde-medio);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.species-info {
    margin-top: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.info-item i {
    color: var(--verde-medio);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

.info-item p {
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

.conservation-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
}

.status-endangered {
    background: var(--laranja-suave);
    color: var(--accent-orange);
}

.status-vulnerable {
    background: #fff3cd;
    color: #856404;
}

.status-least-concern {
    background: #d4edda;
    color: #155724;
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.species-card {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsividade */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .wiki-container {
        padding: 1rem;
    }

    .secao h2 {
        font-size: 2rem;
    }

    .category-group {
        padding: 1rem;
    }

    .subcategories {
        gap: 0.5rem;
    }

    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .species-card {
        max-width: 100%;
    }
}

/* Estilos para o botão de voltar ao topo */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--verde-medio);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background: var(--verde-escuro);
}

/* Estilos para o menu em cascata */
.cascade-menu {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.menu-group {
    flex: 1;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.menu-header {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-header:hover {
    background: var(--light-gray);
}

.menu-header i:first-child {
    font-size: 1.5rem;
}

.menu-header[data-group="fauna"] i:first-child {
    color: var(--verde-escuro);
}


.menu-header span {
    flex: 1;
    text-align: left;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--dark-gray);
}

.menu-header i:last-child {
    color: var(--dark-gray);
    transition: transform 0.3s ease;
}

.menu-header.active i:last-child {
    transform: rotate(180deg);
}

.menu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.menu-content.active {
    max-height: 1000px;
}

.submenu-group {
    border-top: 1px solid var(--light-gray);
}

.submenu-header {
    width: 100%;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submenu-header:hover {
    background: var(--light-gray);
}

.submenu-header i:first-child {
    font-size: 1.2rem;
}

.menu-group[data-group="fauna"] .submenu-header i:first-child {
    color: var(--verde-escuro);
}


.submenu-header span {
    flex: 1;
    text-align: left;
    font-weight: 500;
    color: var(--dark-gray);
}

.submenu-header i:last-child {
    color: var(--dark-gray);
    transition: transform 0.3s ease;
}

.submenu-header.active i:last-child {
    transform: rotate(90deg);
}

.submenu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.submenu-content.active {
    max-height: 500px;
}

.category-tab {
    width: 100%;
    padding: 0.8rem 1.5rem 0.8rem 3rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

.category-tab:hover {
    background: var(--light-gray);
}

.menu-group[data-group="fauna"] .category-tab:hover {
    color: var(--verde-escuro);
}


.category-tab.active {
    color: var(--white);
}

.menu-group[data-group="fauna"] .category-tab.active {
    background: var(--verde-escuro);
}


.category-tab i {
    font-size: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .cascade-menu {
        flex-direction: column;
        max-width: 100%;
    }

    .menu-group {
        width: 100%;
    }
}

.initial-message {
    text-align: center;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.initial-message i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    display: block;
}

.initial-message p {
    color: #6c757d;
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.5;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn-pagination {
    background: var(--verde-medio);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-pagination:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

.btn-pagination:not(:disabled):hover {
    background: var(--accent-orange);
}

/* Animação para o aviso de Em Desenvolvimento */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 6px 20px rgba(230, 81, 0, 0.4);
    }
}

/* Estilos para o aviso de Em Desenvolvimento */
.dev-notice {
    background: linear-gradient(135deg, #E65100 0%, #FF6F00 100%) !important;
    color: white !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    margin: 20px 0 !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(230, 81, 0, 0.3) !important;
    animation: pulse 2s ease-in-out infinite !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.dev-notice h3 {
    margin: 0 0 6px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: white !important;
}

.dev-notice p {
    margin: 0 !important;
    font-size: 14px !important;
    opacity: 0.95 !important;
    color: white !important;
    line-height: 1.4 !important;
}

.dev-notice i {
    font-size: 20px !important;
    margin-bottom: 6px !important;
    display: block !important;
    color: white !important;
}

