/* yozoomin Laravel migration overrides
 * Loaded after all Geeks/Elementor stylesheets. Use this to:
 *  - close gaps where dynamic Vue markup differs from WordPress output
 *  - hide WP-only artefacts (sidebar widgets we don't ship)
 */

body { font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif; }

/* The original site uses Roboto for nav menus — supply via Google Fonts when offline copy is absent */
@font-face { font-display: swap; }

/* Strip WP admin bar style margin */
html { margin-top: 0 !important; }

/* Site shell — no sticky footer; content + header + footer stack naturally */
#page { display: block; }
.site-content { display: block; }

/* Header & mega-menu styles live in AppHeader.vue's `<style>` block — see
   resources/js/components/lms/AppHeader.vue. Defining them here would override
   the Vue component because yz-overrides.css is loaded after Vite. */

/* Footer */
/* Footer styling moved into AppFooter.vue's `<style>` to mirror the original
   yozoomin.com post-3697.css (light grey #E3E3E3 background, centered text). */

/* Generic Inertia page sections (Home, Catalog, etc.) — sit under the legacy header */
.yz-page { max-width: 1280px; margin: 0 auto; padding: 32px 24px; }
.yz-page__hero { padding: 64px 24px; border-radius: 8px; margin-bottom: 48px; text-align: center; color: #fff; background: linear-gradient(135deg, #F46557 0%, #e54a3a 100%); }
.yz-page__hero h1 { font-size: 40px; font-weight: 700; margin: 0 0 16px; line-height: 1.3; }
.yz-page__hero p { font-size: 18px; opacity: 0.95; margin: 0 0 32px; }
.yz-page__hero .btn { display: inline-block; padding: 14px 36px; background: #fff; color: #F46557; border-radius: 30px; font-weight: 700; text-decoration: none; }
.yz-page__hero .btn:hover { background: #ffe9e6; }

.yz-section { margin-bottom: 64px; }
.yz-section__title { font-size: 24px; font-weight: 700; margin: 0 0 24px; padding-bottom: 12px; border-bottom: 2px solid #F46557; display: inline-block; }

/* Course card — mimics Tutor LMS .tutor-course-list-card */
.yz-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.yz-course-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.yz-course-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.yz-course-card__image { aspect-ratio: 16/9; background: #f3f4f6; overflow: hidden; }
.yz-course-card__image img { width: 100%; height: 100%; object-fit: cover; }
.yz-course-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.yz-course-card__cat { font-size: 12px; color: #F46557; font-weight: 600; margin-bottom: 6px; }
.yz-course-card__title { font-size: 16px; font-weight: 600; margin: 0 0 12px; line-height: 1.4; max-height: 2.8em; overflow: hidden; flex: 1; }
.yz-course-card__meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #6b7280; }
.badge { padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 600; }
.badge-free { background: #dcfce7; color: #15803d; }
.badge-paid { background: #fef3c7; color: #b45309; }

/* Catalog styles moved into Courses/Index.vue scoped <style> block. */

/* Course detail */
.yz-course__hero { background: #F46557; color: #fff; padding: 60px 0; margin-bottom: 32px; }
.yz-course__hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.yz-course__cat a { color: #ffd8d2; text-decoration: none; margin-right: 12px; font-size: 13px; }
.yz-course__hero h1 { font-size: 32px; font-weight: 700; margin: 12px 0 16px; }
.yz-course__excerpt { font-size: 16px; opacity: 0.95; margin: 0 0 20px; }
.yz-course__stats { display: flex; gap: 24px; font-size: 14px; opacity: 0.9; flex-wrap: wrap; }
.yz-course__body { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.yz-course__main { min-width: 0; }
.yz-course__description { font-size: 15px; line-height: 1.7; margin-bottom: 32px; }
.yz-course__section { margin-bottom: 32px; }
.yz-course__section h2 { font-size: 22px; font-weight: 700; margin: 0 0 16px; padding-bottom: 8px; border-bottom: 2px solid #F46557; display: inline-block; }
.yz-topic { background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 8px; overflow: hidden; }
.yz-topic__title { background: #f8fafc; padding: 12px 16px; margin: 0; font-size: 15px; font-weight: 600; border-bottom: 1px solid #e5e7eb; }
.yz-topic__lessons { list-style: none; margin: 0; padding: 0; }
.yz-topic__lessons li { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.yz-topic__lessons li:last-child { border-bottom: none; }
.yz-topic__icon { color: #F46557; }
.yz-topic__name { flex: 1; }
.yz-topic__duration { color: #6b7280; font-size: 12px; }
.yz-course__card { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px; position: sticky; top: 20px; }
.yz-course__card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 4px; margin-bottom: 16px; }
.yz-course__price { font-size: 24px; margin-bottom: 16px; color: #1f1f1f; }
.yz-course__instructor { margin-top: 24px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.yz-course__instructor h4 { font-size: 13px; color: #6b7280; margin: 0 0 8px; }
.yz-instructor { display: flex; align-items: center; gap: 12px; }
.yz-instructor img { width: 48px; height: 48px; border-radius: 50%; margin: 0; }
.yz-instructor strong { display: block; font-size: 15px; }
.yz-instructor p { margin: 0; font-size: 12px; color: #6b7280; }
@media (max-width: 1024px) { .yz-course__body { grid-template-columns: 1fr; padding: 0 16px; } }

/* Generic buttons */
.btn-primary { background: #F46557; color: #fff; padding: 12px 24px; border-radius: 6px; border: none; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-primary:hover { background: #e54a3a; }
.btn-success { background: #16a34a; color: #fff; padding: 12px 24px; border-radius: 6px; border: none; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-success:hover { background: #15803d; }

/* Hide WP-only artefacts that might leak through inherited stylesheets */
#wpadminbar, .wp-admin-bar, .ppwp-wrong-pw-error, .geeks-elementor-template-loader { display: none !important; }

/* Course carousel styling lives entirely in CourseCarousel.vue's `<style>` now.
   Defining `.tutor-*` / `.etlms-carousel-loop-wrap` rules here would override
   the component because yz-overrides.css loads after Vite. */

/* Elementor Slides widget styling lives entirely in HeroSlider.vue's `<style>`
   block now. Defining `.elementor-widget-slides .swiper-slide-contents` etc.
   here would override the component because yz-overrides.css loads last. */

/* Misc Elementor widgets that need their own fonts not loaded */
.elementor-icon i { font-style: normal; }

/* Tutor placeholder image */
.tutor-card-image-top[src*="placeholder.svg"] { background: #eaecef url('/legacy/wp-content/plugins/tutor/assets/images/placeholder.svg') center/120px no-repeat; }

/* Carousel arrows added at runtime by yz-runtime.js */
.yz-carousel-positioner { position: relative; }
.yz-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #1f1f1f;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.yz-carousel-arrow:hover { background: #F46557; color: #fff; border-color: #F46557; }
.yz-carousel-arrow--prev { left: -22px; }
.yz-carousel-arrow--next { right: -22px; }

/* Elementor Slides widget — arrows injected by yz-runtime.js */
.yz-slides-nav { position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none; }
.yz-slides-nav .yz-slides-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.9); border: 1px solid rgba(0,0,0,0.08); font-size: 28px; line-height: 1; cursor: pointer; pointer-events: auto; z-index: 5; }
.yz-slides-nav .yz-slides-arrow--prev { left: 16px; }
.yz-slides-nav .yz-slides-arrow--next { right: 16px; }
.elementor-widget-slides { position: relative; }
.elementor-widget-slides .swiper-slide-inner > * { z-index: 1; position: relative; }

@media (max-width: 1024px) {
    header#masthead .elementor-col-20 { flex-basis: 50%; }
    header#masthead .elementor-element-9fdb4e2 { display: none; }
}
