/* Shimmer skeleton loaders — أقسام الصفحة الأكاديمية */
.fe-skeleton-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    width: 100%;
}

.fe-skeleton-grid--row {
    grid-template-columns: 1fr;
}

.fe-skeleton-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px;
    overflow: hidden;
}

.fe-skeleton {
    border-radius: 8px;
    background: linear-gradient(90deg,
        rgba(148, 163, 184, 0.12) 0%,
        rgba(148, 163, 184, 0.28) 50%,
        rgba(148, 163, 184, 0.12) 100%);
    background-size: 200% 100%;
    animation: fe-shimmer 1.2s ease-in-out infinite;
}

.fe-skeleton--img {
    height: 160px;
    margin-bottom: 12px;
    border-radius: 12px;
}

.fe-skeleton--title {
    height: 18px;
    width: 72%;
    margin-bottom: 10px;
}

.fe-skeleton--line {
    height: 12px;
    width: 100%;
    margin-bottom: 8px;
}

.fe-stat-pending {
    opacity: 0.55;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
}

/* صفحات كاملة — البرامج / الأنشطة / العودة للرئيسية */
.fe-full-page-view {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9500 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 48%, #f1f5f9 100%);
    padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(40px + env(safe-area-inset-bottom, 0px));
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.fe-full-page-view .view-header,
.fe-full-page-view .erh-page-header,
.fe-full-page-view .ql-doc-header {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: 24px;
}

body.fe-full-page-open {
    overflow: hidden !important;
}

body.fe-full-page-open .af-floating-launcher {
    display: none !important;
}

#admin-dashboard.fe-portal-shell:not(.hidden) {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9600 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    background: #f4f6fb;
}

.fe-full-page-view .premium-grid,
.fe-full-page-view#all-programs-page .premium-grid,
#react-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.fe-program-detail-page {
    max-width: 960px;
    margin: 0 auto;
}

.fe-skeleton--short {
    width: 45%;
}

@keyframes fe-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .fe-skeleton { animation: none; opacity: 0.5; }
}
