@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Italic-VariableFont_opsz,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg-primary: #0a0a12;
    --bg-secondary: #12121f;
    --bg-card: rgba(25, 25, 45, 0.7);
    --bg-card-hover: rgba(35, 35, 60, 0.8);

    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #707085;

    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;

    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================================
   Background Effects
   ======================================== */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-purple);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
    bottom: -150px;
    left: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-pink);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(30px, -30px) scale(1.05);
    }

    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }

    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

/* ========================================
   Container & Layout
   ======================================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Header
   ======================================== */
header {
    padding: 60px 0 40px;
    text-align: center;
    position: relative;
}

header h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #a78bfa 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}

.credit {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 16px;
    opacity: 0.8;
}

.credit a {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    text-underline-offset: 2px;
    transition: all var(--transition-fast);
}

.credit a:hover {
    color: var(--accent-purple);
    text-decoration-color: var(--accent-purple);
}

.tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto 32px;
}

/* ========================================
   Search Container
   ======================================== */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

#searchInput {
    width: 100%;
    padding: 18px 50px 18px 56px;
    font-size: 1.1rem;
    font-family: inherit;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    outline: none;
    transition: all var(--transition-normal);
    backdrop-filter: blur(10px);
}

#searchInput::placeholder {
    color: var(--text-muted);
}

#searchInput:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), var(--shadow-glow);
}

#searchInput:focus+.search-icon,
.search-container:hover .search-icon {
    color: var(--accent-purple);
}

.clear-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.clear-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.clear-btn.visible {
    display: flex;
}

.stats {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stats .separator {
    margin: 0 8px;
}

/* ========================================
   Categories Grid
   ======================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 24px;
    padding: 20px 0 60px;
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Category Card
   ======================================== */
.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: var(--shadow-glow);
}

.category-card.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-bottom: 1px solid var(--border-color);
}

.category-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-icon {
    font-size: 1.4rem;
}

.category-content {
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.brand-section h3 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-section.avoid h3 {
    color: var(--accent-red);
}

.brand-section.alternatives h3 {
    color: var(--accent-green);
}

.brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.brand-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.brand-section.avoid .brand-tag {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.brand-section.alternatives .brand-tag {
    background: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
}

.brand-tag.highlight {
    background: rgba(139, 92, 246, 0.5) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 0 0 2px var(--accent-purple), 0 0 15px rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
    animation: highlightPulse 1.5s ease-in-out infinite;
}

@keyframes highlightPulse {

    0%,
    100% {
        box-shadow: 0 0 0 2px var(--accent-purple), 0 0 15px rgba(139, 92, 246, 0.5);
    }

    50% {
        box-shadow: 0 0 0 3px var(--accent-purple), 0 0 25px rgba(139, 92, 246, 0.7);
    }
}

/* ========================================
   No Results
   ======================================== */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-results-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

.no-results p {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.no-results-hint {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
    margin-top: 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.tips h3,
.links h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.tips ul {
    list-style: none;
}

.tips li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tips li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-purple);
}

.tips strong {
    color: var(--text-primary);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.links a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.95rem;
}

.links a:hover {
    color: var(--accent-purple);
    text-decoration: underline;
}

.disclaimer {
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.disclaimer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ========================================
   Scrollbar
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.4);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.6);
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 600px) {
    header {
        padding: 40px 0 30px;
    }

    .category-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .category-header h2 {
        font-size: 1rem;
    }

    #searchInput {
        padding: 14px 45px 14px 48px;
        font-size: 1rem;
    }

    .search-icon {
        width: 20px;
        height: 20px;
        left: 16px;
    }
}