/* Commands Page Additional Styles */

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

.search-input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    color: var(--text-white);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: var(--claude-orange);
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: var(--text-gray);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1.2rem;
    pointer-events: none;
}

/* Stats Banner */
.stats-banner {
    background: rgba(217, 119, 87, 0.1);
    border: 1px solid rgba(217, 119, 87, 0.3);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.stats-banner h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.stat {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--claude-orange), var(--claude-orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Table of Contents Grid */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.toc-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-white);
    transition: all 0.3s;
    gap: 1rem;
}

.toc-link:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--claude-orange);
    transform: translateX(5px);
}

.toc-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toc-text {
    flex: 1;
    font-weight: 600;
}

.toc-count {
    background: rgba(217, 119, 87, 0.2);
    color: var(--claude-orange);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Pro Tip Box */
.pro-tip {
    background: rgba(14, 165, 233, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    color: var(--text-gray);
    line-height: 1.7;
}

.pro-tip strong {
    color: var(--primary);
}

/* Command Sections */
.command-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px; /* For smooth scroll with sticky header */
}

.command-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--claude-orange);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.commands-grid {
    display: grid;
    gap: 1.5rem;
}

/* Command Cards */
.command-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.command-card:hover {
    border-color: var(--claude-orange);
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(217, 119, 87, 0.2);
}

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

.command-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.command-icon {
    font-size: 1.3rem;
}

/* Difficulty Badges */
.difficulty-badge {
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.difficulty-beginner {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.difficulty-intermediate {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.difficulty-advanced {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.command-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

/* Command Prompt Box */
.command-prompt {
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    padding-top: 2.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--claude-orange);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d1d5db;
    line-height: 1.8;
    position: relative;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.copy-prompt-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-gray);
    color: var(--text-gray);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    z-index: 10;
}

.copy-prompt-btn:hover {
    background: var(--claude-orange);
    color: white;
    border-color: var(--claude-orange);
}

.copy-prompt-btn.copied {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .toc-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .command-section h2 {
        font-size: 1.5rem;
    }

    .command-card {
        padding: 1.5rem;
    }

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

    .command-prompt {
        font-size: 0.8rem;
        padding: 1.25rem;
        padding-top: 2.5rem;
    }

    .search-input {
        font-size: 0.95rem;
    }
}

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

    .command-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
