﻿/* ==========================================
   3SIGMA STUDIO - ITEM CARDS GRID STYLES
   ========================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.75rem;
}

.card {
    background: #161616;
    border: 1px solid rgba(var(--color-primary-rgb), 0.15);
    border-radius: 16px;
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), 
                border-color 0.3s cubic-bezier(0.23, 1, 0.32, 1), 
                box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Subtle top glow accent line on card hover */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary) 30%, var(--color-secondary) 70%, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    border-color: rgba(var(--color-primary-rgb), 0.6);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.9), 0 0 25px rgba(var(--color-primary-rgb), 0.25);
    transform: translateY(-5px);
    background: #1B1B1B;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 2;
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: 0.03em;
    position: relative;
    z-index: 2;
}

.card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.55;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.card:hover p {
    color: #F5F5F5;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
    position: relative;
    z-index: 2;
}

/* Pixel-style spec chips: square corners, a purple tick on the left,
   dim label + bright value. */
.badge {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-left: 3px solid var(--color-secondary);
    border-radius: 0 3px 3px 0;
    font-family: var(--font-body);
    font-size: 0.72rem;
    line-height: 1;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.badge-key {
    color: var(--color-text-dim);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.65rem;
}

.badge-value {
    color: var(--color-text-main);
    font-weight: 700;
}

.card:hover .badge {
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(0, 0, 0, 0.3);
    border-left-color: #0A0A0A;
}

.card:hover .badge-key {
    color: rgba(255, 255, 255, 0.7);
}

.card:hover .badge-value {
    color: #FFFFFF;
}
