/* ============================================================
   WP SCORM Player — Public / Player Styles
   ============================================================ */

/* ---- Full-screen player layout ---- */
.wsp-player-body {
    margin: 0;
    padding: 0;
    background: #0f172a;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Header bar */
.wsp-header {
    background: #1e293b;
    color: #fff;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 2px solid #334155;
    gap: 12px;
}
.wsp-header-left,
.wsp-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}
.wsp-back {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}
.wsp-back:hover { color: #fff; }
.wsp-title {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 340px;
}
.wsp-badge {
    display: inline-block;
    background: #334155;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.wsp-badge-green { background: #dcfce7; color: #166534; }
.wsp-badge-blue  { background: #dbeafe; color: #1e40af; }
.wsp-user { font-size: 13px; color: #94a3b8; }
.wsp-cert-link {
    background: #b8972a;
    color: #fff !important;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.wsp-cert-link:hover { background: #9a7d23; }

/* Player container */
.wsp-player-wrap {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Completion banner */
.wsp-banner {
    background: #10b981;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* SCORM iframe */
.wsp-frame {
    flex: 1;
    width: 100%;
    border: none;
    background: #fff;
}

/* Already-completed screen */
.wsp-done-screen {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wsp-done-box {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 48px 56px;
    text-align: center;
    color: #fff;
    max-width: 420px;
}
.wsp-done-icon {
    font-size: 56px;
    color: #10b981;
    margin-bottom: 16px;
}
.wsp-done-box h2 { margin-bottom: 10px; }
.wsp-done-box p  { color: #94a3b8; margin-bottom: 24px; }

/* ---- Buttons ---- */
.wsp-btn {
    display: inline-block;
    background: #4f46e5;
    color: #fff;
    padding: 9px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin: 4px;
    border: none;
    cursor: pointer;
    transition: background .15s;
}
.wsp-btn:hover         { background: #4338ca; color: #fff; }
.wsp-btn-outline       { background: transparent; border: 2px solid #475569; }
.wsp-btn-outline:hover { background: #334155; }
.wsp-btn-gold          { background: #b8972a; }
.wsp-btn-gold:hover    { background: #9a7d23; }
.wsp-btn-sm            { padding: 5px 14px; font-size: 12px; }

/* ---- Course card (shortcode) ---- */
.wsp-card {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.wsp-card-thumb img {
    width: 200px;
    height: 140px;
    object-fit: cover;
    display: block;
}
.wsp-card-body {
    padding: 20px 24px;
    flex: 1;
}
.wsp-card-meta   { margin-bottom: 8px; }
.wsp-card-title  { margin: 0 0 8px; font-size: 18px; }
.wsp-card-desc   { color: #64748b; font-size: 14px; margin-bottom: 10px; }
.wsp-score       { font-size: 13px; color: #10b981; font-weight: 600; margin-bottom: 12px; }
.wsp-card-actions { margin-top: 12px; }

/* ---- Course list (shortcode) ---- */
.wsp-list { display: flex; flex-direction: column; gap: 10px; }
.wsp-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.wsp-list-done   { border-left: 4px solid #10b981; }
.wsp-list-thumb img { border-radius: 4px; object-fit: cover; }
.wsp-list-info   { flex: 1; }
.wsp-list-title  { font-weight: 600; font-size: 15px; display: block; margin-bottom: 6px; }
.wsp-list-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.wsp-list-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Responsive */
@media (max-width: 600px) {
    .wsp-card             { flex-direction: column; }
    .wsp-card-thumb img   { width: 100%; height: 180px; }
    .wsp-title            { max-width: 180px; }
    .wsp-list-item        { flex-wrap: wrap; }
}
