/**
 * Practice UI - ProMathsGuru Brand Enhancement
 * Modern practice interface with brand color palette
 * Gradient: #1c2fff to #6a7dff | Background: #f7f9ff | Text: #2d3436
 *
 * @package MMLMS
 * @since 6.0.70
 */

/* ========================================
   CSS VARIABLES - ProMathsGuru Brand
   ======================================== */
.mmlms-practice-container {
    --pmg-primary: #1c2fff;
    --pmg-primary-light: #6a7dff;
    --pmg-primary-lighter: #a5b4ff;
    --pmg-primary-xlight: #e8ecff;
    --pmg-primary-xxlight: #f0f3ff;
    
    --pmg-bg: #f7f9ff;
    --pmg-bg-white: #ffffff;
    --pmg-bg-subtle: #eef1ff;
    
    --pmg-text: #2d3436;
    --pmg-text-secondary: #636e72;
    --pmg-text-muted: #b2bec3;
    
    --pmg-border: #dbe4f0;
    --pmg-border-light: #eef2f7;
    
    --pmg-success: #00b894;
    --pmg-success-light: #e6f9f4;
    --pmg-warning: #fdcb6e;
    --pmg-warning-light: #fff8e6;
    --pmg-danger: #ff7675;
    --pmg-danger-light: #ffefef;
    
    --pmg-radius-sm: 8px;
    --pmg-radius: 12px;
    --pmg-radius-lg: 16px;
    --pmg-radius-xl: 20px;
    
    --pmg-shadow-sm: 0 2px 4px rgba(28, 47, 255, 0.04);
    --pmg-shadow: 0 4px 12px rgba(28, 47, 255, 0.08);
    --pmg-shadow-md: 0 8px 24px rgba(28, 47, 255, 0.12);
    --pmg-shadow-lg: 0 16px 40px rgba(28, 47, 255, 0.16);
    
    --pmg-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--pmg-bg);
    border-radius: var(--pmg-radius-lg);
}

/* ========================================
   PRACTICE HEADER
   ======================================== */
.mmlms-practice-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, var(--pmg-primary) 0%, var(--pmg-primary-light) 100%);
    border-radius: var(--pmg-radius-xl);
    color: white;
    box-shadow: var(--pmg-shadow-md);
    position: relative;
    overflow: hidden;
}

.mmlms-practice-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.mmlms-practice-header h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.mmlms-practice-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

/* ========================================
   PRACTICE MODES GRID
   ======================================== */
.mmlms-practice-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .mmlms-practice-modes {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.mmlms-practice-mode-card {
    background: var(--pmg-bg-white);
    border-radius: var(--pmg-radius-lg);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--pmg-shadow-sm);
    transition: var(--pmg-transition);
    cursor: pointer;
    border: 2px solid transparent;
}

@media (max-width: 480px) {
    .mmlms-practice-mode-card {
        padding: 24px 20px;
    }
}

.mmlms-practice-mode-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pmg-shadow-md);
    border-color: var(--pmg-primary-light);
}

.mmlms-practice-mode-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--pmg-primary-xlight) 0%, var(--pmg-primary-xxlight) 100%);
    border-radius: var(--pmg-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--pmg-primary);
    transition: var(--pmg-transition);
}

.mmlms-practice-mode-card:hover .mmlms-practice-mode-icon {
    background: linear-gradient(135deg, var(--pmg-primary) 0%, var(--pmg-primary-light) 100%);
    color: white;
    transform: scale(1.05);
}

.mmlms-practice-mode-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: var(--pmg-text);
}

.mmlms-practice-mode-card p {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--pmg-text-secondary);
    line-height: 1.6;
}

.mmlms-practice-mode-card .mmlms-btn {
    background: linear-gradient(135deg, var(--pmg-primary) 0%, var(--pmg-primary-light) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: var(--pmg-radius);
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--pmg-transition);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mmlms-practice-mode-card .mmlms-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--pmg-shadow);
}

/* ========================================
   PRESET CARDS
   ======================================== */
.mmlms-presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .mmlms-presets-grid {
        grid-template-columns: 1fr;
    }
}

.mmlms-preset-card {
    background: var(--pmg-bg-white);
    border-radius: var(--pmg-radius-lg);
    padding: 24px;
    box-shadow: var(--pmg-shadow-sm);
    transition: var(--pmg-transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 2px solid transparent;
}

@media (max-width: 480px) {
    .mmlms-preset-card {
        padding: 20px;
    }
}

.mmlms-preset-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pmg-shadow);
    border-color: var(--pmg-border);
}

.mmlms-preset-card.featured {
    border: 2px solid var(--pmg-primary);
    position: relative;
}

.mmlms-preset-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: -1px;
    right: 20px;
    background: linear-gradient(135deg, var(--pmg-primary) 0%, var(--pmg-primary-light) 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 0 0 var(--pmg-radius-sm) var(--pmg-radius-sm);
}

.mmlms-preset-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 480px) {
    .mmlms-preset-header {
        flex-direction: column;
        text-align: center;
    }
}

.mmlms-preset-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--pmg-primary-xlight) 0%, var(--pmg-primary-xxlight) 100%);
    border-radius: var(--pmg-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--pmg-primary);
    flex-shrink: 0;
}

.mmlms-preset-title h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
    color: var(--pmg-text);
}

.mmlms-preset-title span {
    font-size: 13px;
    color: var(--pmg-text-secondary);
}

.mmlms-preset-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .mmlms-preset-stats {
        justify-content: center;
    }
}

.mmlms-preset-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--pmg-text-secondary);
}

.mmlms-preset-stat svg,
.mmlms-preset-stat .dashicons {
    width: 16px;
    height: 16px;
    color: var(--pmg-primary);
    font-size: 16px;
}

.mmlms-preset-description {
    font-size: 14px;
    color: var(--pmg-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.mmlms-preset-difficulty {
    display: flex;
    gap: 6px;
}

.mmlms-difficulty-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pmg-border);
}

.mmlms-difficulty-dot.active {
    background: var(--pmg-primary);
}

.mmlms-difficulty-dot.active.easy {
    background: var(--pmg-success);
}

.mmlms-difficulty-dot.active.medium {
    background: var(--pmg-warning);
}

.mmlms-difficulty-dot.active.hard {
    background: var(--pmg-danger);
}

/* ========================================
   PRACTICE SESSION
   ======================================== */
.mmlms-session-container {
    background: var(--pmg-bg-white);
    border-radius: var(--pmg-radius-xl);
    box-shadow: var(--pmg-shadow);
    overflow: hidden;
}

.mmlms-session-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--pmg-bg-subtle) 0%, var(--pmg-bg) 100%);
    border-bottom: 1px solid var(--pmg-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

@media (max-width: 768px) {
    .mmlms-session-header {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
}

.mmlms-session-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--pmg-text);
    margin: 0;
}

.mmlms-session-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--pmg-bg-white);
    padding: 8px 16px;
    border-radius: var(--pmg-radius);
    font-weight: 600;
    color: var(--pmg-primary);
    border: 1px solid var(--pmg-border);
}

.mmlms-session-timer .dashicons {
    font-size: 18px;
    color: var(--pmg-primary);
}

.mmlms-session-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--pmg-text-secondary);
}

.mmlms-progress-bar {
    width: 120px;
    height: 6px;
    background: var(--pmg-border-light);
    border-radius: 3px;
    overflow: hidden;
}

@media (max-width: 480px) {
    .mmlms-progress-bar {
        width: 80px;
    }
}

.mmlms-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--pmg-primary) 0%, var(--pmg-primary-light) 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* ========================================
   QUESTION CARD
   ======================================== */
.mmlms-question-card {
    padding: 32px;
}

@media (max-width: 768px) {
    .mmlms-question-card {
        padding: 24px 16px;
    }
}

.mmlms-question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
}

@media (max-width: 480px) {
    .mmlms-question-header {
        flex-direction: column;
    }
}

.mmlms-question-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--pmg-primary);
    background: var(--pmg-primary-xlight);
    padding: 6px 12px;
    border-radius: var(--pmg-radius);
}

.mmlms-question-marks {
    font-size: 13px;
    color: var(--pmg-text-secondary);
    background: var(--pmg-bg-subtle);
    padding: 6px 12px;
    border-radius: var(--pmg-radius);
}

.mmlms-question-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--pmg-text);
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .mmlms-question-text {
        font-size: 15px;
        line-height: 1.7;
    }
}

.mmlms-question-text p {
    margin: 0 0 12px;
}

.mmlms-question-text p:last-child {
    margin-bottom: 0;
}

.mmlms-question-image {
    margin: 20px 0;
    text-align: center;
}

.mmlms-question-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pmg-radius);
    box-shadow: var(--pmg-shadow-sm);
}

/* ========================================
   ANSWER OPTIONS
   ======================================== */
.mmlms-answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.mmlms-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--pmg-bg);
    border: 2px solid var(--pmg-border-light);
    border-radius: var(--pmg-radius);
    cursor: pointer;
    transition: var(--pmg-transition);
    min-height: 56px;
}

@media (max-width: 480px) {
    .mmlms-option-label {
        padding: 14px;
    }
}

.mmlms-option-label:hover {
    background: var(--pmg-primary-xxlight);
    border-color: var(--pmg-primary-lighter);
}

.mmlms-option-label.selected {
    background: var(--pmg-primary-xlight);
    border-color: var(--pmg-primary);
}

.mmlms-option-label.correct {
    background: var(--pmg-success-light);
    border-color: var(--pmg-success);
}

.mmlms-option-label.incorrect {
    background: var(--pmg-danger-light);
    border-color: var(--pmg-danger);
}

.mmlms-option-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--pmg-primary);
    flex-shrink: 0;
}

.mmlms-option-letter {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pmg-bg-white);
    border: 1px solid var(--pmg-border);
    border-radius: var(--pmg-radius-sm);
    font-weight: 600;
    font-size: 14px;
    color: var(--pmg-text);
    flex-shrink: 0;
}

.mmlms-option-label.selected .mmlms-option-letter {
    background: var(--pmg-primary);
    color: white;
    border-color: var(--pmg-primary);
}

.mmlms-option-label.correct .mmlms-option-letter {
    background: var(--pmg-success);
    color: white;
    border-color: var(--pmg-success);
}

.mmlms-option-label.incorrect .mmlms-option-letter {
    background: var(--pmg-danger);
    color: white;
    border-color: var(--pmg-danger);
}

.mmlms-option-text {
    font-size: 15px;
    color: var(--pmg-text);
    line-height: 1.5;
}

/* ========================================
   NUMERIC INPUT
   ======================================== */
.mmlms-numeric-input-wrapper {
    margin-bottom: 24px;
}

.mmlms-numeric-input {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    border: 2px solid var(--pmg-border);
    border-radius: var(--pmg-radius);
    background: var(--pmg-bg-white);
    color: var(--pmg-text);
    transition: var(--pmg-transition);
    text-align: center;
}

@media (max-width: 480px) {
    .mmlms-numeric-input {
        font-size: 16px;
        padding: 14px;
    }
}

.mmlms-numeric-input:focus {
    outline: none;
    border-color: var(--pmg-primary);
    box-shadow: 0 0 0 4px var(--pmg-primary-xlight);
}

.mmlms-numeric-input::placeholder {
    color: var(--pmg-text-muted);
}

/* ========================================
   ACTION BUTTONS
   ======================================== */
.mmlms-question-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .mmlms-question-actions {
        flex-direction: column;
    }
}

.mmlms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--pmg-radius);
    border: none;
    cursor: pointer;
    transition: var(--pmg-transition);
    min-height: 48px;
    text-decoration: none;
}

@media (max-width: 480px) {
    .mmlms-btn {
        width: 100%;
        padding: 12px 20px;
    }
}

.mmlms-btn-primary {
    background: linear-gradient(135deg, var(--pmg-primary) 0%, var(--pmg-primary-light) 100%);
    color: white;
    box-shadow: var(--pmg-shadow-sm);
}

.mmlms-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--pmg-shadow);
}

.mmlms-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.mmlms-btn-secondary {
    background: var(--pmg-bg-white);
    color: var(--pmg-text);
    border: 1.5px solid var(--pmg-border);
}

.mmlms-btn-secondary:hover:not(:disabled) {
    background: var(--pmg-bg);
    border-color: var(--pmg-primary-lighter);
    color: var(--pmg-primary);
}

.mmlms-btn-danger {
    background: var(--pmg-danger-light);
    color: var(--pmg-danger);
    border: 1.5px solid var(--pmg-danger);
}

.mmlms-btn-danger:hover:not(:disabled) {
    background: var(--pmg-danger);
    color: white;
}

.mmlms-btn-success {
    background: var(--pmg-success);
    color: white;
}

.mmlms-btn-success:hover:not(:disabled) {
    background: var(--pmg-success);
    opacity: 0.9;
}

.mmlms-btn-outline {
    background: transparent;
    color: var(--pmg-primary);
    border: 1.5px solid var(--pmg-primary);
}

.mmlms-btn-outline:hover:not(:disabled) {
    background: var(--pmg-primary-xlight);
}

.mmlms-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ========================================
   SOLUTION CARD
   ======================================== */
.mmlms-solution-card {
    margin-top: 24px;
    padding: 24px;
    background: var(--pmg-bg);
    border-radius: var(--pmg-radius-lg);
    border: 1px solid var(--pmg-border-light);
}

.mmlms-solution-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.mmlms-solution-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pmg-primary) 0%, var(--pmg-primary-light) 100%);
    color: white;
    border-radius: var(--pmg-radius);
}

.mmlms-solution-icon .dashicons {
    font-size: 20px;
}

/* Solution Locked State */
.mmlms-solution-locked {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    text-align: center;
    background: var(--pmg-bg-subtle);
    border-radius: var(--pmg-radius);
    border: 2px dashed var(--pmg-border);
    gap: 16px;
}

.mmlms-solution-locked .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--pmg-primary-light);
}

.mmlms-solution-locked p {
    margin: 0;
    font-size: 16px;
    color: var(--pmg-text-secondary);
}

/* Tier Badge */
.mmlms-tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--pmg-warning) 0%, #f4a261 100%);
    color: #333;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(253, 203, 110, 0.3);
}

/* Upgrade Button */
.mmlms-btn-upgrade {
    background: linear-gradient(135deg, var(--pmg-primary) 0%, var(--pmg-primary-light) 100%);
    color: white;
    padding: 14px 32px;
    font-weight: 600;
    box-shadow: var(--pmg-shadow-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--pmg-radius);
    transition: var(--pmg-transition);
    min-height: 48px;
}

.mmlms-btn-upgrade:hover {
    transform: translateY(-2px);
    box-shadow: var(--pmg-shadow);
    color: white;
    text-decoration: none;
}

@media (max-width: 480px) {
    .mmlms-btn-upgrade {
        width: 100%;
        padding: 12px 24px;
    }
    
    .mmlms-solution-locked {
        padding: 32px 20px;
    }
}

.mmlms-solution-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--pmg-text);
    margin: 0;
}

.mmlms-solution-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--pmg-text);
}

.mmlms-solution-content p {
    margin: 0 0 12px;
}

.mmlms-solution-content p:last-child {
    margin-bottom: 0;
}

.mmlms-solution-image {
    margin: 20px 0;
    text-align: center;
}

.mmlms-solution-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--pmg-radius);
    box-shadow: var(--pmg-shadow-sm);
}

/* ========================================
   FEEDBACK CARD
   ======================================== */
.mmlms-feedback-card {
    margin-top: 24px;
    padding: 20px 24px;
    border-radius: var(--pmg-radius);
    display: flex;
    align-items: center;
    gap: 16px;
}

@media (max-width: 480px) {
    .mmlms-feedback-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
}

.mmlms-feedback-card.correct {
    background: var(--pmg-success-light);
    border: 1px solid var(--pmg-success);
}

.mmlms-feedback-card.incorrect {
    background: var(--pmg-danger-light);
    border: 1px solid var(--pmg-danger);
}

.mmlms-feedback-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    flex-shrink: 0;
}

.mmlms-feedback-card.correct .mmlms-feedback-icon {
    background: var(--pmg-success);
    color: white;
}

.mmlms-feedback-card.incorrect .mmlms-feedback-icon {
    background: var(--pmg-danger);
    color: white;
}

.mmlms-feedback-content {
    flex: 1;
}

.mmlms-feedback-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px;
}

.mmlms-feedback-card.correct .mmlms-feedback-title {
    color: var(--pmg-success);
}

.mmlms-feedback-card.incorrect .mmlms-feedback-title {
    color: var(--pmg-danger);
}

.mmlms-feedback-text {
    font-size: 14px;
    color: var(--pmg-text-secondary);
    margin: 0;
}

/* ========================================
   RESULTS SCREEN
   ======================================== */
.mmlms-results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

@media (max-width: 768px) {
    .mmlms-results-container {
        padding: 24px 16px;
    }
}

.mmlms-results-header {
    text-align: center;
    margin-bottom: 40px;
}

.mmlms-results-score {
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--pmg-primary) 0%, var(--pmg-primary-light) 100%);
    color: white;
    box-shadow: var(--pmg-shadow-md);
}

.mmlms-results-score-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.mmlms-results-score-label {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 4px;
}

.mmlms-results-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--pmg-text);
    margin: 0 0 8px;
}

.mmlms-results-subtitle {
    font-size: 16px;
    color: var(--pmg-text-secondary);
    margin: 0;
}

.mmlms-results-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .mmlms-results-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mmlms-results-stats {
        grid-template-columns: 1fr;
    }
}

.mmlms-result-stat {
    background: var(--pmg-bg-white);
    border-radius: var(--pmg-radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--pmg-shadow-sm);
    border: 1px solid var(--pmg-border-light);
}

.mmlms-result-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--pmg-text);
    margin-bottom: 4px;
}

.mmlms-result-stat-label {
    font-size: 13px;
    color: var(--pmg-text-secondary);
}

.mmlms-result-stat.correct .mmlms-result-stat-value {
    color: var(--pmg-success);
}

.mmlms-result-stat.incorrect .mmlms-result-stat-value {
    color: var(--pmg-danger);
}

.mmlms-result-stat.skipped .mmlms-result-stat-value {
    color: var(--pmg-warning);
}

.mmlms-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .mmlms-results-actions {
        flex-direction: column;
    }
}

/* ========================================
   QUESTION NAVIGATION
   ======================================== */
.mmlms-question-nav {
    padding: 20px 24px;
    background: var(--pmg-bg);
    border-top: 1px solid var(--pmg-border-light);
}

@media (max-width: 768px) {
    .mmlms-question-nav {
        padding: 16px;
    }
}

.mmlms-question-nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pmg-text);
    margin-bottom: 12px;
}

.mmlms-question-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
    gap: 8px;
}

.mmlms-question-nav-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pmg-bg-white);
    border: 1.5px solid var(--pmg-border);
    border-radius: var(--pmg-radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--pmg-text);
    cursor: pointer;
    transition: var(--pmg-transition);
}

.mmlms-question-nav-item:hover {
    border-color: var(--pmg-primary-lighter);
    background: var(--pmg-primary-xxlight);
}

.mmlms-question-nav-item.current {
    border-color: var(--pmg-primary);
    background: var(--pmg-primary);
    color: white;
}

.mmlms-question-nav-item.answered {
    border-color: var(--pmg-success);
    background: var(--pmg-success-light);
    color: var(--pmg-success);
}

.mmlms-question-nav-item.skipped {
    border-color: var(--pmg-warning);
    background: var(--pmg-warning-light);
    color: #856404;
}

.mmlms-question-nav-item.flagged {
    position: relative;
}

.mmlms-question-nav-item.flagged::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--pmg-danger);
    border-radius: 50%;
    border: 2px solid var(--pmg-bg-white);
}

/* ========================================
   TIER LOCK MESSAGE
   ======================================== */
.mmlms-tier-lock {
    padding: 40px 24px;
    text-align: center;
    background: var(--pmg-bg);
    border-radius: var(--pmg-radius-xl);
    border: 2px dashed var(--pmg-border);
}

.mmlms-tier-lock-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--pmg-primary-xlight) 0%, var(--pmg-primary-xxlight) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mmlms-tier-lock-icon .dashicons {
    font-size: 40px;
    color: var(--pmg-primary);
}

.mmlms-tier-lock h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--pmg-text);
    margin: 0 0 8px;
}

.mmlms-tier-lock p {
    font-size: 15px;
    color: var(--pmg-text-secondary);
    margin: 0 0 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.mmlms-tier-lock-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .mmlms-tier-lock-features {
        flex-direction: column;
        gap: 12px;
    }
}

.mmlms-tier-lock-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--pmg-text);
}

.mmlms-tier-lock-feature .dashicons {
    color: var(--pmg-success);
    font-size: 20px;
}

/* ========================================
   LOADING STATES
   ======================================== */
.mmlms-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
}

.mmlms-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--pmg-border);
    border-top-color: var(--pmg-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.mmlms-loading-text {
    margin-top: 16px;
    font-size: 14px;
    color: var(--pmg-text-secondary);
}

/* ========================================
   DIFFICULTY BADGES
   ======================================== */
.mmlms-difficulty-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mmlms-difficulty-badge.easy {
    background: var(--pmg-success-light);
    color: var(--pmg-success);
}

.mmlms-difficulty-badge.medium {
    background: var(--pmg-warning-light);
    color: #856404;
}

.mmlms-difficulty-badge.hard {
    background: var(--pmg-danger-light);
    color: var(--pmg-danger);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.mmlms-text-center {
    text-align: center;
}

.mmlms-mt-1 { margin-top: 8px; }
.mmlms-mt-2 { margin-top: 16px; }
.mmlms-mt-3 { margin-top: 24px; }
.mmlms-mb-1 { margin-bottom: 8px; }
.mmlms-mb-2 { margin-bottom: 16px; }
.mmlms-mb-3 { margin-bottom: 24px; }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mmlms-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* ========================================
   FOCUS STATES FOR ACCESSIBILITY
   ======================================== */
.mmlms-btn:focus,
.mmlms-option-label:focus,
.mmlms-numeric-input:focus,
.mmlms-question-nav-item:focus {
    outline: 2px solid var(--pmg-primary);
    outline-offset: 2px;
}

/* ========================================
   HIDE SCROLLBAR BUT KEEP FUNCTIONALITY
   ======================================== */
.mmlms-practice-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.mmlms-practice-container::-webkit-scrollbar-track {
    background: var(--pmg-bg);
}

.mmlms-practice-container::-webkit-scrollbar-thumb {
    background: var(--pmg-border);
    border-radius: 3px;
}

.mmlms-practice-container::-webkit-scrollbar-thumb:hover {
    background: var(--pmg-text-muted);
}
