/* ===== Command Comparison ===== */

/* Comparison Card */
.comparison-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.comparison-card-header {
    padding: 1rem 1.2rem;
    background: #f8f9fa;
    border-bottom: 1px solid var(--border-color);
}

.comparison-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.comparison-card-body {
    padding: 1.2rem;
}

.comparison-summary {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
    padding: 0.8rem;
    border: 1px solid #e0e0e0;
    text-align: left;
    vertical-align: top;
}

.comparison-table th {
    background: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
}

.comparison-table th:first-child {
    width: 120px;
}

/* Command Headers in Comparison */
.comparison-cmd-header {
    background: #f8f9fa;
    color: #333;
    font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Highlight differences */
.diff-safe {
    background: #e8f5e9;
}

.diff-warning {
    background: #fff8e1;
}

.diff-danger {
    background: #ffebee;
}

/* Use case badges */
.use-case-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    margin: 0.2rem;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 0.75rem;
    border-radius: 3px;
}

/* Recommendation box */
.recommendation-box {
    margin-top: 1rem;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 4px;
    border-left: 4px solid var(--accent-color);
}

.recommendation-box h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: #1565c0;
}

.recommendation-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #333;
}

/* Visual comparison diagram */
.comparison-diagram {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.diagram-item {
    text-align: center;
}

.diagram-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.diagram-label {
    font-size: 0.85rem;
    color: #666;
}

.diagram-arrow {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    color: #888;
}

/* Tab navigation for comparisons */
.comparison-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    gap: 0;
}

.comparison-tab {
    padding: 0.8rem 1.5rem;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-bottom: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.15s;
    margin-right: -1px;
}

.comparison-tab:first-child {
    border-radius: 4px 0 0 0;
}

.comparison-tab:last-child {
    border-radius: 0 4px 0 0;
}

.comparison-tab:hover {
    background: #e3f2fd;
}

.comparison-tab.active {
    background: white;
    color: var(--accent-color);
    font-weight: 600;
    border-bottom: 2px solid white;
    margin-bottom: -1px;
}
