/* ==========================================================================
 * DSTAIR — Resources Page
 * Data-stream dot matrix background, section dividers, resource lists.
 * ========================================================================== */


/* --------------------------------------------------------------------------
 * § 1. BACKGROUND — DOT MATRIX
 * -------------------------------------------------------------------------- */
.resources-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    background:
        radial-gradient(rgba(var(--color-highlight-rgb), 0.1) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px, 10px 10px;
    background-position: 0 0, 5px 5px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.15) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.15) 100%);
}

.resources-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 10%,
            rgba(var(--color-primary-rgb), 0.2),
            transparent 50%);
}


/* --------------------------------------------------------------------------
 * § 2. SECTION DIVIDERS
 * -------------------------------------------------------------------------- */
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    color: var(--color-highlight);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 700;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right,
            rgba(var(--color-highlight-rgb), 0.35),
            transparent);
}


/* --------------------------------------------------------------------------
 * § 3. RESOURCE LIST
 * -------------------------------------------------------------------------- */
.resource-list li {
    margin-bottom: 0.6rem;
    padding-left: 1.25rem;
    position: relative;
    color: var(--white-60);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    line-height: 1.7;
}

.resource-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-weight: 700;
    transition: color var(--transition-base);
}

.resource-list li:hover {
    color: var(--white);
    padding-left: 1.5rem;
}

.resource-list li:hover::before {
    color: var(--color-highlight);
}


/* --------------------------------------------------------------------------
 * § 4. RESOURCE CARDS
 * -------------------------------------------------------------------------- */
.resource-card {
    background: rgba(var(--color-dark-rgb), 0.5);
    border: 1px solid var(--white-10);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.resource-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.resource-card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.resource-card:hover::before {
    opacity: 1;
}