/* Fonte pixel (opcional) */
@font-face {
    font-family: 'BigApple';
    src: url('../fonts/Big_Apple_3PM.ttf') format('truetype');
    /* Se for .woff2 (mais leve e melhor), use: format('woff2') */
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --bloom-bg: #1f3b44;
    --bloom-card: #2fa78638;
    --bloom-border: #40cb9f;
    --bloom-accent: #acffe5;
}

[data-md-color-scheme="bloomrise"] {
    --md-primary-fg-color: #40cb9f;
    --md-primary-fg-color--light: #6fe0bd;
    --md-primary-fg-color--dark: #2fa786;

    --md-accent-fg-color: #2fa786;

    --md-default-bg-color: #edf1f1;
    --md-default-fg-color: #eaf6f3;
}

* {
    font-family: "Montserrat", sans-serif;
}

.logo {
    text-align: center;
    margin-bottom: 3rem;
}

/* HERO */
.hero {
    background:
        linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)),
        url("../banner.png");
    background-size: cover;
    background-position: center;
    padding: 2rem 2rem;
    height: 400px;
    border-radius: 14px;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: bold;
}

.hero-subtitle {
    max-width: 700px;
    margin: 1rem auto 0;
    opacity: .95;
}

/* INFO CARD */
.bold {
    font-weight: 600 !important;
}

.info-card {
    background: var(--bloom-card);
    border: 2px solid var(--bloom-border);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}


/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.grid-item {
    background: var(--bloom-card);
    border: 2px solid var(--bloom-border);
    border-radius: 12px;
    padding: 1.2rem;
    transition: transform .15s ease, box-shadow .15s ease;
}

.grid-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 0 #00000055;
}

.grid-item h3 {
    margin-top: 0;
}

/* FOOTER NOTE */
.footer-note {
    opacity: .8;
    font-size: .9rem;
    text-align: center;
}

.item-page {
    max-width: 720px;
}

.item-header {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.item-icon {
    width: 96px;
    height: 96px;
    image-rendering: pixelated;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px;
}

.item-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.item-category {
    font-size: 0.8rem;
    color: #40cb9f;
    background: rgba(64, 203, 159, 0.15);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    width: fit-content;
}

/* Exemplo de cor diferente para cada categoria no card */
.item-category[data-category="books"] {
    background: #8e44ad22 !important;
    color: #9b59b6 !important;
}

.item-category[data-category="plants"] {
    background: #27ae6022 !important;
    color: #2ecc71 !important;
}

.item-category[data-category="materials"] {
    background: #f39c1222 !important;
    color: #f1c40f !important;
}

.item-category[data-category="consumables_hp"] {
    background: #e74c3c22 !important;
    color: #df2e2e !important;
}

.item-category[data-category="consumables_energy"] {
    background: #e67e2222 !important;
    color: #229ee6 !important;
}

.item-category[data-category="equipment"] {
    background: #e74c3c22 !important;
    color: #dbac34 !important;

}

.item-category[data-category="placeable"] {
    background: #410e5c !important;
    color: #8900d3 !important;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.item-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    padding: 0.8rem;
    border-radius: 14px;
    background: rgba(15, 42, 47, 0.85);
    border: 1px solid rgba(64, 203, 159, 0.25);
    text-decoration: none;
    transition: all 0.25s ease;
}

.item-card:hover {
    transform: translateY(-3px);
    border-color: #40cb9f;
    box-shadow: 0 8px 20px rgba(64, 203, 159, 0.25);
}

.item-card img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
}

.item-card strong {
    color: #40cb9f;
}

.item-card p {
    margin: 0;
    font-size: 0.85rem;
    color: #d6f4ec;
}

/* Seção de Crafting */
.recipe-box {
    background: rgb(64 203 159 / 5%);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--bloom-border);
}

.recipe-box ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.recipe-box li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.mini-icon {
    width: 24px;
    height: 24px;
    image-rendering: pixelated;
}

/* Grade de "Usado em" */
.used-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.recipe-card a{
    color: #127c7c !important;
}
.mini-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bloom-card);
    padding: 5px 10px;
    border-radius: 6px;
    text-decoration: none !important;
    color: #05442e !important;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.mini-card:hover {
    border-color: var(--bloom-border);
    background: rgba(64, 203, 159, 0.2);
}

.mini-card img {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
}

/* Centraliza os títulos da Hero */
.hero-title {
    font-family: 'BigApple', cursive;
    letter-spacing: 1px !important;
    /* Se quiser o toque pixel art */
    font-size: 3rem !important;
    color: white !important;
    text-shadow: 2px 2px 0px #000;
}

/* Deixa os links da grid com aparência de botões de menu */
.grid-item.item-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    color: var(--md-default-fg-color) !important;
    border: 2px solid var(--bloom-border);
}

.grid-item.item-card h3 {
    color: var(--bloom-accent);
    margin: 10px 0;
}

.grid-item.item-card p {
    font-size: 0.8rem;
    line-height: 1.4;
}

/* Search area */

/* Container da busca */
.md-search__inner {
    background-color: rgba(15, 42, 47, 0.9);
    /* Fundo escuro Bloomrise */
    border-radius: 8px;
    border: 1px solid var(--bloom-border);
}

/* O campo de texto em si */
.md-search__input {
    color: var(--bloom-accent) !important;
}

/* Cor do ícone de lupa */
.md-search__icon {
    color: var(--bloom-border) !important;
}

/* Quando você clica para digitar */
.md-search__input:focus+.md-search__icon {
    color: var(--bloom-accent) !important;
}

/* O painel que desce com os resultados */
.md-search-result {
    background-color: var(--bloom-bg) !important;
    border: 2px solid var(--bloom-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* Título de cada item no resultado */
.md-search-result__link {
    border-bottom: 1px solid rgba(64, 203, 159, 0.1);
    transition: background 0.2s ease;
}

/* Efeito de Hover no resultado */
.md-search-result__item:hover {
    background-color: rgba(64, 203, 159, 0.15) !important;
}

/* Destaque da palavra que o usuário digitou */
.md-search-result mark {
    background-color: var(--bloom-border);
    color: #000;
    padding: 0 4px;
    border-radius: 2px;
    font-weight: bold;
}

/* Texto de descrição nos resultados */
.md-search-result__teaser {
    color: #d6f4ec;
    opacity: 0.8;
}

.md-search__backdrop {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    /* Dá um efeito de foco na busca */
}

.md-search-result__meta {
    background-color: #00000000 !important;
    color: #ffffff !important;
    font-size: .64rem;
    line-height: 1.8rem;
    padding: 0 .8rem;
    scroll-snap-align: start;
}

.md-search-result__icon:after {
    background-color: rgb(64 203 159) !important;
}

.md-search-result .md-typeset {
    color: #ffffff !important;
}

.md-search-result__more>summary>div {
    color: #92dac9 !important;
}

[data-md-toggle=search]:checked~.md-header .md-search__form {
    background-color: #1f3b4478 !important;
}

@media screen and (min-width: 60em) {
    .md-search__scrollwrap {
        scrollbar-color: #40cb9f #142a2e !important;
    }
}

.md-search__scrollwrap {
    background-color: #ffffff00 !important;
    box-shadow: none !important;
}

.md-sidebar__inner label {
    color: #0f2b2b !important;
}

.md-sidebar__inner a {
    color: #007a4f !important;
}

.md-sidebar__inner {
    background: var(--bloom-card);
    border: 2px solid var(--bloom-border);
    color: white;
    border-radius: 10px;
    padding: 1rem;
}

@media screen and (min-width: 76.25em) {
    .md-nav--primary .md-nav__title {
        background: #00000000 !important;
        box-shadow: none !important;
    }
}

@media screen and (max-width:400px) {
    .hero-title {
        font-size: 40px !important;
    }
}

@media screen and (min-width: 76.25em) {
    .md-grid {
        max-width: 75rem;
        /* Aumenta a largura total (o padrão é 61rem) */
    }
}

/* Customização para Personagens */
.character-header {
    background: rgba(15, 42, 47, 0.9) !important;
    display: flex;
    flex-wrap: wrap; /* Ajusta para mobile */
}

.character-stats .recipe-box {
    border-left: 3px solid var(--bloom-accent);
    font-size: 0.85rem;
    margin: 0;
}

@media screen and (max-width: 600px) {
    .character-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
}

.item-page {
    max-width: 800px;
    margin: 0 auto;
}

.item-title {
    margin: 0 !important;
    font-size: 2rem !important;
    color: var(--bloom-accent);
}

/* Labels com Ícones */
.icon-label {
    display: block;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--bloom-border);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Flavor Text (Descrição) */
.flavor-text {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border-left: 4px solid var(--bloom-border);
}

.flavor-text p {
    font-style: italic;
    margin: 0;
    opacity: 0.9;
}

/* Box de Obtenção */
.obtain-box {
    padding: 1rem;
    background: var(--bloom-card);
    border: 1px solid var(--bloom-border);
    border-radius: 8px;
}

.obtain-content {
    font-size: 0.95rem;
}

/* Grid de Efeitos/Atributos */
.effects-grid {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.effect-tag {
    background: rgba(64, 203, 159, 0.1);
    border: 1px solid var(--bloom-border);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Ajustes de Títulos de Seção */
.item-section h3 {
    margin-top: 1.5rem !important;
    font-size: 1.1rem !important;
    border-bottom: 1px dashed var(--bloom-border);
    padding-bottom: 5px;
}

/* Melhora o espaçamento dos blocos de Descrição e Obtenção */
.item-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--bloom-border);
}

.item-page .recipe-box {
    padding: 1.2rem;
    border-radius: 12px;
    line-height: 1.6;
}

/* Recipe Cards */

.recipes-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 3rem;
}

.recipe-card-full {
    background: var(--bloom-card);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 4px solid var(--bloom-border); /* Cor padrão */
    border-radius: 6px;
    padding: 10px;
    transition: all transform 0.2s;
}

.recipe-card-full:hover {
    transform: translateY(-2px);
    background: #2fa7871b;
}

.recipe-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(64, 203, 159, 0.2);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.yield-badge {
    margin-left: auto;
    background: var(--bloom-border);
    color: var(--bloom-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.recipe-card-full[data-category="consumables_hp"]{
    border-left-color: #df2e2e7c;
}
.recipe-card-full[data-category="consumables_energy"] {
    border-left-color: #229ee685;
}

.recipe-card-full[data-category="materials"] {
    border-left-color: rgba(241, 196, 15, 0.504)
}

.recipe-card-full[data-category="equipment"] {
    border-left-color: #dbac346e; /* Azul/Equipamento */
}
.recipe-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 10px;
    background: rgb(195 225 217 / 74%);
    border-radius: 8px;
}

.filter-btn {
    background: var(--bloom-card);
    border: 1px solid var(--bloom-border);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: rgba(64, 203, 159, 0.2);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--bloom-border);
    color: var(--bloom-bg);
    font-weight: bold;
    box-shadow: 0 0 10px var(--bloom-border);
}

/* Garante que o título da categoria suma junto com a seção */
.recipe-category-section {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Estilo dos ingredientes dentro do card */
.recipe-ingredients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.ing-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 400;
    background: rgb(97 159 143 / 32%);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.ing-item img {
    width: 20px;
    height: 20px;
}