/* MUSICGEAR FINDER - Custom Styles with Red Accents */

/* Base reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red-primary: #FF1744;
    --red-hover: #FF4569;
    --red-light: rgba(255, 23, 68, 0.1);
    --red-glow: rgba(255, 23, 68, 0.3);
    
    --dark-bg: #0a0a0a;
    --dark-card: rgba(38, 38, 38, 0.3);
    --dark-border: rgba(38, 38, 38, 0.3);
    --dark-text: #e5e5e5;
    --dark-text-muted: #9ca3af;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--dark-text);
    line-height: 1.6;
}

/* Layout */
.sidebar {
    width: 280px;
    min-height: 100vh;
    background: var(--dark-card);
    border-right: 1px solid var(--dark-border);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 40;
    padding: 2rem 0;
}

.main-content {
    margin-left: 280px;
    min-height: 100vh;
    padding: 2rem;
}

/* Navigation */
.nav-header {
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--dark-border);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--red-primary), #FF6B6B);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-subtitle {
    font-size: 0.75rem;
    color: var(--dark-text-muted);
    margin-top: -4px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--red-primary), #d32f2f);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.hero-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

/* Search Bar */
.search-container {
    position: relative;
    max-width: 500px;
    z-index: 2;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.75rem 3rem 0.75rem 1rem;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    padding: 0.5rem;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Product Cards */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--dark-border);
}

.product-info {
    padding: 1.5rem;
}

.product-brand {
    font-size: 0.875rem;
    color: var(--red-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.product-category {
    font-size: 0.875rem;
    color: var(--dark-text-muted);
    background: var(--dark-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    display: inline-block;
}

/* Sidebar Categories */
.sidebar-section {
    padding: 0 1.5rem;
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.category-list {
    list-style: none;
}

.category-item {
    margin-bottom: 0.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: var(--dark-text);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.category-link:hover {
    background: var(--red-light);
    color: var(--red-primary);
}

.category-count {
    font-size: 0.875rem;
    color: var(--dark-text-muted);
    background: var(--dark-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--red-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--red-hover);
    box-shadow: 0 4px 15px var(--red-glow);
}

/* Stats */
.stats {
    display: flex;
    gap: 2rem;
    color: var(--dark-text-muted);
    font-size: 0.875rem;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 6px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

::-webkit-scrollbar-thumb:active {
    background: #1a1a1a;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a #0a0a0a;
}

/* Horizontal Scrollbar */
::-webkit-scrollbar:horizontal {
    height: 12px;
}

/* Corner where scrollbars meet */
::-webkit-scrollbar-corner {
    background: #0a0a0a;
}

/* Scrollbar for specific elements */
.custom-scroll::-webkit-scrollbar {
    width: 8px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 23, 68, 0.3);
    border-radius: 4px;
    border: 1px solid #0a0a0a;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(60, 60, 60, 0.8);
}

/* Thin scrollbar variant */
.thin-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.thin-scroll::-webkit-scrollbar-thumb {
    background: rgba(42, 42, 42, 0.8);
    border-radius: 3px;
    border: none;
}

.thin-scroll::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* Hide scrollbar but keep functionality */
.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .hero {
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    /* Mobile scrollbar - thinner */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    
    ::-webkit-scrollbar-thumb {
        border: 1px solid #0a0a0a;
    }
}