/* Claude Skills Registry - Cyberpunk Terminal UI */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Core palette - Deep space with neon accents */
    --bg-void: #050508;
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-elevated: #1a1a25;
    --bg-glass: rgba(20, 20, 35, 0.7);

    /* Neon spectrum */
    --neon-cyan: #00fff2;
    --neon-magenta: #ff00ff;
    --neon-purple: #bf5af2;
    --neon-blue: #007aff;
    --neon-green: #30d158;
    --neon-orange: #ff9f0a;
    --neon-pink: #ff375f;

    /* Text hierarchy */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
    --text-glow: #00fff2;

    /* Accents */
    --accent-primary: var(--neon-cyan);
    --accent-secondary: var(--neon-purple);
    --accent-success: var(--neon-green);
    --accent-warning: var(--neon-orange);

    /* Effects */
    --border-glow: rgba(0, 255, 242, 0.3);
    --shadow-neon: 0 0 20px rgba(0, 255, 242, 0.3);
    --shadow-deep: 0 25px 50px -12px rgba(0, 0, 0, 0.8);

    /* Geometry */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Grid background */
    --grid-color: rgba(0, 255, 242, 0.03);
}

/* Light Theme */
[data-theme="light"] {
    --bg-void: #f5f7fa;
    --bg-primary: #ffffff;
    --bg-secondary: #f0f2f5;
    --bg-elevated: #e8ebef;
    --bg-glass: rgba(255, 255, 255, 0.9);

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    --text-glow: #0066cc;

    --accent-primary: #0066cc;
    --accent-secondary: #7c3aed;

    --border-glow: rgba(0, 102, 204, 0.3);
    --shadow-neon: 0 0 20px rgba(0, 102, 204, 0.15);
    --shadow-deep: 0 10px 40px rgba(0, 0, 0, 0.1);

    --grid-color: rgba(0, 102, 204, 0.03);

    --neon-cyan: #0066cc;
    --neon-purple: #7c3aed;
    --neon-green: #059669;
    --neon-orange: #d97706;
    --neon-magenta: #c026d3;
    --neon-pink: #db2777;
}

[data-theme="light"] body::before {
    mask-image: none;
    opacity: 0.5;
}

[data-theme="light"] body::after {
    opacity: 0.3;
}

[data-theme="light"] .skill-card,
[data-theme="light"] .leaderboard-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .chart-container {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .search-box {
    background: var(--bg-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .modal-content {
    background: var(--bg-primary);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, sans-serif;
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px),
        linear-gradient(var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 70%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Gradient orbs - floating ambient lights */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 255, 242, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(191, 90, 242, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.03) 0%, transparent 50%);
    animation: orbFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ═══════════════════════════════════════════════════════════
   HEADER - Terminal-style with glitch effect
   ═══════════════════════════════════════════════════════════ */
.header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Theme Toggle Button */
.theme-toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-elevated);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.25rem;
}

.theme-toggle:hover {
    background: var(--bg-glass);
    box-shadow: var(--shadow-neon);
    transform: translateY(-50%) scale(1.05);
}

.theme-toggle:active {
    transform: translateY(-50%) scale(0.95);
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
}

.logo-icon {
    font-size: 3rem;
    filter: drop-shadow(0 0 20px var(--neon-cyan));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo h1 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-purple) 50%, var(--neon-magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    text-shadow: 0 0 40px rgba(0, 255, 242, 0.5);
}

/* Glitch effect on hover */
.logo h1::before,
.logo h1::after {
    content: 'Claude Skills Registry';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

.logo:hover h1::before {
    animation: glitch1 0.3s ease-in-out;
    opacity: 0.8;
}

.logo:hover h1::after {
    animation: glitch2 0.3s ease-in-out;
    opacity: 0.8;
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(2px, -2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(-2px, 2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(-2px, -2px); }
}

.tagline {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.tagline::before {
    content: '>';
    color: var(--neon-cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.tagline span {
    color: var(--neon-green);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(48, 209, 88, 0.5);
}

/* ═══════════════════════════════════════════════════════════
   SEARCH BOX - Glassmorphism terminal
   ═══════════════════════════════════════════════════════════ */
.search-container {
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    padding: 1rem 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Animated border gradient */
.search-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-magenta), var(--neon-cyan));
    background-size: 300% 100%;
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
}

.search-box:focus-within::before {
    opacity: 1;
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.search-box:focus-within {
    background: rgba(20, 20, 35, 0.9);
    box-shadow: var(--shadow-neon), var(--shadow-deep);
    transform: translateY(-2px);
}

.search-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    filter: grayscale(1) brightness(0.7);
    transition: all 0.3s;
}

.search-box:focus-within .search-icon {
    filter: none;
    transform: scale(1.1);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    outline: none;
    caret-color: var(--neon-cyan);
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
}

.search-hint {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-secondary));
    color: var(--text-muted);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.search-box:focus-within .search-hint {
    background: var(--neon-cyan);
    color: var(--bg-void);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 242, 0.4);
}

/* ═══════════════════════════════════════════════════════════
   FILTERS - Pill-style selectors
   ═══════════════════════════════════════════════════════════ */
.filters {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.filters select {
    appearance: none;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.75rem 2.5rem 0.75rem 1.25rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300fff2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.filters select:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.15);
}

.filters select:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 3px rgba(0, 255, 242, 0.2);
}

/* Filter Toggle Button */
.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-toggle:hover {
    border-color: var(--border-glow);
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.15);
}

.filter-toggle.active {
    background: rgba(0, 255, 242, 0.1);
    border-color: var(--neon-cyan);
}

.filter-icon {
    font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   ADVANCED FILTERS PANEL
   ═══════════════════════════════════════════════════════════ */
.advanced-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem;
    margin-top: 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.advanced-filters.hidden {
    display: none;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group select,
.filter-group input {
    appearance: none;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s;
}

.filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%2300fff2' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2rem;
}

.filter-group input::placeholder {
    color: var(--text-muted);
}

.filter-group select:focus,
.filter-group input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 2px rgba(0, 255, 242, 0.15);
}

.tag-filter-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.active-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0, 255, 242, 0.15);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 0.25rem 0.5rem 0.25rem 0.75rem;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
}

.active-tag button {
    background: none;
    border: none;
    color: var(--neon-cyan);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.active-tag button:hover {
    opacity: 1;
}

.clear-filters {
    align-self: flex-end;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-filters:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

/* ═══════════════════════════════════════════════════════════
   QUICK TAGS - Holographic chips
   ═══════════════════════════════════════════════════════════ */
.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.tag {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.tag::before {
    content: '#';
    color: var(--neon-purple);
    margin-right: 0.25rem;
    transition: color 0.3s;
}

.tag::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.tag:hover {
    color: var(--text-primary);
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 242, 0.3);
}

.tag:hover::before {
    color: var(--text-primary);
}

.tag:hover::after {
    opacity: 1;
}

/* ═══════════════════════════════════════════════════════════
   STATS BAR - Terminal output style
   ═══════════════════════════════════════════════════════════ */
.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 255, 242, 0.03);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--neon-cyan);
}

#result-count {
    color: var(--neon-green);
}

#search-time {
    color: var(--neon-purple);
}

/* ═══════════════════════════════════════════════════════════
   RESULTS AREA
   ═══════════════════════════════════════════════════════════ */
.results {
    min-height: 500px;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    color: var(--text-secondary);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--bg-elevated);
    border-top-color: var(--neon-cyan);
    border-right-color: var(--neon-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading p {
    font-family: 'JetBrains Mono', monospace;
    animation: loadingText 1.5s ease-in-out infinite;
}

@keyframes loadingText {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════
   FEATURED SECTION
   ═══════════════════════════════════════════════════════════ */
.featured-section h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.featured-section h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-glow), transparent);
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   SKILL CARD - Holographic glass card
   ═══════════════════════════════════════════════════════════ */
.skill-card {
    position: relative;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: cardFadeIn 0.5s ease-out backwards;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Staggered animation for cards */
.skill-card:nth-child(1) { animation-delay: 0.05s; }
.skill-card:nth-child(2) { animation-delay: 0.1s; }
.skill-card:nth-child(3) { animation-delay: 0.15s; }
.skill-card:nth-child(4) { animation-delay: 0.2s; }
.skill-card:nth-child(5) { animation-delay: 0.25s; }
.skill-card:nth-child(6) { animation-delay: 0.3s; }
.skill-card:nth-child(7) { animation-delay: 0.35s; }
.skill-card:nth-child(8) { animation-delay: 0.4s; }
.skill-card:nth-child(9) { animation-delay: 0.45s; }
.skill-card:nth-child(10) { animation-delay: 0.5s; }
.skill-card:nth-child(11) { animation-delay: 0.55s; }
.skill-card:nth-child(12) { animation-delay: 0.6s; }

/* Holographic shine effect */
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s;
}

.skill-card:hover::before {
    left: 100%;
}

/* Corner accent */
.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 50%, var(--neon-cyan) 50%);
    opacity: 0;
    transition: opacity 0.3s;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.skill-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 255, 242, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.skill-card:hover::after {
    opacity: 0.3;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.skill-name {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--neon-cyan);
    word-break: break-word;
    transition: all 0.3s;
    text-shadow: 0 0 20px rgba(0, 255, 242, 0.3);
}

.skill-card:hover .skill-name {
    text-shadow: 0 0 30px rgba(0, 255, 242, 0.6);
}

.skill-stars {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--neon-orange);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    flex-shrink: 0;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 159, 10, 0.1);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 159, 10, 0.2);
}

.skill-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.skill-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.skill-category {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-magenta));
    color: var(--text-primary);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-tag {
    color: var(--neon-purple);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    opacity: 0.8;
}

.skill-install {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.install-cmd {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-void);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.skill-card:hover .install-cmd {
    border-color: var(--border-glow);
    box-shadow: inset 0 0 20px rgba(0, 255, 242, 0.05);
}

.install-cmd .prefix {
    color: var(--neon-cyan);
    font-weight: 700;
}

.install-cmd span:not(.prefix) {
    color: var(--neon-green);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: var(--neon-cyan);
    background: rgba(0, 255, 242, 0.1);
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════════
   SKILL LIST (Search Results)
   ═══════════════════════════════════════════════════════════ */
.skill-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 5rem;
    display: block;
    margin-bottom: 1.5rem;
    filter: grayscale(1) brightness(0.5);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════
   LOAD MORE
   ═══════════════════════════════════════════════════════════ */
.load-more {
    text-align: center;
    padding: 3rem 0;
}

.load-more button {
    position: relative;
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s;
    overflow: hidden;
}

.load-more button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--neon-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s;
    z-index: -1;
}

.load-more button:hover {
    color: var(--bg-void);
    box-shadow: 0 0 30px rgba(0, 255, 242, 0.5);
}

.load-more button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.footer-links {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s;
}

.footer-links a:hover {
    color: var(--neon-cyan);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-links .divider {
    display: none;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   MODAL - Floating panel
   ═══════════════════════════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow:
        var(--shadow-neon),
        var(--shadow-deep),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--neon-pink);
    border-color: var(--neon-pink);
    color: white;
    transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */
.hidden {
    display: none !important;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Selection */
::selection {
    background: var(--neon-cyan);
    color: var(--bg-void);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .logo-icon {
        font-size: 2.5rem;
    }

    .search-box {
        padding: 0.75rem 1rem;
        border-radius: var(--radius-lg);
    }

    .search-box input {
        font-size: 1rem;
    }

    .search-hint {
        display: none;
    }

    .filters {
        flex-direction: column;
    }

    .filters select {
        width: 100%;
    }

    .skill-grid,
    .skill-list {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-height: 90vh;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   HIGHLIGHT (Search matches)
   ═══════════════════════════════════════════════════════════ */
.highlight {
    background: rgba(0, 255, 242, 0.2);
    color: var(--neon-cyan);
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════
   NAVIGATION TABS - Futuristic tab bar
   ═══════════════════════════════════════════════════════════ */
.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeInUp 0.8s ease-out 0.35s both;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.nav-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
    color: var(--bg-void);
    font-weight: 600;
}

.nav-tab.active::before {
    opacity: 1;
}

.nav-tab.active {
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.4);
}

.tab-icon {
    font-size: 1.1rem;
}

.tab-label {
    display: inline;
}

@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: wrap;
    }

    .nav-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .tab-label {
        display: none;
    }

    .tab-icon {
        font-size: 1.2rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   RANDOM BUTTON
   ═══════════════════════════════════════════════════════════ */
.random-btn {
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: pulse 2s ease-in-out infinite;
}

.random-btn:hover {
    background: linear-gradient(135deg, var(--neon-orange), var(--neon-pink));
    border-color: transparent;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 25px rgba(255, 159, 10, 0.5);
}

/* ═══════════════════════════════════════════════════════════
   LEADERBOARD SECTION
   ═══════════════════════════════════════════════════════════ */
.leaderboard-section h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.leaderboard-filter {
    appearance: none;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 0.6rem 2rem 0.6rem 1rem;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: all 0.3s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffd93d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.leaderboard-filter:hover,
.leaderboard-filter:focus {
    border-color: var(--neon-orange);
    box-shadow: 0 0 15px rgba(255, 215, 61, 0.2);
}

.leaderboard-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.leaderboard-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    animation: cardFadeIn 0.4s ease-out backwards;
}

.leaderboard-card:nth-child(1) { animation-delay: 0.05s; }
.leaderboard-card:nth-child(2) { animation-delay: 0.1s; }
.leaderboard-card:nth-child(3) { animation-delay: 0.15s; }
.leaderboard-card:nth-child(4) { animation-delay: 0.2s; }
.leaderboard-card:nth-child(5) { animation-delay: 0.25s; }

.leaderboard-card:hover {
    border-color: var(--border-glow);
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.leaderboard-card.gold {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 159, 10, 0.05));
    border-color: rgba(255, 215, 0, 0.3);
}

.leaderboard-card.silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(150, 150, 150, 0.05));
    border-color: rgba(192, 192, 192, 0.3);
}

.leaderboard-card.bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(180, 100, 50, 0.05));
    border-color: rgba(205, 127, 50, 0.3);
}

.rank {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 50px;
    text-align: center;
}

.rank.gold { color: #ffd700; text-shadow: 0 0 15px rgba(255, 215, 0, 0.5); }
.rank.silver { color: #c0c0c0; text-shadow: 0 0 15px rgba(192, 192, 192, 0.5); }
.rank.bronze { color: #cd7f32; text-shadow: 0 0 15px rgba(205, 127, 50, 0.5); }

.leaderboard-info {
    flex: 1;
    min-width: 0;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0;
}

.leaderboard-info .leaderboard-header {
    margin-bottom: 0.5rem;
}

.leaderboard-info .skill-description {
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 1;
}

.leaderboard-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   STATS SECTION
   ═══════════════════════════════════════════════════════════ */
.stats-section h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stats-section h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-glow), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple));
}

.stat-card:nth-child(1)::before { background: linear-gradient(90deg, var(--neon-cyan), var(--neon-blue)); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, var(--neon-purple), var(--neon-magenta)); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan)); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, var(--neon-orange), var(--neon-pink)); }

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.stat-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.stats-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-container {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.chart-container h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chart-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 100px;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-bar-container {
    flex: 1;
    height: 24px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.chart-bar {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.chart-bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.chart-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    min-width: 100px;
}

@media (max-width: 768px) {
    .stats-charts {
        grid-template-columns: 1fr;
    }

    .chart-label {
        min-width: 70px;
        font-size: 0.65rem;
    }

    .chart-value {
        min-width: 60px;
        font-size: 0.65rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   FAVORITES SECTION
   ═══════════════════════════════════════════════════════════ */
.favorites-section h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.favorites-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
    opacity: 0.6;
}

.favorite-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

.favorite-btn.active {
    opacity: 1;
    animation: heartBeat 0.4s ease-out;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.2); }
}

.favorite-btn.large {
    font-size: 1.5rem;
    padding: 0.5rem;
}

.skill-header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   OFFICIAL BADGE
   ═══════════════════════════════════════════════════════════ */
.official-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--neon-green), var(--neon-cyan));
    color: var(--bg-void);
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-left: 0.4rem;
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(48, 209, 88, 0.5);
}

/* ═══════════════════════════════════════════════════════════
   SIMILAR SKILLS (Modal)
   ═══════════════════════════════════════════════════════════ */
.similar-skills {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.similar-skills h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.similar-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s;
}

.similar-card:hover {
    border-color: var(--border-glow);
    background: var(--bg-glass);
    transform: translateY(-2px);
}

.similar-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.similar-stars {
    font-size: 0.7rem;
    color: var(--neon-orange);
    flex-shrink: 0;
}

.modal-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.modal-header-row h2 {
    margin: 0;
}

@media (max-width: 480px) {
    .similar-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════
   COMMUNITY FEATURES - Likes, Comments, Ratings
   ═══════════════════════════════════════════════════════════ */

.community-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    margin: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

.like-btn:hover {
    background: rgba(0, 255, 242, 0.1);
    border-color: var(--neon-cyan);
}

.like-btn.liked {
    background: rgba(0, 255, 242, 0.2);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 242, 0.3);
}

.like-icon {
    font-size: 1.1rem;
}

.like-count {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.9rem;
}

.comment-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Comments Section */
.comments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-section h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-form input,
.comment-form textarea {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 0 2px rgba(0, 255, 242, 0.1);
}

.comment-form textarea {
    min-height: 80px;
    resize: vertical;
}

.rating-input {
    display: flex;
    gap: 0.25rem;
}

.rating-star {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.rating-star:hover,
.rating-star.active {
    color: var(--neon-orange);
    transform: scale(1.1);
}

.submit-comment-btn {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    color: var(--bg-void);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 242, 0.3);
}

.submit-comment-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.comment-item {
    padding: 1rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.comment-author {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-cyan);
}

.comment-rating {
    font-size: 0.8rem;
    color: var(--neon-orange);
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.comment-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.no-comments,
.loading-comments {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Light theme adjustments for community features */
[data-theme="light"] .comment-form,
[data-theme="light"] .comment-item {
    background: var(--bg-secondary);
}

[data-theme="light"] .like-btn {
    background: var(--bg-secondary);
}

[data-theme="light"] .like-btn.liked {
    background: rgba(0, 102, 204, 0.1);
}

@media (max-width: 480px) {
    .community-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .comment-date {
        margin-left: 0;
    }
}
