/* --- Singularity Mastery Premium UI System --- */

.mastery-status-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    transition: var(--transition-spring);
}

.mastery-status-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px var(--primary-glow);
}

.mastery-card-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.mastery-icon-orbit {
    width: 54px;
    height: 54px;
    background: var(--surface-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 2px solid var(--primary);
    animation: orbit-glow 3s infinite alternate;
}

.mastery-star {
    width: 24px;
    height: 24px;
    fill: var(--primary);
}

.mastery-text h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.mastery-text p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.mastery-progress-group {
    margin-bottom: 1.25rem;
}

.mastery-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.mastery-progress-track {
    height: 8px;
    background: var(--surface-2);
    border-radius: 4px;
    overflow: hidden;
}

.mastery-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.mastery-progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: sweep 2s infinite;
}

.mastery-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.status-badge {
    font-size: 0.65rem;
    font-weight: 800;
    background: var(--primary-glow);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.xp-needed {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

@keyframes orbit-glow {
    0% { box-shadow: 0 0 5px var(--primary-glow); border-color: var(--primary); }
    100% { box-shadow: 0 0 20px var(--primary-glow), 0 0 40px var(--primary-glow); border-color: var(--secondary); }
}

@keyframes sweep {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* --- Singularity Calibration (Elegant Under-Construction) --- */

.singularity-calibration-container {
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 1px dashed var(--primary);
    position: relative;
    overflow: hidden;
    margin: 2rem 0;
}

.calibration-pulse {
    width: 120px;
    height: 120px;
    background: var(--primary-glow);
    border: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-calibration 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.calibration-icon {
    font-size: 3rem;
}

.calibration-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.calibration-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 400px;
    margin: 0 auto;
}

.calibration-progress {
    width: 200px;
    height: 4px;
    background: rgba(255,255,255,0.05);
    margin: 2rem auto;
    border-radius: 2px;
    overflow: hidden;
}

.calibration-line {
    width: 100%;
    height: 100%;
    background: var(--primary);
    animation: calibration-scan 2s linear infinite;
}

@keyframes pulse-calibration {
    0% { transform: scale(1); box-shadow: 0 0 0 0 var(--primary-glow); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 30px transparent; }
    100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}

@keyframes calibration-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
