/* 
   THE GLOBAL PEANUT BUTTER REGISTRY 
   Revised Stylesheet - Full Rewrite
*/

:root {
    --bg-dark: #09090d;
    --card-bg: rgba(255, 255, 255, 0.04);
    --text-main: #e7e2ff;
    --text-muted: #aaa3cb;
    --pink: #ff38d1;
    --purple: #7b61ff;
    --primary-gold: #d4af37; /* Retained for specific accent use */
}

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

body {
    font-family: 'Outfit', 'Montserrat', sans-serif;
    background: 
        radial-gradient(circle at top left, rgba(123, 97, 255, 0.15), transparent 30%),
        linear-gradient(180deg, #09090d, #0f0f18);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Grid Overlay */
.background-grid {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: .2;
    z-index: -1;
}

/* Header & Navigation */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 7%;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.logo {
    color: white;
    text-decoration: none;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 600;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-nav a.active,
.main-nav a:hover {
    color: white;
}

/* Hero Section */
.hero-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
}

.hero-tag {
    color: var(--pink);
    margin-bottom: 25px;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    font-weight: 600;
}

.hero-section h1 {
    font-family: 'Fraunces', serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 300;
    line-height: .95;
    max-width: 1000px;
    letter-spacing: -.02em;
}

.hero-section h1 span {
    background: linear-gradient(90deg, #fff, #b8b0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-copy {
    max-width: 800px;
    margin-top: 35px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.hero-button {
    margin-top: 50px;
    padding: 18px 40px;
    border-radius: 999px;
    text-decoration: none;
    color: white;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 15px 50px rgba(123, 97, 255, .35);
    transition: transform 0.3s ease;
}

.hero-button:hover {
    transform: translateY(-3px);
}

/* Filters & Dropdowns */
.filter-panel {
    width: min(1100px, 92%);
    margin: 0 auto 60px;
    padding: 40px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 30px;
    backdrop-filter: blur(20px);
}

.search-input {
    width: 100%;
    padding: 18px 25px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    color: white;
    font-size: 1rem;
    outline: none;
}

.search-input:focus {
    border-color: var(--purple);
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* FIXED DROPDOWN STYLING */
.neon-select {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 18px;
    color: white;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center;
}

/* Fix for menu options visibility */
.neon-select option {
    background-color: #0f0f18; 
    color: white;
    padding: 12px;
}

.counter-text {
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Brand Grid */
#brandGrid {
    width: min(1500px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding-bottom: 120px;
}

.brand-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 30px;
    padding: 35px;
    backdrop-filter: blur(20px);
    transition: .35s ease;
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(123, 97, 255, .18);
    border-color: rgba(255, 255, 255, 0.2);
}

.location-tag {
    color: var(--pink);
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    margin-bottom: 18px;
    font-weight: 600;
}

.brand-card h3 {
    font-size: 2rem;
    margin-bottom: 14px;
    font-weight: 400;
    color: white;
}

.brand-hook {
    margin-bottom: 16px;
    color: #d8d1ff;
    font-style: italic;
}

.brand-lore {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
}

.view-btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    color: white;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.view-btn:hover {
    background: white;
    color: black;
}

/* Footer */
footer {
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, .05);
    color: var(--text-muted);
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
    }
    .site-header {
        flex-direction: column;
        gap: 20px;
    }
    .hero-section h1 {
        font-size: 3rem;
    }
}