/* TRADEHUB RESOURCES — CLEAN STYLESHEET */
.resources-page {
    background: radial-gradient(circle at 78% 15%,rgba(69,44,135,.18),transparent 30%),linear-gradient(180deg,#050612,#080817);
    color: #f7f7fb;
    min-height: 100vh
}

.resources-container {
    width: min(1500px,calc(100% - 120px));
    margin: auto;
    padding: 48px 0 80px
}

.resources-breadcrumb {
    display: flex;
    gap: 10px;
    color: #c7c8d2;
    font-size: 14px;
    margin-bottom: 45px
}

    .resources-breadcrumb a {
        color: #e1b92f;
        text-decoration: none
    }

.resources-eyebrow {
    color: #e1b92f;
    font-size: 12px;
    letter-spacing: 2.5px;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 18px
}

.resources-hero {
    max-width: 1030px;
    margin: 0 0 60px
}

    .resources-hero h1 {
        color: #fff;
        font-size: clamp(38px,4.6vw,70px);
        line-height: 1.12;
        letter-spacing: -1.4px;
        margin: 0 0 24px
    }

        .resources-hero h1 span {
            color: #e1b92f
        }

    .resources-hero > p:not(.resources-eyebrow) {
        font-size: clamp(17px,1.6vw,21px);
        line-height: 1.65;
        color: #d0d1db;
        max-width: 800px;
        margin: 0
    }

.resources-accent {
    width: 100px;
    height: 4px;
    border-radius: 9px;
    background: linear-gradient(90deg,#f5d766,#9e4cff);
    margin-top: 30px
}

.resources-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 365px;
    margin-bottom: 75px;
    padding: 25px;
    gap: 25px;
    border: 1px solid rgba(158, 76, 255, .65);
    border-radius: 20px;
    background: radial-gradient( circle at 85% 20%, rgba(120, 45, 210, .30), transparent 65% ), linear-gradient(135deg, #151025, #100d22);
    box-shadow: 0 0 25px rgba(158, 76, 255, .20), 0 20px 50px rgba(0, 0, 0, .35);
    transition: box-shadow .3s ease;
}

    .resources-featured:hover {
        box-shadow: 0 0 40px rgba(158, 76, 255, .35), 0 25px 60px rgba(0, 0, 0, .40);
    }

.resources-featured-image {
    min-height: 300px;
    background: #111
}

    .resources-featured-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block
    }

.resources-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 200px;
    color: #e1b92f;
    letter-spacing: 3px;
    background: radial-gradient(circle at 65% 30%,rgba(158,76,255,.25),transparent 60%),#101221;
    font-weight: 800
}

.resources-featured-copy {
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center
}

    .resources-featured-copy h2 {
        font-size: clamp(28px,2.7vw,42px);
        color: #fff;
        line-height: 1.18;
        margin: 0 0 18px
    }

    .resources-featured-copy > p:not(.resources-eyebrow) {
        color: #d2d3dc;
        font-size: 17px;
        line-height: 1.65;
        margin: 0 0 25px
    }

.resources-featured-link {
    color: #f5d766;
    font-weight: 800;
    text-decoration: none;
    font-size: 17px
}

.resources-library-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 26px
}

    .resources-library-heading h2 {
        font-size: clamp(30px,3vw,44px);
        margin: 0;
        color: #fff
    }

    .resources-library-heading > p {
        color: #c7c8d2;
        margin: 0 0 4px
    }

.resources-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px
}

.resources-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.03);
    color: #d8d9e2;
    padding: 11px 20px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    text-decoration: none;
    transition: background .2s,border-color .2s,color .2s
}

    .resources-filter:hover, .resources-filter.active {
        background: #e1b92f;
        border-color: #e1b92f;
        color: #171106;
        font-weight: 700;
        text-decoration: none
    }

.resources-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 25px
}

.resources-card {
    min-width: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(158, 76, 255, .30);
    border-radius: 16px;
    background: linear-gradient( 145deg, #292536 0%, #1b1a2b 48%, #111320 100% );
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(158, 76, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

    .resources-card:hover {
        transform: translateY(-5px);
        border-color: rgba(158, 76, 255, .65);
        box-shadow: 0 22px 50px rgba(0, 0, 0, .50), 0 0 30px rgba(158, 76, 255, .25);
    }

    .resources-card[hidden] {
        display: none
    }

.resources-card-image {
    height: 225px;
    display: block;
    overflow: hidden;
    background: #101221
}

    .resources-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .25s
    }

.resources-card:hover img {
    transform: scale(1.03)
}

.resources-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    min-height: 245px
}

.resources-card-category {
    font-size: 11px;
    letter-spacing: 2px;
    color: #e1b92f;
    font-weight: 800
}

.resources-card h3 {
    font-size: 22px;
    line-height: 1.3;
    margin: 13px 0;
    color: #fff
}

    .resources-card h3 a {
        color: inherit;
        text-decoration: none
    }

.resources-card p {
    color: #c7c8d2;
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 24px;
    flex: 1
}

.resources-card-link {
    color: #f5d766;
    font-weight: 700;
    text-decoration: none
}

.resources-empty {
    color: #d0d1db;
    margin-top: 30px
}
/* Empty category state: spans the whole cards grid and centers its own content */
.resources-empty-state {
    grid-column: 1/-1;
    justify-self: center;
    width: 100%;
    max-width: 850px;
    box-sizing: border-box;
    margin: 45px auto 65px;
    padding: 65px 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at 50% 0%,rgba(158,76,255,.16),transparent 68%),#101323;
    border: 1px solid rgba(225,185,47,.25);
    border-radius: 24px;
    box-shadow: 0 25px 70px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.04)
}

.resources-empty-icon {
    width: 78px;
    height: 78px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    border-radius: 50%;
    background: rgba(225,185,47,.1);
    border: 1px solid rgba(225,185,47,.22);
    color: #e1b92f;
    font-size: 34px
}

.resources-empty-label {
    display: block;
    margin-bottom: 18px;
    color: #e1b92f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase
}

.resources-empty-state h2 {
    max-width: 700px;
    margin: 0 auto 25px;
    color: #fff;
    font-size: clamp(30px,3.5vw,46px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.8px
}

.resources-empty-state p {
    max-width: 640px;
    margin: 0 auto 18px;
    color: #c7c8d2;
    font-size: 17px;
    line-height: 1.8
}

.resources-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
    padding: 16px 30px;
    border-radius: 10px;
    background: #e1b92f;
    color: #080b12;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: background .2s,transform .2s
}

    .resources-empty-button:hover {
        background: #f5d766;
        color: #080b12;
        text-decoration: none;
        transform: translateY(-2px)
    }

.resources-bottom-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
    padding: 40px 44px;
    margin-top: 75px;
    border: 1px solid rgba(42,183,120,.45);
    border-radius: 9px;
    background: linear-gradient(100deg,rgba(18,111,73,.65),rgba(8,84,70,.78))
}

    .resources-bottom-cta h2 {
        font-size: clamp(25px,2.7vw,36px);
        color: #fff;
        margin: 0 0 10px
    }

    .resources-bottom-cta p:last-child {
        color: #dceee9;
        margin: 0;
        font-size: 16px;
        line-height: 1.6
    }

    .resources-bottom-cta > a {
        white-space: nowrap;
        display: inline-flex;
        gap: 15px;
        align-items: center;
        padding: 17px 24px;
        background: linear-gradient(180deg,#f6d85c,#d2a21b);
        border-radius: 9px;
        color: #171106;
        text-decoration: none;
        font-weight: 800
    }

@media(max-width:1100px) {
    .resources-container {
        width: calc(100% - 64px)
    }

    .resources-grid {
        grid-template-columns: repeat(2,minmax(0,1fr))
    }
}

@media(max-width:800px) {
    .resources-container {
        width: calc(100% - 32px);
        padding: 30px 0 55px
    }

    .resources-featured {
        grid-template-columns: 1fr
    }

    .resources-featured-copy {
        padding: 30px
    }

    .resources-grid {
        grid-template-columns: 1fr
    }

    .resources-library-heading {
        display: block
    }

        .resources-library-heading > p {
            margin-top: 12px
        }

    .resources-bottom-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px
    }

        .resources-bottom-cta > a {
            width: 100%;
            justify-content: center;
            white-space: normal
        }

    .resources-empty-state {
        margin: 30px auto 50px;
        padding: 45px 24px;
        border-radius: 18px
    }

        .resources-empty-state h2 {
            font-size: 30px
        }

        .resources-empty-state p {
            font-size: 15px
        }

    .resources-empty-button {
        width: 100%;
        max-width: 300px
    }
}

/* TRADES TAGS */

.resources-card-trades {
    margin: 16px 0;
}

.resources-trades-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #64797d;
    margin-bottom: 8px;
}

.resources-trades-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.resources-trade-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background: #eef7f5;
    color: #0B6E6E;
    border: 1px solid #d3e8e4;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
