/* ============================================
   Tutor Module Badges — Dashboard Styles
   ============================================ */

.tmb-badges-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

/* ---------- Header & Progress ---------- */

.tmb-badges-header {
    margin-bottom: 30px;
}

.tmb-badges-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: #212327;
    margin: 0 0 8px;
}

.tmb-badges-progress {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 12px;
}

.tmb-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.tmb-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
    min-width: 0;
}

/* ---------- Badge Grid ---------- */

.tmb-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

/* ---------- Badge Card ---------- */

.tmb-badge-card {
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e8ecf4;
    padding: 24px 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tmb-badge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.tmb-badge-earned {
    border-color: #667eea;
}

.tmb-badge-locked {
    opacity: 0.6;
}

.tmb-badge-locked:hover {
    opacity: 0.8;
}

/* ---------- Badge Image ---------- */

.tmb-badge-image-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
}

.tmb-badge-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.tmb-badge-locked .tmb-badge-image {
    filter: grayscale(100%);
}

.tmb-badge-lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
}

.tmb-lock-icon {
    font-size: 28px;
}

/* ---------- Badge Info ---------- */

.tmb-badge-info {
    min-height: 80px;
}

.tmb-badge-name {
    font-size: 16px;
    font-weight: 600;
    color: #212327;
    margin: 0 0 6px;
}

.tmb-badge-description {
    font-size: 13px;
    color: #6c757d;
    margin: 0 0 8px;
    line-height: 1.4;
}

.tmb-badge-date {
    font-size: 12px;
    color: #667eea;
    margin: 0 0 8px;
    font-weight: 500;
}

.tmb-badge-link {
    display: inline-block;
    font-size: 13px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 12px;
    border: 1px solid #667eea;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.tmb-badge-link:hover {
    background: #667eea;
    color: #ffffff;
}

.tmb-badge-locked-text {
    font-size: 12px;
    color: #adb5bd;
    margin: 0;
    font-style: italic;
}

/* ---------- Responsive ---------- */

@media (max-width: 600px) {
    .tmb-badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tmb-badge-card {
        padding: 16px 12px;
    }

    .tmb-badge-image-wrap {
        width: 72px;
        height: 72px;
    }

    .tmb-badge-image {
        width: 72px;
        height: 72px;
    }

    .tmb-badge-name {
        font-size: 14px;
    }
}
