/* 
  GEARS HUB 5.0 - UNIFORM PRODUCT CARD GRID DESIGN 
  High-performance, structured, clean product cards with neon theme-based indicators and smooth interactive animations.
*/

:root {
    --card-bg: rgba(10, 10, 15, 0.7);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-blur: 25px;
    
    /* Neon Category Colors */
    --clr-pc: #00e5ff;       /* Cyan */
    --clr-work: #00e676;     /* Green */
    --clr-rec: #bd00ff;      /* Purple */
    --clr-mob: #ffaa00;      /* Gold/Orange */
}

/* Background Noise Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

#gears-hero {
    padding: 180px 0 40px;
    background: radial-gradient(circle at top, rgba(0, 229, 255, 0.03), transparent 700px);
}

#gears-hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 0.9;
    letter-spacing: -2px;
}

/* FILTER BAR SYSTEM */
.gears-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0 60px;
    flex-wrap: wrap;
    z-index: 10;
    position: relative;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 28px;
    border-radius: 50px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn i {
    font-size: 0.85rem;
    transition: transform 0.3s;
}

.filter-btn:hover i {
    transform: rotate(15deg);
}

.filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    background: white;
    border-color: white;
    color: black;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Category Specific Active Buttons */
.filter-btn[data-filter="pc-setup"].active {
    background: var(--clr-pc);
    border-color: var(--clr-pc);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
}

.filter-btn[data-filter="workspace"].active {
    background: var(--clr-work);
    border-color: var(--clr-work);
    box-shadow: 0 10px 30px rgba(0, 230, 118, 0.3);
}

.filter-btn[data-filter="recording"].active {
    background: var(--clr-rec);
    border-color: var(--clr-rec);
    color: white;
    box-shadow: 0 10px 30px rgba(189, 0, 255, 0.3);
}

.filter-btn[data-filter="mobility"].active {
    background: var(--clr-mob);
    border-color: var(--clr-mob);
    box-shadow: 0 10px 30px rgba(255, 170, 0, 0.3);
}

/* SECTION TITLES */
.gears-section-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.35);
    margin: 80px 0 35px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.gears-section-title::after {
    content: "";
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
}

/* CARD GRID SYSTEM */
.gears-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.gear-card {
    background: var(--card-bg);
    backdrop-filter: blur(var(--card-blur));
    -webkit-backdrop-filter: blur(var(--card-blur));
    border: 1px solid var(--card-border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    
    /* Default Colors */
    --card-theme: #ffffff;
    --card-glow: rgba(255, 255, 255, 0.08);
}

/* Category Specific Colors */
.gear-card[data-category="pc-setup"] {
    --card-theme: var(--clr-pc);
    --card-glow: rgba(0, 229, 255, 0.15);
}
.gear-card[data-category="workspace"] {
    --card-theme: var(--clr-work);
    --card-glow: rgba(0, 230, 118, 0.15);
}
.gear-card[data-category="recording"] {
    --card-theme: var(--clr-rec);
    --card-glow: rgba(189, 0, 255, 0.15);
}
.gear-card[data-category="mobility"] {
    --card-theme: var(--clr-mob);
    --card-glow: rgba(255, 170, 0, 0.15);
}

.gear-card.is-hidden {
    display: none !important;
}

/* Hover effects */
.gear-card:hover {
    border-color: var(--card-theme);
    background: rgba(15, 15, 22, 0.85);
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px var(--card-glow);
}

/* Interactive Cursor radial glow tracking background */
.gear-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle 180px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.035), transparent 80%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

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

/* Hologram Scanning Line Effect */
.gear-card::after {
    content: "";
    position: absolute;
    top: -100%; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent);
    transition: 0.5s;
    pointer-events: none;
    z-index: 2;
}

.gear-card:hover::after {
    top: 100%;
    transition: 0.8s ease-in-out;
}

/* CARD IMAGE SECTION */
.gear-card-image {
    height: 190px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 3;
}

.gear-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gear-card:hover .gear-card-image img {
    transform: scale(1.08) translateY(-2px);
}

/* Fallback icons / generic display */
.gear-icon-fallback {
    font-size: 3.5rem;
    color: var(--card-theme);
    opacity: 0.15;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    filter: blur(0.5px);
}

.gear-card:hover .gear-icon-fallback {
    opacity: 0.75;
    transform: scale(1.15) rotate(5deg);
    filter: blur(0);
}

/* Dark blend overlay for images */
.gear-card-image::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(10, 10, 15, 0.9));
    z-index: 2;
    pointer-events: none;
}

/* CARD BODY */
.gear-card-content {
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    z-index: 4;
}

.gear-card-details {
    margin-bottom: 20px;
}

.gear-category {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--card-theme);
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
}

.gear-title {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
    line-height: 1.25;
    transition: color 0.3s;
}

.gear-card:hover .gear-title {
    color: var(--card-theme);
}

.gear-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* SPEC PILLS */
.gear-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.gear-specs span {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.gear-specs i {
    color: var(--card-theme);
}

/* BUTTON SYSTEM */
.gear-card-action {
    margin-top: auto;
}

.btn-gear {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    cursor: pointer;
}

.btn-gear i {
    font-size: 0.85rem;
    transition: 0.3s;
}

.btn-gear:hover {
    background: var(--card-theme);
    color: black;
    border-color: var(--card-theme);
    box-shadow: 0 10px 20px var(--card-glow);
    transform: translateY(-2px);
    font-weight: 700;
}

.btn-gear:hover i {
    transform: translateX(3px) scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .gears-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    #gears-hero {
        padding: 140px 0 20px;
    }
    #gears-hero h1 { font-size: 3.5rem; }
    .gears-filters {
        margin: 30px 0 40px;
    }
    .gears-grid {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .gears-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .gear-card {
        min-height: auto;
    }
    .gear-card-image {
        height: 180px;
    }
}
