:root {
    --primary-color: #1db857;
    --primary-hover: #17a047;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --card-bg: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #252525;
    --accent-glow: rgba(29, 184, 87, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 900px;
    background: linear-gradient(180deg, 
        #1db857 0%,
        #17a047 12%,
        #158f43 20%,
        #12783a 28%,
        #0f6532 38%,
        #0c5229 48%,
        #093f20 58%,
        #062c17 68%,
        #041a0e 78%,
        #020d07 88%,
        #000000 100%
    );
    clip-path: ellipse(100% 100% at 50% 0%);
    z-index: 0;
    pointer-events: none;
    animation: gradientPulse 8s ease-in-out infinite alternate;
}

@keyframes gradientPulse {
    0% {
        opacity: 0.9;
    }
    100% {
        opacity: 1;
    }
}

#cursorCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.commands-hero {
    padding: 140px 0 60px;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 1;
}

.commands-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.commands-hero-subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Controls Section */
.controls-section {
    padding: 15px 0;
    position: sticky;
    position: -webkit-sticky;
    top: 100px;
    z-index: 900;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    background: transparent;
    border: 1px solid rgba(29, 184, 87, 0.2);
    border-radius: 12px;
    color: var(--text-primary);
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.view-toggle {
    display: flex;
    background: transparent;
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(29, 184, 87, 0.2);
}

.toggle-btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

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

/* Categories */
.categories-nav {
    display: flex;
    gap: 10px;
    margin: 15px 0 5px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.category-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(29, 184, 87, 0.2);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.category-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--accent-glow);
}

/* Commands Grid */
.commands-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 40px 0 80px;
}

.command-card {
    background: transparent;
    border: 1px solid rgba(29, 184, 87, 0.2);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.3s;
}

.command-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.command-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.command-name-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.command-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-admin { background: rgba(245, 60, 60, 0.1); color: #f53c3c; border: 1px solid #f53c3c; }
.badge-core { background: rgba(29, 184, 87, 0.1); color: var(--primary-color); border: 1px solid var(--primary-color); }
.badge-premium { background: rgba(255, 171, 0, 0.1); color: #ffab00; border: 1px solid #ffab00; }
.badge-community { background: rgba(88, 101, 242, 0.1); color: #5865f2; border: 1px solid #5865f2; }

.command-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Detailed Content */
.detailed-only {
    display: none;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

body.detailed-view .detailed-only {
    display: block;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: block;
}

.params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.param-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 10px;
}

.param-name {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.usage-box {
    background: #000;
    padding: 20px;
    border-radius: 12px;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 25px;
    position: relative;
    border: 1px solid rgba(29, 184, 87, 0.2);
}

.usage-text {
    color: #fff;
}

.copy-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid rgba(29, 184, 87, 0.2);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.permission-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .commands-hero-title { font-size: 2.2rem; }
    .controls-container { flex-direction: column; align-items: stretch; }
}
