/* Plan Display Styles */

.plan-output {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.plan-header h3 {
    margin: 0;
}

.plan-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.plan-counters {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    background: linear-gradient(135deg, rgba(61,50,32,0.5), rgba(44,36,22,0.5));
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-md);
}

.counter-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.counter-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.counter-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.counter-value {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.1rem;
    min-width: 32px;
    text-align: center;
    padding: 2px 8px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
    border: 1px solid var(--border-gold);
}

.plan-text {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: var(--spacing-md);
    overflow-x: auto;
}

.plan-text code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.95rem;
    color: var(--primary-color);
    white-space: pre-wrap;
    word-break: break-all;
}

.plan-breakdown {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
}

.plan-breakdown h3 {
    margin-bottom: var(--spacing-md);
}

.plan-steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

/* Step Card */
.plan-step {
    background: linear-gradient(135deg, rgba(61,50,32,0.7), rgba(44,36,22,0.7));
    border: 2px solid var(--border-color);
    outline: 1px solid rgba(0,0,0,0.35);
    border-radius: 12px;
    padding: 14px;
    display: grid;
    grid-template-columns: 44px 40px 1fr;
    gap: 12px;
    align-items: center;
}

.step-index {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255,215,0,0.18), rgba(255,165,0,0.12));
    border: 2px solid var(--border-gold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.step-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.step-content { display: flex; flex-direction: column; gap: 6px; }
.step-title-row { display: flex; align-items: center; gap: 8px; }
.step-title { font-weight: 700; color: var(--text-primary); }
.step-xp { color: #00d26a; font-weight: 600; }
.step-method { color: var(--text-secondary); font-style: italic; }

.step-stats {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px 14px;
    margin-top: 6px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    background: rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.stat-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item img { width: 22px; height: 22px; display: block; }
.stat-level { color: var(--text-primary); font-weight: 600; }
