/* ========================================
   WIKI PAGE SPECIFIC STYLES
   ======================================== */

/* Category Sections */
.category {
    margin-bottom: 40px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease forwards;
    animation-fill-mode: both;
}

.category:nth-child(1) { animation-delay: 0.1s; }
.category:nth-child(2) { animation-delay: 0.2s; }
.category:nth-child(3) { animation-delay: 0.3s; }
.category:nth-child(4) { animation-delay: 0.4s; }
.category:nth-child(5) { animation-delay: 0.5s; }
.category:nth-child(6) { animation-delay: 0.6s; }

.category:hover {
    border-color: var(--border-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.category-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.category-header:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.05));
}

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.category-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    background: none;
    -webkit-text-fill-color: unset;
}

.category-title p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.toggle-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

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

.category-content {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.category.open .category-content {
    padding: 30px;
    max-height: 5000px;
}

/* Command Table */
.command-table {
    width: 100%;
    border-collapse: collapse;
}

.command-table th {
    text-align: left;
    padding: 15px 20px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
}

.command-table th:first-child {
    border-radius: 10px 0 0 0;
}

.command-table th:last-child {
    border-radius: 0 10px 0 0;
}

.command-table td {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.command-table tr:last-child td {
    border-bottom: none;
}

.command-table tr:hover td {
    background: rgba(124, 58, 237, 0.05);
}

.command-name {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent-secondary);
    background: rgba(124, 58, 237, 0.15);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.command-description {
    color: var(--text-secondary);
}

.command-usage {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Duration Cards */
.duration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.duration-card {
    background: var(--bg-tertiary);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.duration-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.duration-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.duration-card .label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .command-table {
        font-size: 0.85rem;
    }

    .command-table th,
    .command-table td {
        padding: 12px;
    }

    .category-header {
        padding: 20px;
    }

    .category-title h2 {
        font-size: 1.2rem;
    }
}
