/* =========================
   Tool Guides Page
========================= */

.tool-guides-page {
    width: min(100% - 32px, 1000px);

    margin: 0 auto;

    padding: 40px 0 60px;
}


/* =========================
   Search Panel
========================= */

.guide-search-panel {
    margin-bottom: 34px;

    padding: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(106, 80, 39, 0.30),
            rgba(35, 35, 35, 0.92) 48%
        );

    border: 2px solid #78603b;
    border-radius: 12px;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.25),
        0 0 14px rgba(209, 168, 92, 0.04);
}


/* =========================
   Search Header
========================= */

.search-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 18px;
}

.search-kicker {
    display: block;

    margin-bottom: 5px;

    color: #ddb86d;

    font-size: 9px;
    letter-spacing: 0.12em;
}

.search-header h2 {
    margin: 0;

    color: white;

    font-size: 19px;
}


/* =========================
   Guide Count
========================= */

.guide-count {
    flex-shrink: 0;

    padding: 7px 9px;

    background-color: rgba(106, 80, 39, 0.28);

    color: #d8bd83;

    border: 1px solid #78603b;
    border-radius: 6px;

    font-size: 8px;
    letter-spacing: 0.08em;
}


/* =========================
   Search
========================= */

.guide-search {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;

    overflow: hidden;

    width: 100%;

    background:
        linear-gradient(
            90deg,
            rgba(106, 80, 39, 0.22),
            #181817 18%
        );

    border: 1px solid #78603b;
    border-radius: 9px;

    box-shadow:
        inset 0 2px 7px rgba(0, 0, 0, 0.24);

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.guide-search:focus-within {
    border-color: #d1a85c;

    box-shadow:
        inset 0 2px 7px rgba(0, 0, 0, 0.24),
        0 0 0 2px rgba(209, 168, 92, 0.07),
        0 0 10px rgba(209, 168, 92, 0.10);
}


/* =========================
   Search Icon
========================= */

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    border-right: 1px solid rgba(120, 96, 59, 0.65);
}

.search-icon span {
    position: relative;

    box-sizing: border-box;

    width: 14px;
    height: 14px;

    border: 2px solid #ddb86d;
    border-radius: 50%;

    opacity: 0.85;
}

.search-icon span::after {
    content: "";

    position: absolute;

    right: -6px;
    bottom: -4px;

    width: 7px;
    height: 2px;

    background-color: #ddb86d;

    border-radius: 2px;

    transform: rotate(45deg);
    transform-origin: left center;
}


/* =========================
   Search Input
========================= */

.search-input {
    box-sizing: border-box;

    width: 100%;
    height: 46px;

    padding: 0 14px;

    background: transparent;

    color: white;

    border: none;
    outline: none;

    font-family: inherit;
    font-size: 12px;
}

.search-input::placeholder {
    color: #77736d;
}

.search-input::-webkit-search-cancel-button {
    cursor: pointer;
}


/* =========================
   Directory
========================= */

.guide-directory {
    width: 100%;
}

.directory-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 14px;
}

.directory-label {
    display: block;

    margin-bottom: 5px;

    color: #ddb86d;

    font-size: 9px;
    letter-spacing: 0.12em;
}

.directory-header h2 {
    margin: 0;

    color: white;

    font-size: 19px;
}


/* =========================
   Guide List
========================= */

.guide-list {
    overflow: hidden;

    background-color: #211f1c;

    border: 1px solid #5e513c;
    border-radius: 12px;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.24);
}

.guide-list:empty {
    display: none;
}


/* =========================
   Guide Row
========================= */

.guide-row {
    --guide-accent: #d1a85c;
    --guide-accent-soft: rgba(209, 168, 92, 0.25);

    --guide-hover-bg: rgba(106, 80, 39, 0.24);

    --guide-icon-bg: rgba(106, 80, 39, 0.28);
    --guide-icon-dark: #1c1b19;
    --guide-icon-border: #78603b;

    --guide-title: #e0c486;

    position: relative;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;

    gap: 18px;

    min-height: 88px;

    padding: 18px 20px;

    background:
        linear-gradient(
            90deg,
            rgba(106, 80, 39, 0.13),
            #252525 25%
        );

    color: white;

    text-decoration: none;

    border-bottom: 1px solid #403b33;

    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.guide-row:last-child {
    border-bottom: none;
}


/* =========================
   Guide Marker
========================= */

.guide-row::before {
    content: "";

    position: absolute;

    left: 0;
    top: 22%;

    width: 2px;
    height: 56%;

    background-color: #92784a;

    transition:
        top 0.18s ease,
        height 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}


/* =========================
   Guide Icon
========================= */

.guide-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    background:
        linear-gradient(
            135deg,
            rgba(106, 80, 39, 0.24),
            #1c1b19
        );

    border: 1px solid #62543d;
    border-radius: 9px;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.guide-icon {
    width: 42px;
    height: 42px;

    object-fit: contain;

    transition:
        transform 0.18s ease;
}


/* =========================
   Guide Text
========================= */

.guide-row-content {
    min-width: 0;
}

.guide-row-content h3 {
    margin: 0 0 6px;

    color: #f2f2f2;

    font-size: 15px;

    transition:
        color 0.18s ease,
        text-shadow 0.18s ease;
}

.guide-row-content p {
    margin: 0;

    max-width: 650px;

    color: #a9a9a9;

    font-size: 11px;
    line-height: 1.5;
}


/* =========================
   Arrow
========================= */

.arrow-img {
    box-sizing: border-box;

    width: 42px;
    height: 42px;

    padding: 10px;

    background-color: rgba(106, 80, 39, 0.28);

    border: 1px solid #78603b;
    border-radius: 8px;

    object-fit: contain;

    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}


/* =========================
   Shared Guide Hover
========================= */

.guide-row:hover {
    background:
        linear-gradient(
            90deg,
            var(--guide-hover-bg),
            #292929 34%
        );
}

.guide-row:hover::before {
    top: 12%;

    height: 76%;

    background-color: var(--guide-accent);

    box-shadow:
        0 0 7px var(--guide-accent-soft);
}

.guide-row:hover .guide-icon-container {
    transform: translateY(-1px);

    background:
        linear-gradient(
            135deg,
            var(--guide-icon-bg),
            var(--guide-icon-dark)
        );

    border-color: var(--guide-icon-border);
}

.guide-row:hover .guide-icon {
    transform: scale(1.08);
}

.guide-row:hover .guide-row-content h3 {
    color: var(--guide-title);

    text-shadow:
        0 0 6px var(--guide-accent-soft);
}

.guide-row:hover .arrow-img {
    transform: translateX(3px);

    background-color: var(--guide-hover-bg);

    border-color: var(--guide-accent);

    box-shadow:
        0 0 8px var(--guide-accent-soft);
}


/* =========================
   End Portal Guide Theme
========================= */

.endportal-guide {
    --guide-accent: #53bdb5;
    --guide-accent-soft: rgba(83, 189, 181, 0.28);

    --guide-hover-bg: rgba(57, 125, 121, 0.26);

    --guide-icon-bg: rgba(57, 125, 121, 0.30);
    --guide-icon-dark: #1b2322;
    --guide-icon-border: #397d79;

    --guide-title: #72d5ce;
}


/* =========================
   Future Material Guide
========================= */

.material-guide {
    --guide-accent: #d69a55;
    --guide-accent-soft: rgba(214, 154, 85, 0.25);

    --guide-hover-bg: rgba(138, 92, 48, 0.26);

    --guide-icon-bg: rgba(138, 92, 48, 0.30);
    --guide-icon-dark: #261e17;
    --guide-icon-border: #8a603b;

    --guide-title: #e2b477;
}


/* =========================
   Future Circle Guide
========================= */

.circle-guide {
    --guide-accent: #d26070;
    --guide-accent-soft: rgba(210, 96, 112, 0.25);

    --guide-hover-bg: rgba(135, 69, 78, 0.26);

    --guide-icon-bg: rgba(135, 69, 78, 0.30);
    --guide-icon-dark: #2a2022;
    --guide-icon-border: #87454e;

    --guide-title: #ed8794;
}


/* =========================
   Future Villager Guide
========================= */

.villager-guide {
    --guide-accent: #4bd477;
    --guide-accent-soft: rgba(75, 212, 119, 0.25);

    --guide-hover-bg: rgba(63, 143, 91, 0.28);

    --guide-icon-bg: rgba(63, 143, 91, 0.30);
    --guide-icon-dark: #18271e;
    --guide-icon-border: #3f8f5b;

    --guide-title: #6fdd91;
}


/* =========================
   Future Enchantment Guide
========================= */

.enchantment-guide {
    --guide-accent: #a96bd8;
    --guide-accent-soft: rgba(169, 107, 216, 0.25);

    --guide-hover-bg: rgba(118, 80, 141, 0.28);

    --guide-icon-bg: rgba(118, 80, 141, 0.30);
    --guide-icon-dark: #211b26;
    --guide-icon-border: #76508d;

    --guide-title: #c79cff;
}


/* =========================
   Future Nether Guide
========================= */

.nether-guide {
    --guide-accent: #d15d70;
    --guide-accent-soft: rgba(209, 93, 112, 0.25);

    --guide-hover-bg: rgba(130, 45, 58, 0.26);

    --guide-icon-bg: rgba(130, 45, 58, 0.30);
    --guide-icon-dark: #251a1c;
    --guide-icon-border: #82404c;

    --guide-title: #e67888;
}


/* =========================
   No Results
========================= */

.no-results {
    margin-top: 18px;

    padding: 28px 20px;

    background:
        linear-gradient(
            135deg,
            rgba(106, 80, 39, 0.14),
            #222222
        );

    color: #96918a;

    border: 1px solid #5e513c;
    border-radius: 10px;

    text-align: center;

    font-size: 11px;
    line-height: 1.6;
}

.no-results strong {
    display: block;

    margin-bottom: 4px;

    color: #c9b991;

    font-size: 13px;
}

.hidden {
    display: none;
}


/* =========================
   Mobile
========================= */

@media (max-width: 700px) {

    .tool-guides-page {
        width: min(100% - 20px, 1000px);

        padding-top: 28px;
    }

    .guide-search-panel {
        padding: 20px;
    }

    .guide-row {
        gap: 14px;

        min-height: 82px;

        padding: 16px 14px;
    }

    .guide-icon-container {
        width: 50px;
        height: 50px;
    }

    .guide-icon {
        width: 36px;
        height: 36px;
    }

    .guide-row-content h3 {
        font-size: 13px;
    }

    .guide-row-content p {
        font-size: 10px;
    }

    .arrow-img {
        width: 36px;
        height: 36px;

        padding: 8px;
    }

}


@media (max-width: 500px) {

    .search-header {
        align-items: flex-start;
    }

    .guide-count {
        display: none;
    }

    .guide-row {
        grid-template-columns: 50px 1fr;
    }

    .arrow-img {
        display: none;
    }

}