
/* ==========================================
   FPK ARMORY — FPK COMMUNITY THEME
   Matches the original FPK brown/orange style
   ========================================== */

:root {
    --bg: #110b08;
    --bg2: #1c120d;
    --surface: #241810;
    --surface-soft: #302016;
    --line: #57351f;
    --ink: #fff3e7;
    --muted: #cbb8a8;
    --gold: #f5a33d;
    --gold2: #ffc16a;
    --gold-glow: rgba(245, 163, 61, 0.15);
}

/* ==========================================
   HOMEPAGE HERO
   ========================================== */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 0;
    background:
        radial-gradient(
            ellipse at 50% 5%,
            rgba(245, 163, 61, 0.13),
            transparent 58%
        ),
        linear-gradient(180deg, #1c120d, #110b08);
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.13;
    background-image:
        linear-gradient(
            45deg,
            transparent 47%,
            #d99140 49%,
            transparent 50%
        ),
        linear-gradient(
            -45deg,
            transparent 47%,
            #d99140 49%,
            transparent 50%
        );
    background-size: 110px 110px;
    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 90%
    );
}

.hero-inner {
    text-align: center;
    padding-top: 85px;
    padding-bottom: 65px;
}

.eyebrow,
.kicker {
    color: var(--gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.eyebrow-line {
    width: 34px;
    height: 1px;
    background: var(--gold);
    opacity: 0.6;
}

.hero h1 {
    margin: 30px 0 24px;
    color: var(--ink);
    font-size: clamp(46px, 6vw, 82px);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.hero h1 span,
.page-hero h1 span,
.section-heading h2 span,
.panel-heading h2 span {
    color: var(--gold2);
}

.hero p {
    max-width: 630px;
    margin: 0 auto;
    color: var(--text-secondary, #cbb8a8);
    font-size: 16px;
    line-height: 1.8;
}

/* ==========================================
   PLAYER SEARCH
   ========================================== */

.search-form {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 650px;
    margin: 38px auto 16px;
    padding: 7px 7px 7px 18px;
    background: #241810;
    border: 1px solid #765034;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.search-icon {
    flex: none;
    color: var(--gold);
    font-size: 28px;
    line-height: 1;
}

.search-form input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ink);
    font-size: 14px;
}

.search-form input::placeholder {
    color: #ad9481;
}

.search-form .btn-primary,
.btn-primary {
    background: linear-gradient(180deg, #ffc16a, #ed9635);
    border: 1px solid #f5ad53;
    color: #241409;
}

.search-form .btn-primary:hover,
.btn-primary:hover {
    background: linear-gradient(180deg, #ffd18b, #ffa748);
}

.btn-outline {
    background: rgba(36, 24, 16, 0.8);
    border: 1px solid #765034;
    color: #fff3e7;
}

.btn-outline:hover {
    background: #352215;
    border-color: var(--gold);
    color: var(--gold2);
}

.browse-btn {
    min-width: 210px;
    margin-top: 5px;
}

/* ==========================================
   HOMEPAGE STATISTICS
   ========================================== */

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin: 58px auto 0;
    max-width: 720px;
}

.hero-stats > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 5px 20px;
    border-right: 1px solid #57351f;
}

.hero-stats > div:last-child {
    border-right: none;
}

.hero-stats strong {
    color: var(--gold2);
    font-size: 27px;
    font-weight: 900;
    line-height: 1.2;
}

.hero-stats strong small {
    font-size: 12px;
    text-transform: uppercase;
}

.hero-stats span {
    color: #bca895;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
}

/* ==========================================
   HOMEPAGE SECTIONS
   ========================================== */

.section {
    padding: 70px 0;
}

.section-players {
    background: linear-gradient(180deg, #1c120d, #110b08);
}

.section-info {
    background: #110b08;
    padding-top: 30px;
    padding-bottom: 80px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 25px;
    margin-bottom: 30px;
}

.section-heading h2 {
    margin: 10px 0;
    font-size: clamp(26px, 3vw, 37px);
    font-weight: 900;
}

.section-heading p {
    color: var(--muted);
    font-size: 14px;
}

.text-link {
    color: var(--gold2);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    color: #fff3e7;
}

/* ==========================================
   PLAYER CARDS
   ========================================== */

.player-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.player-card {
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;
    padding: 18px;
    background: linear-gradient(180deg, #27190f, #1a110d);
    border: 1px solid #57351f;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.player-card:hover {
    border-color: #c4853b;
    transform: translateY(-3px);
}

.player-avatar {
    width: 64px;
    height: 64px;
    object-fit: contain;
    image-rendering: pixelated;
    padding: 4px;
    border-radius: 8px;
    background: #110b08;
}

.player-card-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.player-card-main strong {
    color: #fff3e7;
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-card-main span,
.player-card-level small {
    color: #ad9887;
    font-size: 11px;
}

.player-card-level {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
}

.player-card-level strong {
    color: var(--gold2);
    font-size: 24px;
}

.player-arrow {
    color: var(--gold);
}

/* ==========================================
   FEATURE CARDS
   ========================================== */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card {
    background: linear-gradient(180deg, #27190f, #1a110d);
    border: 1px solid #57351f;
    border-radius: 10px;
    padding: 30px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

.feature-icon {
    color: var(--gold);
    font-size: 32px;
}

.feature-card h3 {
    margin: 20px 0 10px;
    color: var(--ink);
    font-size: 19px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ==========================================
   PLAYER DIRECTORY
   ========================================== */

.page-hero {
    padding: 65px 0 50px;
    background: linear-gradient(135deg, #241810, #110b08);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(38px, 5vw, 60px);
}

.page-hero p {
    color: var(--muted);
}

.directory-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.directory-filters input,
.directory-filters select {
    min-width: 0;
    padding: 13px 16px;
    background: #241810;
    color: var(--ink);
    border: 1px solid #765034;
    border-radius: 8px;
}

.directory-filters input {
    flex: 1;
}

.directory-filters select {
    width: 220px;
}

.directory-filters input:focus,
.directory-filters select:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.results-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}

.results-heading h2 {
    margin: 0;
    font-size: 23px;
}

.results-heading span,
.pagination span {
    color: var(--muted);
    font-size: 13px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

/* ==========================================
   PROFILE PAGE
   ========================================== */

.profile-hero {
    padding: 32px 0 45px;
    background: linear-gradient(135deg, #241810, #110b08);
    border-bottom: 1px solid var(--line);
}

.back-link {
    color: var(--gold2);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.profile-header {
    display: flex;
    align-items: flex-end;
    gap: 35px;
    padding-top: 30px;
}

.profile-body {
    object-fit: contain;
    image-rendering: pixelated;
}

.profile-heading {
    flex: 1;
    min-width: 0;
}

.profile-heading h1 {
    margin: 12px 0 18px;
    font-size: clamp(36px, 5vw, 60px);
    overflow-wrap: anywhere;
}

.profile-level {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.1em;
}

.profile-level strong {
    margin-left: 8px;
    color: var(--gold2);
    font-size: 22px;
}

.progress-track {
    height: 9px;
    max-width: 475px;
    margin: 17px 0 10px;
    background: #493020;
    border-radius: 99px;
    overflow: hidden;
}

.progress-track > div {
    height: 100%;
    background: linear-gradient(90deg, #ed9635, #ffc16a);
}

.profile-meta {
    color: var(--muted);
    font-size: 12px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 28px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 15px;
    background: #241810;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.stat-card small {
    color: var(--muted);
}

.stat-card strong {
    color: var(--gold2);
    font-size: 24px;
}

.profile-content {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(290px, 1fr);
    gap: 22px;
}

.primary-column,
.side-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.panel {
    min-width: 0;
    padding: 24px;
    background: #241810;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.panel-heading {
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
    margin: 8px 0 0;
    font-size: 22px;
}

.gear-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.gear-card {
    min-width: 0;
    padding: 16px;
    background: #1c120d;
    border: 1px solid #57351f;
    border-radius: 9px;
}

.gear-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gear-symbol {
    display: grid;
    place-items: center;
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #392617;
    color: var(--gold2);
    font-size: 24px;
}

.gear-card h3 {
    margin: 5px 0;
    font-size: 15px;
}

.gear-tags,
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gear-tags {
    margin: 12px 0;
}

.gear-tags span,
.pill {
    padding: 5px 9px;
    background: #302016;
    border: 1px solid #765034;
    border-radius: 6px;
    color: #e8dbcf;
    font-size: 12px;
}

.gear-attrs {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.gear-attrs span {
    margin-right: 7px;
    color: #ad9887;
    text-transform: capitalize;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.pill b {
    padding: 3px 7px;
    background: #57351f;
    color: var(--gold2);
    border-radius: 5px;
}

.detail-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.detail-list > div:last-child {
    border: 0;
}

.detail-list span,
.muted-block,
.snapshot-note {
    color: var(--muted);
}

.detail-list strong {
    color: var(--gold2);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1000px) {
    .stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .profile-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hero-inner {
        padding-top: 55px;
        padding-bottom: 45px;
    }

    .hero h1 {
        font-size: clamp(40px, 9vw, 60px);
    }

    .hero p {
        font-size: 14px;
    }

    .hero-stats > div {
        padding: 5px 8px;
    }

    .hero-stats strong {
        font-size: 21px;
    }

    .hero-stats span {
        font-size: 9px;
    }

    .search-form {
        gap: 7px;
        padding-left: 12px;
    }

    .search-form input {
        font-size: 12px;
    }

    .search-form .btn {
        padding: 12px;
    }

    .section {
        padding: 45px 0;
    }

    .section-heading,
    .results-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-grid,
    .info-grid,
    .gear-grid {
        grid-template-columns: 1fr;
    }

    .directory-filters {
        flex-wrap: wrap;
    }

    .directory-filters input {
        flex-basis: 100%;
    }

    .directory-filters select,
    .directory-filters .btn {
        flex: 1;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .profile-header {
        align-items: center;
        gap: 18px;
    }

    .profile-body {
        width: 83px;
        height: 160px;
    }

    .profile-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 38px;
    }

    .hero-stats > div {
        padding: 5px;
    }

    .hero-stats span {
        font-size: 8px;
    }

    .player-avatar {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .player-card,
    .feature-card {
        transition: none;
    }

    .player-card:hover,
    .feature-card:hover {
        transform: none;
    }
}
