﻿/* ============================================================
   Rogue Fly Fish – Gear Picker CSS (Clean Consolidated Version)
   Premium Apple-style glass UI with dark gradient + spacing
============================================================ */

/* -----------------------------
   GLOBAL COLORS / VARIABLES
----------------------------- */
:root {
    --rff-bg: #0a0f18;
    --glass: rgba(255,255,255,0.06);
    --glass-strong: rgba(255,255,255,0.12);
    --border-light: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.16);
    --shadow-1: 0 4px 16px rgba(0,0,0,0.35);
    --shadow-2: 0 6px 22px rgba(0,0,0,0.45);
    --shadow-inner: inset 0 0 14px rgba(255,255,255,0.05);
    --blue: #38bdf8;
    --blue-light: #7dd3fc;
}

/* Background gradient */
body {
    background: linear-gradient(180deg, #0c111c 0%, #080c14 100%);
    color: #e2e8f0;
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
}

/* -----------------------------
   MAIN LAYOUT
----------------------------- */

.gear-layout {
    display: flex;
    width: 100%;
    margin-top: 80px; /* ensures content sits below site header */
}

/* -----------------------------
   SIDEBAR
----------------------------- */

.gear-sidebar {
    width: 230px;
    min-width: 230px;
    background: rgba(12,18,29,0.90);
    backdrop-filter: blur(18px);
    border-right: 1px solid var(--border-strong);
    box-shadow: var(--shadow-inner);
    padding: 1.25rem;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.gear-sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    margin-bottom: 1rem;
}

.gear-nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.95rem;
    text-decoration: none;
    color: #dce3ed;
    opacity: 0.85;
    transition: 0.2s ease;
}

.gear-nav-link:hover {
    background: rgba(255,255,255,0.12);
    opacity: 1;
}

.gear-nav-link.active {
    background: rgba(255,255,255,0.18);
    font-weight: 600;
    opacity: 1;
}

/* -----------------------------
   MAIN CONTENT AREA
----------------------------- */

.gear-content {
    flex: 1;
    padding: 2rem;
}

.gear-content h1 {
    margin-top: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
}

.gear-content p {
    opacity: 0.85;
    margin-bottom: 1rem;
}

/* -----------------------------
   SEARCH + FILTER BAR
----------------------------- */

.catalog-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 80px;
    z-index: 50;
    padding: 0.6rem 0;
    background: linear-gradient(180deg, #0c111c 80%, transparent);
}

.gear-search {
    width: 220px;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: rgba(255,255,255,0.06);
    color: #fff;
}

.gear-filters {
    display: flex;
    gap: 0.5rem;
}

.gear-filters select {
    height: 38px;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-light);
    color: #fff;
}

/* -----------------------------
   GLASS CARD
----------------------------- */

.glass-card {
    background: var(--glass);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-1);
    transition: 0.25s ease;
}

.glass-card:hover {
    box-shadow: var(--shadow-2);
}

/* -----------------------------
   GEAR GRID
----------------------------- */

.gear-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.4rem;
}

/* -----------------------------
   PRODUCT CARDS
----------------------------- */

.gear-item-card {
    padding: 1.1rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: 0.25s;
}

.gear-item-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
}

.gear-brand {
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

/* Image */
.gear-thumb {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 0.6rem;
    box-shadow: var(--shadow-inner);
    margin-bottom: 0.6rem;
}

/* Buttons */
.gear-more-btn,
.gear-buy-btn {
    display: inline-block;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--blue);
    color: #0e1726;
    text-decoration: none;
    transition: 0.2s;
    border: none;
}

.gear-more-btn:hover,
.gear-buy-btn:hover {
    background: var(--blue-light);
}

/* -----------------------------
   FLYOUT PANEL
----------------------------- */

.flyout {
    position: fixed;
    top: 0;
    right: -430px;
    width: 430px;
    max-width: 95%;
    height: 100vh;
    background: rgba(17,25,40,0.93);
    backdrop-filter: blur(22px) saturate(180%);
    box-shadow: -8px 0 30px rgba(0,0,0,0.55);
    border-left: 1px solid var(--border-strong);
    z-index: 99999;
    padding: 2rem 1.6rem;
    overflow-y: auto;
    transition: right 0.33s ease;
}

.flyout.open {
    right: 0;
}

#flyout-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,80,80,0.9);
    padding: 0.5rem 0.9rem;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.flyout-img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    background: rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-inner);
}

/* -----------------------------
   BACK TO TOP BUTTON
----------------------------- */

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 35px;
    background: var(--blue);
    color: #0e1726;
    font-weight: 700;
    border-radius: 30px;
    padding: 0.7rem 1.1rem;
    box-shadow: var(--shadow-2);
    cursor: pointer;
    z-index: 999999;
    display: none;
    transition: 0.25s;
}

#backToTop:hover {
    transform: translateY(-3px);
    background: var(--blue-light);
}