/* =========================
   Learn Minecraft Page
========================= */

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

    margin: 0 auto;

    padding: 40px 0 60px;
}


/* =========================
   Page Header
========================= */

.minecraft-guides-page .page-header {
    margin-bottom: 30px;
}


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

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

    padding: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(143, 113, 55, 0.32),
            rgba(35, 33, 28, 0.94) 48%
        );

    border: 2px solid #8f7137;
    border-radius: 12px;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.25),
        0 0 14px rgba(230, 189, 90, 0.05);
}


/* =========================
   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: #e6bd5a;

    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(143, 113, 55, 0.26);

    color: #f2d37c;

    border: 1px solid #8f7137;
    border-radius: 6px;

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


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

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

    overflow: hidden;

    width: 100%;

    background:
        linear-gradient(
            90deg,
            rgba(143, 113, 55, 0.18),
            #1b1a17 18%
        );

    border: 1px solid #8f7137;
    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;
}

.minecraft-search:focus-within {
    background-color: #1d1b17;

    border-color: #e6bd5a;

    box-shadow:
        inset 0 2px 7px rgba(0, 0, 0, 0.24),
        0 0 0 2px rgba(230, 189, 90, 0.07),
        0 0 10px rgba(230, 189, 90, 0.10);
}


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

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

    width: 46px;
    height: 46px;

    border-right: 1px solid rgba(143, 113, 55, 0.65);
}

.search-icon span {
    position: relative;

    box-sizing: border-box;

    width: 14px;
    height: 14px;

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

    opacity: 0.9;
}

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

    position: absolute;

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

    width: 7px;
    height: 2px;

    background-color: #e6bd5a;

    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: #7d776c;
}

.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: #e6bd5a;

    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: #211f1a;

    border: 1px solid #665637;
    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: #e6bd5a;
    --guide-accent-soft: rgba(230, 189, 90, 0.22);

    --guide-hover-bg: rgba(143, 113, 55, 0.28);

    --guide-icon-bg: rgba(143, 113, 55, 0.30);
    --guide-icon-dark: #2a2418;
    --guide-icon-border: #8f7137;

    --guide-title: #f2d37c;

    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(143, 113, 55, 0.11),
            #252525 25%
        );

    color: white;

    text-decoration: none;

    border-bottom: 1px solid #443d30;

    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: #9c7d41;

    opacity: 0.8;

    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(143, 113, 55, 0.22),
            #211d16
        );

    border: 1px solid #665637;
    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: #aaa79f;

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


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

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

    width: 42px;
    height: 42px;

    padding: 10px;

    background-color: rgba(143, 113, 55, 0.24);

    border: 1px solid #8f7137;
    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 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);
}


/* =========================
   Mob Spawning Theme
========================= */

.mob-spawning-guide {
    --guide-accent: #8dbb62;
    --guide-accent-soft: rgba(141, 187, 98, 0.24);

    --guide-hover-bg: rgba(79, 112, 54, 0.28);

    --guide-icon-bg: rgba(79, 112, 54, 0.30);
    --guide-icon-dark: #1d2618;
    --guide-icon-border: #587642;

    --guide-title: #a9d37e;
}


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

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

    padding: 28px 20px;

    background:
        linear-gradient(
            135deg,
            rgba(143, 113, 55, 0.14),
            #222222
        );

    color: #96918a;

    border: 1px solid #665637;
    border-radius: 10px;

    text-align: center;

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

.no-results strong {
    display: block;

    margin-bottom: 4px;

    color: #dac692;

    font-size: 13px;
}

.hidden {
    display: none;
}


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

@media (max-width: 700px) {

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

        padding-top: 28px;
    }

    .minecraft-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;
    }

}