/* Additions on top of the plugin's theme-frontend.css / frontend.css */

.lms-inline-form { display: inline; margin: 0; }
.lms-linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.lms-muted { color: #6b7280; }
.lms-help { font-size: 13px; color: #6b7280; margin-top: -6px; }
.lms-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lms-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lms-row2 > p { margin-top: 0; }
@media (max-width: 560px) { .lms-row2 { grid-template-columns: 1fr; gap: 0; } }

.lms-flash { border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; font-weight: 500; }
.lms-flash-success { background: #eafaf0; color: #1a7a2e; }
.lms-flash-error { background: #fdeaea; color: #a00; }
.lms-flash-info { background: color-mix(in srgb, var(--wpllms-button) 9%, #fff); color: var(--wpllms-heading); }
.wpllms-site-main-full .lms-flash { max-width: 1100px; margin: 18px auto; }

.lms-container { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.lms-error-page { text-align: center; padding: 60px 0; }

/* Catalog */
.lms-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 24px; }
.lms-filter input[type=search], .lms-filter select { padding: 10px 14px; border: 1px solid var(--wpllms-border); border-radius: 10px; font: inherit; background: #fff; min-width: 200px; }
.lms-filter .button { margin-top: 0; }
.wpllms-course-card { display: flex; flex-direction: column; }
.lms-card-media { display: block; }
.lms-card-cat { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--wpllms-link); margin-top: 12px; }
.lms-card-excerpt { font-size: 14px; color: #565b66; margin: 0 0 10px; }
.lms-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 14px; }
.lms-card-meta { color: #6b7280; font-size: 13px; }
.wpllms-course-card img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Course page */
.lms-tag { font-size: 12px; font-weight: 600; background: #f0f0f2; color: #555; border-radius: 20px; padding: 2px 10px; white-space: nowrap; }
.lms-lock { font-size: 13px; opacity: .7; }
.lms-item-title { flex: 1; font-weight: 500; }
.lms-secondary-link { margin-left: 10px; font-size: 14px; }
.lms-admin-edit { font-size: 13px; margin: 0 0 10px; }
.wpllms-faq-item { background: #fff; border: 1px solid var(--wpllms-border); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.wpllms-faq-item summary { font-weight: 600; cursor: pointer; }
.wpllms-faq-answer { margin-top: 10px; color: #4b4f5c; }

/* Lesson */
.lms-lesson-layout { max-width: 820px; margin: 0 auto; }
.lms-breadcrumb { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; margin: 0; }
.lms-lesson h1 { margin-top: 6px; }
.wpllms-video-embed { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; margin: 10px 0 24px; background: #000; }
.wpllms-video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wpllms-entry-content img { max-width: 100%; height: auto; border-radius: 10px; }
.wpllms-entry-content iframe { max-width: 100%; }
.wpllms-entry-content pre { background: #1d2327; color: #f1f1f1; padding: 14px; border-radius: 10px; overflow-x: auto; }
.wpllms-entry-content table { border-collapse: collapse; width: 100%; }
.wpllms-entry-content td, .wpllms-entry-content th { border: 1px solid var(--wpllms-border); padding: 8px 10px; }
.lms-complete-row { margin: 28px 0 10px; padding-top: 18px; border-top: 1px solid var(--wpllms-border); }
.lms-lesson-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.wpllms-theme a.button.lms-btn-ghost { background: transparent; color: var(--wpllms-heading); border: 1px solid var(--wpllms-border); }

/* Quiz page */
.lms-quiz-facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.lms-quiz-facts li { background: #fff; border: 1px solid var(--wpllms-border); border-radius: 12px; padding: 10px 16px; font-size: 14px; }
.lms-quiz-back { margin-top: 24px; font-size: 14px; }
#wpllms-quiz-app .wpllms-question { background: #fff; border: 1px solid var(--wpllms-border); border-radius: 12px; padding: 16px 18px; margin-bottom: 14px; }
#wpllms-quiz-app .wpllms-option { display: inline-flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; }
#wpllms-quiz-app .wpllms-short-answer { width: 100%; max-width: 420px; padding: 9px 12px; border: 1px solid var(--wpllms-border); border-radius: 8px; font: inherit; }
.wpllms-timer { display: inline-block; background: #fff; border: 1px solid var(--wpllms-border); padding: 6px 14px; border-radius: 20px; margin-bottom: 14px; position: sticky; top: 8px; z-index: 5; }
.wpllms-timer-warning { color: #a00; }
.wpllms-error { color: #a00; }

/* Dashboard */
.lms-theme-toggle { display: flex; align-items: center; gap: 12px; padding: 11px 22px; margin: 6px 10px 0; background: none; border: 0; font: inherit; font-weight: 600; color: var(--wpllms-heading); cursor: pointer; width: calc(100% - 20px); border-radius: 10px; }
.lms-theme-toggle:hover { background: rgba(0,0,0,.045); }
.wpllms-sidebar-logout.lms-linklike { width: calc(100% - 20px); text-align: left; }
.lms-dash-thumb { width: 140px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.lms-dash-body { flex: 1; min-width: 0; }
.lms-expired { opacity: .85; }
.lms-empty-left { text-align: left; padding: 10px 0; }
.lms-card-form { background: #fff; border: 1px solid var(--wpllms-border); border-radius: 16px; padding: 22px; max-width: 560px; margin-bottom: 30px; }
@media (max-width: 560px) { .lms-dash-thumb { display: none; } }

/* Dark mode for the bits above */
[data-wpllms-theme="dark"] .lms-filter input, [data-wpllms-theme="dark"] .lms-filter select,
[data-wpllms-theme="dark"] .wpllms-faq-item, [data-wpllms-theme="dark"] .lms-quiz-facts li,
[data-wpllms-theme="dark"] #wpllms-quiz-app .wpllms-question, [data-wpllms-theme="dark"] .lms-card-form,
[data-wpllms-theme="dark"] .wpllms-timer, [data-wpllms-theme="dark"] .wpllms-dashboard-course-card,
[data-wpllms-theme="dark"] .wpllms-dashboard-quiz-table { background: #1c1c2b; color: var(--wpllms-text); }
[data-wpllms-theme="dark"] .wpllms-student-dashboard { background: var(--wpllms-bg); }
[data-wpllms-theme="dark"] .lms-tag { background: #2c2c40; color: #ddd; }

/* Standalone app: the course page prints its own title (the WP plugin relied on the theme). */
.wpllms-single-course .wpllms-course-title { display: block; }
.wpllms-header-auth .lms-linklike { color: var(--wpllms-link); font-weight: 600; font-size: 14px; }
.wpllms-header-auth { align-items: center; }
.wpllms-theme a.button, .wpllms-theme a.button:hover { text-decoration: none; }
.wpllms-sidebar-logout.lms-linklike { color: #a00; font-weight: 600; display: flex; align-items: center; gap: 12px; padding: 16px 22px 11px; margin: 10px 10px 0; border-top: 1px solid rgba(0,0,0,.06); border-radius: 0; }
.wpllms-dashboard-course-card h3 a, .wpllms-course-card h3 a { text-decoration: none; }
.wpllms-site-main-full > .wpllms-hero, .wpllms-site-main-full > .wpllms-features, .wpllms-site-main-full > .wpllms-cta-banner, .wpllms-site-main-full > .wpllms-stats-bar { max-width: 1140px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
.wpllms-site-main-full > .wpllms-hero { margin-top: 24px; }
@media (max-width: 1180px) { .wpllms-site-main-full > .wpllms-hero, .wpllms-site-main-full > .wpllms-features, .wpllms-site-main-full > .wpllms-cta-banner { margin-left: 16px; margin-right: 16px; } }
.lms-card-media, .lms-card-media:hover { text-decoration: none; }
