/**
 * Mastery Tracker Styles
 * Styles for the Mystery Process mastery tracking UI
 */

.mastery-tracker-graph {
    display: flex;
    flex-direction: column;
}

.mastery-tracker-container {
    padding: 20px;
    background: var(--tool-bg, var(--main-bg));
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.mastery-progress-section {
    margin-bottom: 24px;
}

.mastery-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mastery-progress-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.mastery-progress-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent, #6366f1);
}

.mastery-progress-bar-container {
    width: 100%;
    height: 24px;
    background: var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}

.mastery-progress-bar {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 12px;
}

.mastery-components {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.mastery-component {
    padding: 16px;
    background: var(--main-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.mastery-component-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mastery-component-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.mastery-component-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.mastery-component-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.mastery-component-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--accent, #6366f1), var(--accent-hover, #8b5cf6));
    transition: width 0.3s ease;
}

.mastery-component-detail {
    font-size: 12px;
    color: var(--text-secondary);
}

.mastery-practice-graph {
    margin-bottom: 24px;
}

.mastery-graph-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.mastery-graph-container {
    padding: 16px;
    background: var(--main-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.mastery-practice-svg {
    width: 100%;
    height: auto;
    max-height: 250px;
}

.mastery-graph-point {
    cursor: pointer;
    transition: r 0.2s ease;
}

.mastery-graph-point:hover {
    r: 6;
}

.mastery-no-data {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    margin: 0;
}

.mastery-mystery-card {
    margin-top: 24px;
    padding: 16px;
    background: var(--main-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.mastery-mystery-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.mastery-mystery-toggle:hover {
    background: var(--tool-bg, var(--main-bg));
    border-radius: 6px;
}

.mastery-mystery-toggle.active {
    background: var(--tool-bg, var(--main-bg));
}

.mastery-mystery-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent, #6366f1);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
}

.mastery-mystery-label {
    flex: 1;
    text-align: left;
}

.mastery-mystery-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.mastery-mystery-content p {
    margin: 0 0 12px 0;
}

.mastery-mystery-content p:last-child {
    margin-bottom: 0;
}

.mastery-loading {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .mastery-tracker-container {
        padding: 16px;
    }
    
    .mastery-progress-value {
        font-size: 20px;
    }
    
    .mastery-component {
        padding: 12px;
    }
    
    .mastery-graph-container {
        padding: 12px;
    }
}

