/*
Theme Name: Resource Shelter
Theme URI: https://free.51nmky.com
Author: Codex
Description: A compact WordPress theme for game resource directory sites.
Version: 0.2.0
Text Domain: resource-shelter
*/

:root {
    --rs-bg: #fff8fb;
    --rs-surface: #ffffff;
    --rs-line: #dfe4ea;
    --rs-text: #20242a;
    --rs-muted: #66737f;
    --rs-accent: #f21768;
    --rs-accent-strong: #c70f50;
    --rs-header: #ffffff;
}

.rs-guide-body {
    margin: 0;
    overflow: hidden;
}

.rs-guide {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 28px;
    background:
        linear-gradient(180deg, rgba(255, 217, 231, .28), rgba(255, 115, 162, .22)),
        var(--rs-guide-bg);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.rs-guide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 66%, rgba(255,255,255,.5), transparent 12%),
        radial-gradient(circle at 82% 34%, rgba(255,255,255,.45), transparent 14%),
        linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.18));
    backdrop-filter: blur(2px);
}

.rs-guide-panel {
    display: grid;
    justify-items: center;
    width: min(760px, 100%);
    padding: 34px 20px;
    text-align: center;
}

.rs-guide-kicker {
    margin: 0 0 6px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 3px 14px rgba(0,0,0,.34);
}

.rs-guide h1 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(42px, 8vw, 72px);
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 4px 22px rgba(0,0,0,.38);
}

.rs-guide h1 span {
    color: #ff4f93;
}

.rs-guide-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.rs-guide-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(31,38,46,.2);
}

.rs-guide-primary {
    background: #ff5f9e;
}

.rs-guide-secondary {
    background: #54c8a0;
}

.rs-guide-search {
    display: flex;
    width: min(560px, 100%);
    min-height: 58px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.42);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(31,38,46,.18);
}

.rs-guide-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0 24px;
    color: #fff;
    font-size: 16px;
    outline: 0;
}

.rs-guide-search input::placeholder {
    color: rgba(255,255,255,.92);
}

.rs-guide-search button {
    width: 64px;
    border: 0;
    background: rgba(255,255,255,.25);
    color: #1667a8;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
}

.rs-guide-deco {
    position: absolute;
    color: #ff79aa;
    font-size: clamp(48px, 8vw, 82px);
    filter: drop-shadow(0 10px 18px rgba(31,38,46,.18));
}

.rs-guide-star {
    left: 18%;
    bottom: 28%;
    color: #f5c95a;
}

.rs-guide-heart {
    right: 12%;
    top: 34%;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #fff;
    color: var(--rs-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.rs-site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .96);
    color: var(--rs-text);
    border-bottom: 1px solid rgba(242, 23, 104, .12);
    box-shadow: 0 8px 28px rgba(31, 38, 46, .07);
    backdrop-filter: blur(12px);
}

.rs-header-inner,
.rs-main,
.rs-footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.rs-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 78px;
}

.rs-brand {
    flex: 0 0 auto;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.rs-brand span {
    color: var(--rs-accent);
}

.rs-nav {
    flex: 1;
}

.rs-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 10px;
    color: #676f78;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.rs-nav a:hover,
.rs-nav .current-menu-item > a {
    background: #ffd4e3;
    color: var(--rs-accent);
}

.rs-search {
    display: flex;
    flex: 0 1 230px;
    min-height: 42px;
    background: #fff;
    border: 1px solid var(--rs-line);
    border-radius: 999px;
    overflow: hidden;
}

.rs-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 0 10px;
    font-size: 14px;
}

.rs-search button {
    border: 0;
    padding: 0 12px;
    background: transparent;
    color: var(--rs-muted);
    font-weight: 800;
    cursor: pointer;
}

.rs-main {
    padding: 24px 0 56px;
}

.rs-content {
    min-height: 56vh;
}

.rs-article,
.rs-archive-head,
.rs-empty {
    background: var(--rs-surface);
    border: 1px solid var(--rs-line);
    border-radius: 8px;
    padding: 22px;
}

.rs-archive-head {
    margin-bottom: 18px;
}

.rs-archive-head h1,
.rs-article h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.18;
    letter-spacing: 0;
}

.rs-entry-meta {
    color: var(--rs-muted);
    font-size: 14px;
}

.rs-entry-content {
    margin-top: 18px;
}

.rs-front-page .rs-entry-content {
    margin-top: 0;
}

.rs-resource-page .rs-entry-content {
    margin-top: 0;
}

.rs-entry-content > :first-child {
    margin-top: 0;
}

.rs-loop {
    display: grid;
    gap: 14px;
}

.rs-loop-item {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    background: var(--rs-surface);
    border: 1px solid var(--rs-line);
    border-radius: 8px;
}

.rs-loop-cover {
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background: #252a31;
    color: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
}

.rs-loop-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rs-loop-cover span {
    font-size: 36px;
    font-weight: 800;
}

.rs-loop-body h2 {
    margin: 0 0 8px;
    font-size: 20px;
    letter-spacing: 0;
}

.rs-loop-body h2 a {
    text-decoration: none;
}

.rs-loop-body p {
    margin: 0;
    color: var(--rs-muted);
}

.rs-site-footer {
    border-top: 0;
    background: linear-gradient(135deg, #f21768 0%, #ff78a5 100%);
    color: #fff;
}

.rs-footer-inner {
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 34px 0;
    color: #fff;
    font-size: 14px;
}

.rs-footer-social {
    display: flex;
    gap: 12px;
}

.rs-footer-social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #fff;
    color: var(--rs-accent);
    text-decoration: none;
    font-weight: 900;
}

.rs-footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
}

.rs-footer-nav a,
.rs-footer-copy a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.rs-footer-copy {
    display: grid;
    gap: 6px;
    text-align: center;
}

.rs-footer-copy p {
    margin: 0;
}

.rs-pagination {
    margin: 48px 0 20px;
}

.rs-pagination .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rs-pagination a,
.rs-pagination span {
    display: grid;
    place-items: center;
    min-width: 48px;
    height: 48px;
    border: 2px solid var(--rs-accent);
    border-radius: 999px;
    color: var(--rs-accent);
    background: #fff;
    font-weight: 900;
    text-decoration: none;
}

.rs-pagination .current {
    background: var(--rs-accent);
    color: #fff;
    box-shadow: 0 14px 30px rgba(242, 23, 104, .28);
}

.rs-page-jump {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    margin: 0 auto 38px;
    padding: 16px 18px;
    border: 1px solid var(--rs-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 38, 46, .08);
    font-weight: 800;
}

.rs-page-jump input {
    width: 76px;
    height: 40px;
    border: 2px solid var(--rs-accent);
    border-radius: 8px;
    text-align: center;
}

.rs-page-jump button {
    height: 40px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--rs-accent);
    color: #fff;
    font-weight: 900;
}

@media (max-width: 860px) {
    .rs-header-inner {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 12px 0;
    }

    .rs-nav ul {
        justify-content: flex-start;
    }

    .rs-search {
        flex-basis: auto;
        width: 100%;
    }

    .rs-loop-item {
        grid-template-columns: 1fr;
    }
}
