/* MyPass LMS Public Styles — minimal, theme-compatible */

/* ── Catalog ── */
.mypass-catalog-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.mypass-search-form {
    display: flex;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}
.mypass-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
}
.mypass-search-btn {
    padding: 8px 16px;
    background: #6F42C1;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.mypass-search-btn:hover { background: #5a35a3; }

.mypass-category-filter {
    padding: 8px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    min-width: 160px;
}

/* ── Course Grid ── */
.mypass-course-grid {
    display: grid;
    grid-template-columns: repeat(var(--mypass-columns, 3), 1fr);
    gap: 20px;
}
@media (max-width: 900px) {
    .mypass-course-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .mypass-course-grid { grid-template-columns: 1fr; }
}

/* ── Course Card ── */
.mypass-course-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.mypass-course-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.mypass-card-thumb {
    height: 160px;
    overflow: hidden;
    background: #F1F5F9;
}
.mypass-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mypass-card-thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: #6F42C1;
    background: #F3EFFF;
}
.mypass-card-body {
    padding: 16px;
}
.mypass-card-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #6F42C1;
    background: #F3EFFF;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}
.mypass-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
.mypass-card-desc {
    font-size: 13px;
    color: #64748B;
    line-height: 1.5;
    margin: 0 0 12px 0;
}
.mypass-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #94A3B8;
}

/* ── Pagination ── */
.mypass-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
}
.mypass-page-link,
.mypass-page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 13px;
    text-decoration: none;
}
.mypass-page-link {
    color: #64748B;
    border: 1px solid #E2E8F0;
}
.mypass-page-link:hover {
    background: #F3EFFF;
    color: #6F42C1;
}
.mypass-page-current {
    background: #6F42C1;
    color: #fff;
    font-weight: 600;
}
.mypass-page-info {
    margin-left: auto;
    font-size: 13px;
    color: #94A3B8;
}

/* ── Dashboard ── */
.mypass-dashboard-title {
    font-size: 20px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 16px;
}
.mypass-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: #1E293B;
}
.mypass-enrollment-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mypass-enrollment-info h4 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #1E293B;
}
.mypass-enrollment-date {
    font-size: 12px;
    color: #94A3B8;
}
.mypass-status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 12px;
}
.mypass-status-finished { background: #DCFCE7; color: #166534; }
.mypass-status-started  { background: #FEF3C7; color: #92400E; }
.mypass-status-notstarted { background: #F1F5F9; color: #64748B; }

/* ── Certificates ── */
.mypass-cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.mypass-cert-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.mypass-cert-icon { font-size: 24px; }
.mypass-cert-icon-lg { font-size: 36px; text-align: center; margin-bottom: 8px; }
.mypass-cert-course { font-size: 13px; color: #64748B; margin: 4px 0; }
.mypass-cert-date { font-size: 12px; color: #94A3B8; }
.mypass-cert-num { font-size: 11px; color: #94A3B8; font-family: monospace; }

/* ── Progress Bar ── */
.mypass-progress-bar {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 4px;
}
.mypass-progress-fill {
    height: 100%;
    background: #6F42C1;
    border-radius: 4px;
    transition: width 0.3s;
}
.mypass-progress-label {
    font-size: 12px;
    color: #64748B;
}

/* ── Common ── */
.mypass-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94A3B8;
    font-size: 14px;
}
.mypass-error {
    color: #DC2626;
    font-size: 14px;
}
.mypass-login-required {
    text-align: center;
    padding: 24px;
    background: #F8FAFC;
    border-radius: 8px;
    color: #64748B;
}

/* ── Embed ── */
.mypass-embed-wrapper {
    margin: 20px 0;
}
