:root {
    --primary: #00e676;
    --primary-hover: #00c853;
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #2a2a2a;
}

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

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Header da página de comandos */
.commands-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.commands-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.commands-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Container de filtros (tabs) */
.filters-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.filters-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

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

.filters-tabs {
    display: flex;
    gap: 0.75rem;
    min-width: min-content;
    padding-bottom: 0.5rem;
}

.filter-tab {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    font-weight: 600;
}

.filter-tab .count {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.filter-tab.active .count {
    background: rgba(0, 0, 0, 0.2);
}

/* Grid de comandos */
.commands-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem 4rem;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
    animation: fadeIn 0.3s ease;
}

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

.command-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), #00ff88);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.command-card:hover::before {
    transform: scaleX(1);
}

.command-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 230, 118, 0.15);
}

.command-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.command-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), #00ff88);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #000;
    flex-shrink: 0;
}

.command-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.command-prefix {
    color: var(--primary);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.command-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Estilos específicos para slash commands */
.command-card[data-type="slash"] {
    border-color: rgba(136, 91, 255, 0.3);
}

.command-card[data-type="slash"]:hover {
    border-color: #885bff;
    box-shadow: 0 8px 24px rgba(136, 91, 255, 0.2);
}

.command-card[data-type="slash"]::before {
    background: linear-gradient(90deg, #885bff, #a78bfa);
}

.command-icon.slash {
    background: linear-gradient(135deg, #885bff, #a78bfa);
}

.command-card[data-type="slash"] .command-prefix {
    color: #a78bfa;
}

/* Estilos específicos para comandos de prefixo */
.command-card[data-type="prefix"] {
    border-color: var(--border-color);
}

.command-card[data-type="prefix"]:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 230, 118, 0.15);
}

.command-card[data-type="prefix"]::before {
    background: linear-gradient(90deg, var(--primary), #00ff88);
}

.command-icon.prefix {
    background: linear-gradient(135deg, var(--primary), #00ff88);
}

/* Contador de resultados */
.results-count {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 1rem 0;
}

.results-count strong {
    color: var(--primary);
    font-weight: 600;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Footer */
.footer-simple {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .commands-header h1 {
        font-size: 2rem;
    }

    .commands-header p {
        font-size: 1rem;
    }

    .commands-grid {
        grid-template-columns: 1fr;
    }

    .filter-tab {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .filters-container,
    .commands-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 480px) {
    .commands-header {
        padding: 3rem 1rem 1.5rem;
    }

    .commands-header h1 {
        font-size: 1.75rem;
    }

    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .command-card {
        padding: 1.25rem;
    }

    .command-name {
        font-size: 1.1rem;
    }
}

/* Animação de loading */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Seleção de texto */
::selection {
    background: var(--primary);
    color: #000;
}

::-moz-selection {
    background: var(--primary);
    color: #000;
}
