/* =============================================
   SKELETON LOADER CSS – The Code Munk
   Works across all pages
   ============================================= */

/* ---- Page overlay during load ---- */
.page-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .4s ease, visibility .4s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.page-loader-logo {
    height: 44px;
    width: auto;
    animation: loaderPulse 1.2s ease-in-out infinite;
}

.page-loader-bar-wrap {
    width: 160px;
    height: 3px;
    background: #f0f0f0;
    border-radius: 99px;
    overflow: hidden;
}

.page-loader-bar {
    height: 100%;
    width: 0%;
    background: #111;
    border-radius: 99px;
    animation: loaderBar 1s ease forwards;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

@keyframes loaderBar {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

/* ---- Base skeleton shimmer ---- */
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.sk {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e4e4e4 37%,
        #f0f0f0 63%
    );
    background-size: 1200px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 8px;
    display: block;
}

/* ---- Hide real content while skeleton active ---- */
.sk-loading .sk-target {
    visibility: hidden;
    pointer-events: none;
}

/* =============================================
   SKELETON SHAPES
   ============================================= */

/* Generic block */
.sk-block    { height: 16px; border-radius: 6px; }
.sk-title    { height: 28px; border-radius: 8px; }
.sk-heading  { height: 48px; border-radius: 10px; }
.sk-text     { height: 14px; border-radius: 5px; }
.sk-thumb    { border-radius: 14px; }
.sk-circle   { border-radius: 50% !important; }
.sk-pill     { border-radius: 50px !important; }
.sk-btn      { height: 46px; border-radius: 12px; }
.sk-badge    { height: 28px; width: 100px; border-radius: 50px; }

/* =============================================
   SKELETON WRAPPERS – per component type
   ============================================= */

/* ---- Skeleton card (generic) ---- */
.sk-card {
    border: 1px solid #ececec;
    border-radius: 24px;
    padding: 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sk-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

.sk-card-line-1 { height: 22px; width: 70%; }
.sk-card-line-2 { height: 14px; width: 90%; }
.sk-card-line-3 { height: 14px; width: 60%; }
.sk-card-line-4 { height: 14px; width: 80%; }

/* ---- Skeleton event card ---- */
.sk-event-card {
    border: 1px solid #ececec;
    border-radius: 24px;
    padding: 28px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sk-event-badge { height: 20px; width: 80px; }
.sk-event-title { height: 26px; width: 75%; }
.sk-event-desc-1 { height: 13px; width: 95%; }
.sk-event-desc-2 { height: 13px; width: 80%; }
.sk-event-seats {
    display: grid;
    grid-template-columns: repeat(8, 18px);
    gap: 8px;
    margin: 4px 0;
}
.sk-event-seat {
    width: 18px;
    height: 18px;
    border-radius: 4px;
}
.sk-event-meta {
    display: flex;
    gap: 16px;
}
.sk-event-meta-item { height: 14px; width: 80px; }
.sk-event-link { height: 18px; width: 90px; }

/* ---- Skeleton hero ---- */
.sk-hero-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 20px;
}

.sk-hero-tag  { height: 32px; width: 200px; }
.sk-hero-h1-1 { height: 70px; width: 80%; }
.sk-hero-h1-2 { height: 70px; width: 65%; }
.sk-hero-p1   { height: 16px; width: 90%; }
.sk-hero-p2   { height: 16px; width: 75%; }
.sk-hero-proof { height: 44px; width: 320px; }
.sk-hero-btns {
    display: flex;
    gap: 12px;
}
.sk-hero-btn-1 { height: 50px; width: 150px; border-radius: 12px; }
.sk-hero-btn-2 { height: 50px; width: 140px; border-radius: 12px; }
.sk-hero-stats { height: 68px; width: 400px; border-radius: 16px; }

/* ---- Skeleton course card ---- */
.sk-course-card {
    border: 1px solid #ececec;
    border-radius: 24px;
    padding: 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sk-course-icon  { width: 52px; height: 52px; border-radius: 14px; }
.sk-course-price { height: 28px; width: 100px; }
.sk-course-title { height: 22px; width: 80%; }
.sk-course-desc  { height: 14px; width: 90%; }
.sk-course-link  { height: 16px; width: 110px; }

/* ---- Skeleton section header ---- */
.sk-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 44px;
}

.sk-sec-tag   { height: 28px; width: 120px; }
.sk-sec-h2    { height: 44px; width: 50%; }
.sk-sec-p     { height: 14px; width: 55%; }

/* ---- Skeleton review card ---- */
.sk-review-card {
    width: 380px;
    min-width: 380px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.sk-review-badge  { height: 28px; width: 130px; }
.sk-review-line-1 { height: 14px; width: 100%; }
.sk-review-line-2 { height: 14px; width: 90%; }
.sk-review-line-3 { height: 14px; width: 75%; }
.sk-review-user   {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}
.sk-review-avatar { width: 48px; height: 48px; }
.sk-review-name   { height: 14px; width: 100px; }
.sk-review-sub    { height: 12px; width: 80px; margin-top: 6px; }

/* ---- Skeleton founder card ---- */
.sk-founder-card {
    border: 1px solid #e5e5e5;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
}

.sk-founder-banner {
    background: #f4f4f4;
    padding: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 120px;
}

.sk-founder-avatar { width: 76px; height: 76px; }
.sk-founder-badge  { height: 28px; width: 120px; }

.sk-founder-body {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sk-founder-name  { height: 26px; width: 60%; }
.sk-founder-title { height: 14px; width: 80%; }
.sk-founder-bio-1 { height: 13px; width: 100%; }
.sk-founder-bio-2 { height: 13px; width: 90%; }
.sk-founder-bio-3 { height: 13px; width: 75%; }
.sk-founder-skills {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}
.sk-founder-skill { height: 26px; width: 60px; border-radius: 8px; }
.sk-founder-links {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.sk-founder-link { height: 34px; width: 90px; border-radius: 10px; }

/* ---- Skeleton platform card (community) ---- */
.sk-platform-card {
    border: 1px solid #ececec;
    border-radius: 28px;
    padding: 32px 28px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sk-platform-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.sk-platform-icon  { width: 56px; height: 56px; border-radius: 18px; }
.sk-platform-badge { height: 24px; width: 90px; }
.sk-platform-title { height: 24px; width: 70%; }
.sk-platform-line  { height: 13px; width: 95%; }
.sk-platform-perk  { height: 13px; width: 85%; }
.sk-platform-btn   { height: 48px; border-radius: 14px; margin-top: 8px; }

/* ---- Skeleton contact card ---- */
.sk-contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
}

.sk-cc-icon    { width: 50px; height: 50px; border-radius: 14px; flex-shrink: 0; }
.sk-cc-title   { height: 14px; width: 80px; }
.sk-cc-sub     { height: 12px; width: 100px; margin-top: 6px; }
.sk-cc-value   { height: 14px; width: 130px; margin-top: 6px; }

/* ---- Skeleton form ---- */
.sk-form-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 28px;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sk-form-label { height: 13px; width: 100px; }
.sk-form-input { height: 50px; border-radius: 14px; }
.sk-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.sk-form-submit { height: 52px; border-radius: 16px; margin-top: 8px; }

/* ---- Skeleton pg-event-card (programs page) ---- */
.sk-pg-event-card {
    border: 1px solid #ececec;
    border-radius: 24px;
    padding: 24px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sk-pg-top {
    display: flex;
    justify-content: space-between;
}
.sk-pg-status { height: 22px; width: 80px; }
.sk-pg-type   { height: 22px; width: 50px; }
.sk-pg-cat    { height: 13px; width: 70px; }
.sk-pg-title  { height: 22px; width: 80%; }
.sk-pg-desc-1 { height: 13px; width: 100%; }
.sk-pg-desc-2 { height: 13px; width: 75%; }
.sk-pg-meta {
    display: flex;
    gap: 12px;
}
.sk-pg-meta-i { height: 13px; width: 80px; }
.sk-pg-bar    { height: 6px; border-radius: 50px; }
.sk-pg-btn    { height: 44px; border-radius: 14px; }

/* ---- Skeleton timeline ---- */
.sk-tl-item {
    display: flex;
    gap: 40px;
    padding-bottom: 50px;
}
.sk-tl-year    { min-width: 144px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.sk-tl-content { flex: 1; padding-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.sk-tl-h4      { height: 20px; width: 55%; }
.sk-tl-p1      { height: 14px; width: 100%; }
.sk-tl-p2      { height: 14px; width: 85%; }

/* ---- Skeleton why card ---- */
.sk-why-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border: 1px solid #ececec;
    border-radius: 24px;
    background: #fff;
}
.sk-why-icon    { width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; }
.sk-why-content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.sk-why-title   { height: 18px; width: 70%; }
.sk-why-text-1  { height: 13px; width: 100%; }
.sk-why-text-2  { height: 13px; width: 80%; }

/* ---- Skeleton partner stat ---- */
.sk-partner-stat {
    background: #fafafa;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.sk-ps-icon   { width: 28px; height: 28px; border-radius: 6px; }
.sk-ps-title  { height: 15px; width: 70%; }
.sk-ps-text   { height: 13px; width: 90%; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
    .sk-hero-h1-1, .sk-hero-h1-2 { height: 48px; }
    .sk-hero-stats { width: 100%; }
    .sk-hero-btns  { flex-direction: column; align-items: center; }
    .sk-review-card { width: 280px; min-width: 280px; }
    .sk-form-row { grid-template-columns: 1fr; }
    .sk-sec-h2 { width: 80%; height: 34px; }
    .sk-tl-item { gap: 20px; }
    .sk-tl-year { min-width: 100px; }
}
