/* Commands Page Styles */

.commands-header {
    text-align: center;
    padding: 6rem 0 3rem;
}

.commands-header h1 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.commands-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.search-box {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--dark-lighter);
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 255, 191, 0.1);
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.125rem;
}

.commands-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1rem;
}

.commands-stat {
    text-align: center;
}

.commands-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.commands-stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.categories-container {
    max-width: 900px;
    margin: 0 auto;
}

.category-accordion {
    background: var(--dark-lighter);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.category-accordion:hover {
    border-color: var(--primary);
}

.category-header {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: all 0.3s;
}

.category-header:hover {
    background: var(--dark-light);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title i {
    font-size: 1.5rem;
    color: var(--primary);
}

.category-title h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.category-count {
    background: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

.category-icon-toggle {
    color: var(--text-muted);
    transition: transform 0.3s;
}

.category-accordion.active .category-icon-toggle {
    transform: rotate(180deg);
}

.category-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.category-accordion.active .category-content {
    max-height: 5000px;
    transition: max-height 0.5s ease-in;
    padding: 0 1.5rem 1.5rem;
}

.commands-list {
    padding: 1.5rem;
    background: var(--dark);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
}

.command-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
}

.command-item:last-child {
    border-bottom: none;
}

.command-item:hover {
    background: rgba(0, 255, 191, 0.03);
    padding-left: 0.5rem;
}

.command-name {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.3px;
}

.command-name .args {
    color: #ff8c00;
    font-weight: 600;
}

.command-name .optional-args {
    color: #4dabf7;
    font-weight: 500;
    opacity: 0.9;
}

.command-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.5;
    padding-left: 1rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-muted);
}

/* Responsive Design */

/* Tablette */
@media (max-width: 1024px) {
    .categories-container {
        max-width: 800px;
    }

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

    .search-box input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
    }

    .search-box i {
        left: 0.875rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Header mobile */
    .commands-header {
        padding: 4rem 0 2rem;
    }

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

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

    /* Search mobile */
    .search-box {
        margin-bottom: 2rem;
    }

    .search-box input {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        font-size: 0.9375rem;
    }

    .search-box i {
        left: 0.75rem;
        font-size: 1rem;
    }

    /* Stats mobile */
    .commands-stats {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .commands-stat-value {
        font-size: 2rem;
    }

    .commands-stat-label {
        font-size: 0.8125rem;
    }

    /* Légende mobile */
    .commands-header [style*="text-align: center"] {
        margin-top: 1.5rem !important;
        font-size: 0.8125rem !important;
    }

    /* Catégories mobile */
    .categories-container {
        max-width: 100%;
    }

    .category-accordion {
        margin-bottom: 0.75rem;
    }

    .category-header {
        padding: 1rem;
    }

    .category-title {
        gap: 0.75rem;
    }

    .category-title i {
        font-size: 1.25rem;
    }

    .category-title h3 {
        font-size: 1rem;
    }

    .category-count {
        padding: 0.2rem 0.6rem;
        font-size: 0.8125rem;
    }

    /* Content mobile */
    .category-content {
        padding: 0 1rem;
    }

    .category-accordion.active .category-content {
        padding: 0 1rem 1rem;
    }

    .commands-list {
        padding: 1rem;
    }

    .command-item {
        padding: 0.65rem 0;
    }

    .command-name {
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
        word-break: break-word;
    }

    .command-description {
        font-size: 0.8125rem;
        padding-left: 0.5rem;
    }

    /* No results mobile */
    .no-results {
        padding: 3rem 1.5rem;
    }

    .no-results i {
        font-size: 3rem;
    }

    .no-results h3 {
        font-size: 1.25rem;
    }

    .no-results p {
        font-size: 0.9375rem;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .commands-header h1 {
        font-size: 1.75rem;
    }

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

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

    .commands-stat-value {
        font-size: 1.75rem;
    }

    .category-title h3 {
        font-size: 0.9375rem;
    }

    .category-title i {
        font-size: 1.125rem;
    }

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

    .command-description {
        font-size: 0.75rem;
    }
}
