/* ═══════════════════════════════════════════════════════════════
   指令速查表頁面 - Cyberpunk Theme
   ═══════════════════════════════════════════════════════════════ */

.commands-hero .server-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

/* 搜尋框 */
.cmd-search-box {
    margin-bottom: 1.5rem;
    animation: cardReveal 0.6s ease-out 0.15s both;
}

.cmd-search-box input {
    width: 100%;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 14px;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: var(--font-body);
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
}

.cmd-search-box input::placeholder {
    color: var(--text-muted);
}

.cmd-search-box input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
}

/* 分類 Tabs */
.cmd-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: cardReveal 0.6s ease-out 0.2s both;
}

.cmd-tab {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(0, 245, 212, 0.2);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cmd-tab:hover {
    color: var(--neon-cyan);
    border-color: rgba(0, 245, 212, 0.4);
    background: rgba(0, 245, 212, 0.08);
}

.cmd-tab.active {
    color: var(--bg-deep);
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    font-weight: 600;
    box-shadow: var(--glow-cyan);
}

/* 指令分類區塊 */
.commands-main {
    display: grid;
    gap: 2.5rem;
    margin: 1rem 0 2rem;
}

.cmd-category {
    animation: cardReveal 0.6s ease-out both;
}

.cmd-category:nth-child(1) { animation-delay: 0.1s; }
.cmd-category:nth-child(2) { animation-delay: 0.15s; }
.cmd-category:nth-child(3) { animation-delay: 0.2s; }
.cmd-category:nth-child(4) { animation-delay: 0.25s; }
.cmd-category:nth-child(5) { animation-delay: 0.3s; }
.cmd-category:nth-child(6) { animation-delay: 0.35s; }

.cmd-category-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neon-cyan);
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 245, 212, 0.15);
}

/* 指令卡片網格 */
.cmd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.cmd-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(0, 245, 212, 0.08);
    transition: all 0.3s ease;
}

.cmd-card:hover {
    border-color: rgba(0, 245, 212, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.cmd-code {
    display: inline-block;
    background: rgba(0, 245, 212, 0.12);
    color: var(--neon-cyan);
    padding: 6px 14px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(0, 245, 212, 0.25);
    margin-bottom: 10px;
    word-break: break-all;
}

.cmd-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 提示區塊 */
.cmd-tip {
    margin: 2rem 0;
}

.cmd-tip-card {
    background: linear-gradient(135deg, rgba(254, 228, 64, 0.08), rgba(0, 245, 212, 0.08));
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(254, 228, 64, 0.2);
    text-align: center;
}

.cmd-tip-card h2 {
    font-family: var(--font-display);
    color: var(--neon-yellow);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.cmd-tip-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0.5rem 0;
}

.cmd-tip-card code {
    background: rgba(0, 245, 212, 0.12);
    color: var(--neon-cyan);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.cmd-tip-card a {
    color: #5865f2;
    text-decoration: none;
    font-weight: 600;
}

.cmd-tip-card a:hover {
    text-decoration: underline;
}

/* Footer */
.commands-footer {
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 245, 212, 0.1);
}

.commands-footer p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0.5rem 0;
}


/* 分類說明文字 */
.cmd-category-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: -0.5rem 0 1.2rem;
    padding: 10px 16px;
    background: rgba(0, 245, 212, 0.04);
    border-left: 3px solid rgba(0, 245, 212, 0.3);
    border-radius: 0 8px 8px 0;
    line-height: 1.6;
}

/* 寬卡片（長指令用） */
.cmd-card-wide {
    grid-column: 1 / -1;
}

/* 範例/說明卡片 */
.cmd-example-card {
    text-align: left;
    margin-top: 1rem;
}

.cmd-example-card h3 {
    font-family: var(--font-display);
    color: var(--neon-yellow);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.cmd-example-card p {
    margin: 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.cmd-example-text {
    color: var(--text-muted);
    font-style: italic;
}

/* 更多分類動畫延遲 */
.cmd-category:nth-child(7) { animation-delay: 0.4s; }
.cmd-category:nth-child(8) { animation-delay: 0.45s; }
.cmd-category:nth-child(9) { animation-delay: 0.5s; }
.cmd-category:nth-child(10) { animation-delay: 0.55s; }
.cmd-category:nth-child(11) { animation-delay: 0.6s; }
.cmd-category:nth-child(12) { animation-delay: 0.65s; }
.cmd-category:nth-child(13) { animation-delay: 0.7s; }


/* Responsive */
@media (max-width: 768px) {
    .cmd-grid {
        grid-template-columns: 1fr;
    }
    .cmd-tabs {
        gap: 0.4rem;
    }
    .cmd-tab {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}
