/* NERMIN FITNESS standalone base: replaces the hosted-file design system tokens
   and component styles with platform-independent equivalents. */
:root {
    --ds-page: #f4f1ea;
    --ds-ink: #221d17;
    --ds-ink-2: #6f675c;
    --ds-raised: #ece8df;
    --ds-hairline: #ddd6c9;
    --ds-accent: #2563eb;
    --ds-font-display: Georgia, 'Times New Roman', serif;
    --ds-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
    background: var(--ds-page);
    color: var(--ds-ink);
    font-family: var(--ds-font-body);
    font-size: 15.5px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }

/* language visibility: both languages are rendered; the active one shows */
[data-lang="en"] .l-ar { display: none !important; }
[data-lang="ar"] .l-en { display: none !important; }

.file-card { max-width: 700px; margin: 0 auto; padding: 14px 18px 40px; }

/* top nav */
.file-nav { display: flex; flex-wrap: wrap; gap: 20px; border-bottom: 1px solid var(--ds-hairline); align-items: center; }
.file-nav a { padding: 10px 0; color: var(--ds-ink-2); text-decoration: none; font-size: 15px; }
.file-nav a[aria-current="page"] { color: var(--ds-ink); box-shadow: inset 0 -1px 0 var(--ds-ink); }

/* header block */
.file-header { padding: 26px 2px 18px; }
.file-title { font-family: var(--ds-font-display); font-size: 34px; letter-spacing: -0.02em; margin: 0 0 8px; }
.file-fact { color: var(--ds-ink-2); margin: 0 0 14px; font-size: 14px; }
.file-intro { color: var(--ds-ink); margin: 0; line-height: 1.75; }

/* groups */
.file-group { margin: 26px 0 0; }
.file-group-label { color: var(--ds-ink-2); font-size: 12.5px; letter-spacing: 0.4px; margin: 0 0 4px; }
.file-group-heading { font-family: var(--ds-font-display); font-size: 26px; letter-spacing: -0.02em; margin: 0 0 10px; }
.file-paragraph { color: var(--ds-ink); line-height: 1.8; margin: 0 0 10px; }
.file-caption { color: var(--ds-ink-2); font-size: 12.5px; margin: 8px 0 0; }

/* numbered list */
.file-numlist { margin: 6px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.file-numlist li { line-height: 1.75; }

/* photos row */
.file-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.file-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; display: block; }

/* callout */
.file-callout { border: 1px solid var(--ds-hairline); background: var(--ds-raised); border-radius: 14px; padding: 14px 16px; margin: 22px 0 0; }
.file-callout-title { font-weight: 700; margin: 0 0 6px; }
.file-callout .file-paragraph { margin: 0; }

/* compact button-style links */
.file-button.is-compact { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--ds-hairline); border-radius: 999px; background: var(--ds-raised); color: var(--ds-ink); text-decoration: none; font-size: 13.5px; font-weight: 600; }
.file-button.is-compact:hover { border-color: var(--ds-accent); color: var(--ds-accent); }

/* closing footer */
.file-closing { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--ds-hairline); color: var(--ds-ink-2); font-size: 12.5px; line-height: 1.7; }

/* details/summary as exercise cards */
details.gym-ex { display: block; width: 100%; text-align: start; background: var(--ds-page); border: 1px solid var(--ds-hairline); border-radius: 11px; padding: 10px 12px; margin: 0 0 8px; font: inherit; color: inherit; }
details.gym-ex > summary { list-style: none; cursor: pointer; }
details.gym-ex > summary::-webkit-details-marker { display: none; }
details.gym-ex[open] .gym-chev { transform: rotate(180deg); }

/* gated content lock panel */
.gym-lock { border: 1px solid var(--ds-hairline); background: var(--ds-raised); border-radius: 16px; padding: 24px 18px; text-align: center; margin: 12px 0; }
.gym-lock-title { font-family: var(--ds-font-display); font-size: 20px; margin: 0 0 8px; }
.gym-lock-body { color: var(--ds-ink-2); line-height: 1.8; margin: 0 0 16px; }
.gym-lock-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
a.gym-lock-cta { text-decoration: none; }
.gym-member-last { color: var(--ds-ink-2); font-size: 12px; }
[hidden] { display: none !important; }

html, body, #root { margin: 0; min-height: 100%; }
body { background: var(--ds-page); }
.file-nav { display: flex; flex-wrap: wrap; gap: 20px; border-bottom: 1px solid var(--ds-hairline); }
.file-nav a { padding: 8px 0; color: var(--ds-ink-2); text-decoration: none; }
.file-nav a[aria-current="page"] { color: var(--ds-ink); box-shadow: inset 0 -1px 0 var(--ds-ink); }
@media (max-width: 600px) { .file-nav a { display: inline-flex; align-items: center; min-height: 44px; } }

/* gym- day cards */
.gym-daygrid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 6px; }
@media (min-width: 640px) { .gym-daygrid { grid-template-columns: 1fr 1fr; } }
.gym-daycard { display: block; text-decoration: none; color: inherit; border: 1px solid var(--ds-hairline); border-radius: 16px; overflow: hidden; background: var(--ds-page); }
.gym-daycard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gym-daycard-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; }
.gym-daycard-title { font-family: var(--ds-font-display); font-size: 18.5px; letter-spacing: -0.025em; color: var(--ds-ink); }
.gym-daycard-meta { color: var(--ds-ink-2); font-size: 13px; }
.gym-daycard:hover .gym-daycard-title { text-decoration: underline; }

/* gym- exercise cards */
.gym-exlist { display: flex; flex-direction: column; margin-top: 12px; }
.gym-ex { display: block; width: 100%; text-align: start; background: var(--ds-page); border: 1px solid var(--ds-hairline); border-radius: 11px; padding: 10px 12px; margin: 0 0 8px; cursor: pointer; font: inherit; color: inherit; }
.gym-ex-head { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.gym-ex-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--ds-ink); color: var(--ds-page); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.gym-ex-names { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.gym-ex-name { font-weight: 600; color: var(--ds-ink); }
.gym-ex-en { color: var(--ds-ink-2); font-size: 12px; text-align: start; }
.gym-chip { flex: none; background: var(--ds-raised); color: var(--ds-ink); border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; max-width: 45%; text-align: center; }
.gym-chev { flex: none; color: var(--ds-ink-2); transition: transform 0.2s ease; }
.gym-ex[aria-expanded="true"] .gym-chev { transform: rotate(180deg); }
.gym-ex-desc { display: block; color: var(--ds-ink-2); margin-top: 8px; line-height: 1.8; font-size: 14px; }

/* gym- day hero + day navigation */
.gym-dayhero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 16px; display: block; }
.gym-daynav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.gym-daynav a { min-height: 44px; display: inline-flex; align-items: center; }

.gym-welcome { background: var(--ds-ink); color: var(--ds-page); border-radius: 16px; padding: 28px 20px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.gym-welcome h1 { font-family: var(--ds-font-display); font-size: 23px; line-height: 1.55; max-width: 20ch; }
a.gym-cta { background: var(--ds-accent, #e8590c); color: var(--ds-page); padding: 12px 30px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; }

.gym-brandline { font-family: var(--ds-font-display); font-size: 15px; color: var(--ds-ink); margin: 0 0 6px; }

/* gym- muscle group tiles */
.gym-muscles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 4px; }
.gym-muscle { position: relative; display: block; border-radius: 14px; overflow: hidden; text-decoration: none; aspect-ratio: 4 / 3.2; }
.gym-muscle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gym-muscle-label { position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column; gap: 1px; padding: 28px 14px 10px; background: linear-gradient(to top, rgba(30, 20, 18, 0.82), transparent); color: #fdfcfb; }
.gym-muscle-name { font-family: var(--ds-font-display); font-size: 19px; letter-spacing: -0.02em; }
.gym-muscle-count { font-size: 12px; opacity: 0.85; }
.gym-ex-day { color: var(--ds-ink-2); font-size: 11.5px; }

/* gym- owner admin + registration preview */
.gym-adminlink { margin: 18px 0 4px; text-align: center; }
.gym-adminlink a { color: var(--ds-ink-2); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.gym-stats { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.gym-stat { background: var(--ds-raised); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; color: var(--ds-ink); }
.gym-stat strong { margin-inline-end: 4px; }
.gym-members { display: flex; flex-direction: column; gap: 8px; }
.gym-member { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--ds-hairline); border-radius: 11px; padding: 10px 12px; background: var(--ds-page); }
.gym-member-info { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 140px; }
.gym-member-name { font-weight: 600; color: var(--ds-ink); }
.gym-member-email { color: var(--ds-ink-2); font-size: 12px; text-align: start; }
.gym-status { flex: none; border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 600; }
.gym-status.is-pending { background: #fdf0d5; color: #8a5a00; }
.gym-status.is-active { background: #e3f4e5; color: #1d6b2a; }
.gym-status.is-suspended { background: #fbe4e4; color: #9c2b2b; }
.gym-action { flex: none; background: var(--ds-accent, #e8590c); color: var(--ds-page); border: none; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.gym-action.is-quiet { background: var(--ds-raised); color: var(--ds-ink); }
.gym-form { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.gym-field { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; color: var(--ds-ink); }
.gym-field input { font: inherit; padding: 10px 12px; border: 1px solid var(--ds-hairline); border-radius: 10px; background: var(--ds-page); color: var(--ds-ink); }
.gym-sentcard { border: 1px solid var(--ds-hairline); border-radius: 12px; padding: 16px; background: var(--ds-raised); margin-top: 10px; }
.gym-senttitle { font-weight: 700; color: var(--ds-ink); margin: 0 0 6px; }
.gym-senttext { color: var(--ds-ink-2); margin: 0; font-size: 14px; line-height: 1.8; }

/* gym- final dark hero (user's own reference: B&W photo, bold English, blue pill) */
.gym-hero { position: relative; border-radius: 20px; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; background: #101012; }
.gym-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.85); }
.gym-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 8, 10, 0.92) 0%, rgba(8, 8, 10, 0.35) 55%, rgba(8, 8, 10, 0.15) 100%); }
.gym-hero-content { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; width: 100%; padding: 34px 18px 30px; }
.gym-hero-brand { color: #3b82f6; font-weight: 800; letter-spacing: 5px; font-size: 13px; }
.gym-hero-title { font-family: var(--ds-font-display); color: #f7f7f8; font-size: 44px; font-weight: 900; letter-spacing: 0.5px; line-height: 1.05; margin: 0; }
@media (min-width: 640px) { .gym-hero-title { font-size: 60px; } .gym-hero { min-height: 420px; } }
.gym-hero-sub { color: rgba(247, 247, 248, 0.72); letter-spacing: 4px; font-size: 12.5px; font-weight: 600; }
a.gym-cta { margin-top: 10px; background: #2563eb; color: #fff; padding: 13px 34px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; }

/* gym- grayscale athletic imagery */
.gym-dayhero img, .gym-muscle img, .gym-daycard img, .gym-bw img { filter: grayscale(1); }

/* gym- per-exercise video slot (honest state, ready for real clips) */
.gym-ex-body { display: block; }
.gym-video-slot { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 16px 12px; border: 1.5px dashed var(--ds-hairline); border-radius: 12px; background: var(--ds-raised); color: var(--ds-ink-2); font-size: 13px; text-align: center; }
.gym-ex-desc { display: block; margin-top: 10px; }

/* gym- blue accent to match the reference */
.gym-action { background: #2563eb; }
a.gym-cta:hover { background: #1d4ed8; }

/* gym- inline exercise video (shared-video timestamps: each exercise opens its own offset) */
.gym-video { display: block; width: 100%; margin-top: 10px; border-radius: 12px; background: #101012; }

/* gym- muscle-section video entry (opens the shared video at this muscle's timestamp) */
.gym-muscle-video-btn { display: block; width: 100%; margin: 4px 0 12px; padding: 13px 20px; border: none; border-radius: 999px; background: #2563eb; color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; font-family: inherit; }
.gym-muscle-video-btn:hover { background: #1d4ed8; }

/* gym- language toggle in the top nav */
.gym-lang-toggle { margin-inline-start: auto; border: 1px solid var(--ds-hairline); background: var(--ds-raised); color: var(--ds-ink); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; }
.gym-lang-toggle:hover { border-color: #2563eb; color: #2563eb; }
.gym-video-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(12, 12, 14, 0.72); }
.gym-video-modal { width: 100%; max-width: 640px; background: var(--ds-raised, #17171a); border-radius: 16px; padding: 12px; }
.gym-video-modal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.gym-video-modal-title { font-weight: 700; font-size: 15px; }
.gym-video-modal-close { border: 1px solid var(--ds-hairline, #333); background: transparent; color: inherit; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
button.gym-muscle { border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-align: inherit; }
.gym-muscle-videopanel { grid-column: 1 / -1; background: var(--ds-raised, #17171a); border: 1px solid var(--ds-hairline, #333); border-radius: 16px; padding: 12px; }
