﻿/* ===============================
   Homebrew page (scoped to #content)
   =============================== */

/* Tunables */
#content.homebrew-scope,
#content .homebrew {
    --hb-accent: #21a366;
    --hb-card-bg: rgba(0,0,0,.65);
    --hb-card-border: rgba(255,255,255,.12);
    --hb-card-border-hover: rgba(255,255,255,.62);
    --hb-btn-grad-top: #2bd081;
    --hb-btn-grad-bot: #1e9d62;
    min-height:700px;
}

/* Page header */
#content .hb-head {
    background: rgba(0,0,0,.78);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: 0 18px 40px rgba(0,0,0,.40);
    margin-bottom: 1rem;
}

    #content .hb-head h1 {
        margin: 0 0 .25rem;
    }

#content .hb-sub {
    margin: 0;
    opacity: .85;
}

/* Grid of cards */
#content .hb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
    gap: 1rem;
}

/* Card */
#content .hb-card {
    background: var(--hb-card-bg);
    border: 1px solid var(--hb-card-border);
    border-radius: .65rem;
    padding: 1rem;
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

    #content .hb-card:hover {
        transform: translateY(-2px);
        border-color: var(--hb-card-border-hover);
        box-shadow: 0 10px 24px rgba(0,0,0,.75);
    }

/* Title + desc */
#content .hb-title {
    margin: .15rem 0 .5rem;
    font-size: 1.15rem;
    line-height: 1.25;
}

    #content .hb-title a {
        text-decoration: none;
    }

        #content .hb-title a:hover {
            text-decoration: underline;
        }

#content .hb-desc {
    margin: 0 0 .85rem;
    opacity: .95;
}

/* Actions */
#content .hb-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* Buttons (scoped) */
#content .hb-btn,
#content .hb-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .6rem .9rem;
    font-weight: 700;
    letter-spacing: .01em;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
}

/* Primary */
#content .hb-btn {
    color: #fff;
    background: linear-gradient(180deg, var(--hb-btn-grad-top), var(--hb-btn-grad-bot));
    box-shadow: 0 8px 18px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.16);
}

    #content .hb-btn:hover {
        filter: brightness(1
