/* ========================================
   FALLOKOCH — TECHROMANCER
   About Page — Gear Gallery Styles
   ======================================== */

/* ===== SIDEBAR INVENTORY COUNT ===== */
.sidebar-inv {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sidebar-inv__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.sidebar-inv__cat {
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    padding: 0.15rem 0.45rem;
    border: 1px solid;
    min-width: 3.2rem;
    text-align: center;
}
.sidebar-inv__cat--guitar { color: var(--green);  border-color: rgba(0,255,136,0.3); }
.sidebar-inv__cat--bass   { color: var(--amber);  border-color: rgba(245,158,11,0.3); }
.sidebar-inv__cat--drums  { color: var(--purple); border-color: rgba(139,92,246,0.3); }

/* ===== GEAR SECTION ===== */
.gear-section { padding-bottom: 5rem; }

/* ===== CATEGORY HEADER ===== */
.gear-category {
    margin-bottom: 3rem;
}
.gear-category__title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border);
}
.gear-category__type {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    padding: 0.2rem 0.55rem;
    border: 1px solid;
}
.gear-category__type--guitar { color: var(--green);  border-color: rgba(0,255,136,0.4);  background: rgba(0,255,136,0.05); }
.gear-category__type--bass   { color: var(--amber);  border-color: rgba(245,158,11,0.4);  background: rgba(245,158,11,0.05); }
.gear-category__type--drums  { color: var(--purple); border-color: rgba(139,92,246,0.4);  background: rgba(139,92,246,0.05); }

/* ===== GEAR GALLERY GRID ===== */
.gear-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
}
.gear-gallery--single {
    grid-template-columns: minmax(190px, 340px);
}

/* ===== GEAR ITEM ===== */
.gear-item {
    background: var(--surface);
    border: 1px solid var(--border);
    transition: border-color 0.22s, box-shadow 0.22s;
    position: relative;
}
.gear-item:hover {
    border-color: rgba(0,255,136,0.25);
    box-shadow: 0 4px 24px rgba(0,255,136,0.06);
}
.gear-item--featured {
    border-color: rgba(245,158,11,0.25);
}
.gear-item--featured:hover {
    border-color: rgba(245,158,11,0.5);
    box-shadow: 0 4px 24px rgba(245,158,11,0.08);
}
.gear-item--wide {
    /* drum kit: wider card */
}

/* Photo area */
.gear-item__photo {
    position: relative;
    aspect-ratio: 4/3;
    background: var(--bg);
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.gear-item__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.85) brightness(0.9);
    transition: filter 0.3s, transform 0.3s;
}
.gear-item:hover .gear-item__photo img {
    filter: saturate(1) brightness(1);
    transform: scale(1.03);
}
/* Scanline overlay on photo */
.gear-item__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.07) 3px,
        rgba(0,0,0,0.07) 4px
    );
    pointer-events: none;
    z-index: 1;
}
/* Empty placeholder state */
.gear-item__photo--empty {
    display: flex;
    align-items: center;
    justify-content: center;
}
.gear-item__photo--empty::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    opacity: 0.4;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 1rem;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Filename label at bottom of photo */
.gear-item__photo-label {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 0.3rem 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    color: var(--green);
    letter-spacing: 0.08em;
    background: linear-gradient(to top, rgba(6,6,8,0.85), transparent);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gear-item:hover .gear-item__photo-label { opacity: 1; }

/* Info area */
.gear-item__info {
    padding: 0.85rem 1rem 1rem;
    position: relative;
}
.gear-item__name {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}
.gear-item__spec {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.gear-item__badge {
    position: absolute;
    top: -1px;
    right: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    letter-spacing: 0.15em;
    padding: 0.15rem 0.4rem;
    background: var(--amber);
    color: var(--bg);
    font-weight: bold;
    transform: translateY(-50%);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
    .gear-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}
@media (max-width: 480px) {
    .gear-gallery {
        grid-template-columns: 1fr 1fr;
    }
}
