/* Ola Fit Core bileşenleri. Renkler ve yazı tipleri temadaki --of-* değişkenlerinden gelir. */
:where(:root) {
	--of-ink: #0f2a2e;
	--of-paper: #f1f5f4;
	--of-surface: #fff;
	--of-brand: #0b5560;
	--of-accent: #ffb020;
	--of-on-accent: #0f2a2e;
	--of-on-brand: #fff;
	--of-line: color-mix(in srgb, var(--of-ink) 16%, transparent);
	--of-muted: color-mix(in srgb, var(--of-ink) 68%, transparent);
	--of-ok: #0a6b4b;
	--of-err: #b3261e;
	--of-display: system-ui, sans-serif;
	--of-body: system-ui, sans-serif;
}

/* Düğmeler */
.of-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: .7em 1.5em; border: 2px solid transparent; border-radius: 999px;
	font: 650 1rem/1.2 var(--of-body); text-decoration: none; cursor: pointer;
	transition: transform .12s ease, background-color .12s ease;
}
.of-btn--primary { background: var(--of-accent); color: var(--of-on-accent); }
.of-btn--primary:hover { background: color-mix(in srgb, var(--of-accent) 86%, #000); }
.of-btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.of-btn--ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.of-btn:active { transform: translateY(1px); }
.of-btn.is-busy { opacity: .6; cursor: progress; }
.of-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
:where(.of-btn, .of-link, .of-slot, .of-week__btn, .of-form input, .of-form select, .of-faq summary):focus-visible { outline: 3px solid var(--of-accent); outline-offset: 2px; }

/* Durum mesajları */
.of-status { margin: .75rem 0 0; padding: .7rem .9rem; border-radius: 10px; font-weight: 550; background: color-mix(in srgb, var(--of-ink) 7%, transparent); }
.of-status.is-ok, .of-notice--ok { background: color-mix(in srgb, var(--of-ok) 13%, var(--of-surface)); color: var(--of-ok); }
.of-status.is-err, .of-notice--err { background: color-mix(in srgb, var(--of-err) 10%, var(--of-surface)); color: var(--of-err); }
.of-status a, .of-notice a { color: inherit; font-weight: 700; }
.of-notice { padding: .9rem 1.1rem; border-radius: 12px; font-weight: 550; }

/* Haftalık program */
.of-schedule { color: var(--of-ink); }
.of-schedule.is-loading .of-week__days { opacity: .45; pointer-events: none; }
.of-schedule__hint { margin: 0 0 1rem; color: var(--of-muted); }
.of-week__nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.of-week__range { margin: 0; font: 700 1.15rem/1.2 var(--of-display); }
.of-week__btn { min-height: 44px; padding: .4em 1em; border: 1.5px solid var(--of-line); border-radius: 999px; background: var(--of-surface); color: inherit; font: 600 .95rem var(--of-body); cursor: pointer; }
.of-week__btn:disabled { opacity: .4; cursor: default; }
.of-week__days {
	display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 250px); gap: .75rem;
	overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .75rem; overscroll-behavior-x: contain;
}
.of-day { scroll-snap-align: start; min-width: 0; }
.of-day__title { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; margin: 0 0 .6rem; padding-bottom: .5rem; border-bottom: 2px solid var(--of-ink); font: 700 1rem/1.2 var(--of-display); }
.of-day.is-today .of-day__title { border-color: var(--of-accent); }
.of-day__date { font: 500 .85rem var(--of-body); color: var(--of-muted); }
.of-day__empty { margin: 0; color: var(--of-muted); font-size: .9rem; }
.of-day__slots { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.of-slot {
	display: grid; grid-template-columns: auto 1fr; column-gap: .7rem; row-gap: .1rem; align-items: baseline;
	width: 100%; padding: .6rem .7rem; border: 1.5px solid var(--of-line); border-radius: 10px;
	background: var(--of-surface); color: var(--of-ink); font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.of-slot__time { grid-row: span 3; font: 750 1.05rem/1.2 var(--of-display); font-variant-numeric: tabular-nums; }
.of-slot__name { font-weight: 600; font-size: .92rem; line-height: 1.25; }
.of-slot__trainer { font-size: .8rem; color: var(--of-muted); }
.of-slot__note { font-size: .8rem; font-weight: 650; color: var(--of-ok); }
.of-slot:hover:not(:disabled) { border-color: var(--of-ink); }
.of-slot.is-full, .of-slot.is-past { background: transparent; border-style: dashed; color: var(--of-muted); cursor: default; }
.of-slot.is-full .of-slot__note, .of-slot.is-past .of-slot__note { color: inherit; }
.of-slot.is-mine { background: var(--of-brand); border-color: var(--of-brand); color: var(--of-on-brand, #fff); cursor: default; }
.of-slot.is-mine :is(.of-slot__trainer, .of-slot__note) { color: inherit; }
.of-slot.is-armed { background: var(--of-accent); border-color: var(--of-accent); color: var(--of-on-accent); }
.of-slot.is-armed :is(.of-slot__trainer, .of-slot__note) { color: inherit; }
@media (min-width: 1100px) {
	.of-week__days { grid-auto-flow: row; grid-template-columns: repeat(7, minmax(0, 1fr)); overflow: visible; gap: .6rem; }
	.of-slot { grid-template-columns: 1fr; }
	.of-slot__time { grid-row: auto; }
	.of-day__title { flex-direction: column; gap: .1rem; }
}

/* Formlar */
.of-form { display: grid; gap: 1rem; max-width: 30rem; color: var(--of-ink); }
.of-field { display: grid; gap: .35rem; }
.of-field label { font-weight: 650; font-size: .95rem; }
.of-field__hint { font-weight: 400; color: var(--of-muted); }
.of-form :is(input[type="text"], input[type="tel"], input[type="email"], input[type="password"], select) {
	width: 100%; min-height: 50px; padding: .6rem .8rem; border: 1.5px solid color-mix(in srgb, var(--of-ink) 45%, transparent); border-radius: 10px;
	background: var(--of-surface); color: var(--of-ink); font: 500 1rem var(--of-body);
}
.of-field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.of-check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .9rem; line-height: 1.45; }
.of-check input { width: 1.25rem; height: 1.25rem; margin-top: .1rem; accent-color: var(--of-ink); }
.of-form__chosen { margin: 0; padding: .7rem .9rem; border-radius: 10px; background: color-mix(in srgb, var(--of-accent) 28%, var(--of-surface)); }
.of-form__aside { margin: 0; font-size: .9rem; }
.of-form--done { padding: 1.5rem; border-radius: 16px; background: color-mix(in srgb, var(--of-ok) 12%, var(--of-surface)); }
.of-form--done p { margin: 0; }
.of-form__donetitle { font: 750 1.4rem/1.2 var(--of-display); margin-bottom: .4rem !important; }

/* Paketler */
.of-plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); align-items: stretch; }
.of-plan { display: flex; flex-direction: column; gap: .5rem; padding: 1.75rem; border: 1.5px solid var(--of-line); border-radius: 20px; background: var(--of-surface); color: var(--of-ink); }
.of-plan.is-featured { background: var(--of-brand); border-color: var(--of-brand); color: var(--of-on-brand, #fff); }
.of-plan__flag { margin: 0; font-weight: 750; font-size: .85rem; }
.of-plan__name { margin: 0; font: 700 1.25rem/1.2 var(--of-display); }
.of-plan__price { margin: .25rem 0 0; font: 800 2.6rem/1 var(--of-display); letter-spacing: -.02em; }
.of-plan__terms { margin: 0; font-weight: 600; }
.of-plan__note { margin: 0; font-size: .85rem; opacity: .75; }
.of-plan__features { list-style: none; margin: .75rem 0 1.25rem; padding: .9rem 0 0; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); display: grid; gap: .45rem; }
.of-plan__features li { padding-left: 1.4rem; position: relative; }
.of-plan__features li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .38rem; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); }
.of-plan .of-btn { margin-top: auto; }

/* Programlar, eğitmenler, yorumlar */
.of-programs { display: grid; gap: 2.5rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.of-program { text-align: center; }
.of-program__badge { display: block; width: min(100%, 13.5rem); margin: 0 auto 1.1rem; aspect-ratio: 1; border-radius: 50%; overflow: hidden; transition: transform .2s ease; }
.of-program__badge img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-program__badge--empty { display: grid; place-items: center; border: 2px solid var(--of-brand); font: 800 3rem var(--of-display); color: var(--of-brand); text-decoration: none; }
.of-program:hover .of-program__badge { transform: scale(1.04); }
.of-program__name { margin: 0; font: 750 1.35rem/1.15 var(--of-display); }
.of-program__name a { color: inherit; text-decoration: none; }
.of-program__name a:hover { text-decoration: underline; text-underline-offset: 5px; }
.of-program__facts { margin: .3rem 0 .4rem; font-weight: 650; font-size: .92rem; color: var(--of-brand); }
.of-program__text { margin: 0 auto; max-width: 30ch; font-size: .95rem; color: var(--of-muted); }
@media (prefers-reduced-motion: reduce) { .of-program__badge { transition: none; } }
.of-trainers { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.of-trainer a { color: inherit; text-decoration: none; }
.of-trainer__photo { aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: color-mix(in srgb, var(--of-brand) 14%, var(--of-surface)); display: grid; place-items: center; margin-bottom: .9rem; }
.of-trainer__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.of-trainer__photo span { font: 800 5rem var(--of-display); color: var(--of-brand); opacity: .45; }
.of-trainer__name { margin: 0; font: 700 1.25rem/1.2 var(--of-display); }
.of-trainer__role { margin: .15rem 0 0; font-weight: 600; }
.of-trainer__certs { margin: .15rem 0 0; font-size: .88rem; color: var(--of-muted); }
.of-quotes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.of-quote { margin: 0; padding: 1.75rem; border-radius: 20px; background: var(--of-surface); }
.of-quote__result { margin: 0 0 .6rem; font: 800 1.5rem/1.15 var(--of-display); color: var(--of-brand); }
.of-quote blockquote { margin: 0; }
.of-quote blockquote p { margin: 0 0 .6em; }
.of-quote figcaption { font-weight: 650; }

/* SSS */
.of-faq { border-top: 1.5px solid var(--of-line); max-width: 46rem; }
.of-faq__item { border-bottom: 1.5px solid var(--of-line); }
.of-faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font: 650 1.1rem/1.3 var(--of-display); cursor: pointer; list-style: none; }
.of-faq summary::-webkit-details-marker { display: none; }
.of-faq summary::after { content: "+"; font-weight: 500; font-size: 1.4rem; line-height: 1; flex: none; }
.of-faq__item[open] summary::after { content: "–"; }
.of-faq__answer { padding: 0 0 1.1rem; max-width: 60ch; color: var(--of-muted); }
.of-faq__answer p { margin: 0 0 .6em; }

/* İletişim */
.of-contact { margin: 0 0 1.25rem; display: grid; gap: 1rem; }
.of-contact dt { font-size: .85rem; font-weight: 600; opacity: .7; }
.of-contact dd { margin: .1rem 0 0; font-weight: 600; font-size: 1.08rem; }
.of-contact a { color: inherit; }

/* Hesap ve ödeme */
.of-auth { max-width: 30rem; }
.of-auth__tabs { display: flex; gap: .25rem; margin-bottom: 1.25rem; padding: .25rem; border-radius: 999px; background: color-mix(in srgb, var(--of-ink) 8%, transparent); }
.of-auth__tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; background: transparent; font: 650 .95rem var(--of-body); color: var(--of-ink); cursor: pointer; }
.of-auth__tabs button[aria-selected="true"] { background: var(--of-surface); box-shadow: 0 1px 3px rgb(0 0 0 / .15); }
.of-account__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.of-account__head h2 { margin: 0; }
.of-account__grid { display: grid; gap: 1rem; }
@media (min-width: 760px) { .of-account__grid { grid-template-columns: 1fr 1fr; } .of-card--wide { grid-column: 1 / -1; } }
.of-card { padding: 1.5rem; border-radius: 20px; background: var(--of-surface); color: var(--of-ink); border: 1.5px solid var(--of-line); }
.of-card h3 { margin: 0 0 .75rem; font: 650 1rem var(--of-body); color: var(--of-muted); }
.of-card__big { margin: 0 0 .75rem; font: 800 1.9rem/1.1 var(--of-display); }
.of-card__hint { margin: .75rem 0 0; font-size: .88rem; color: var(--of-muted); }
.of-facts { display: flex; gap: 2rem; margin: 0 0 1.25rem; }
.of-facts dt { font-size: .85rem; color: var(--of-muted); }
.of-facts dd { margin: 0; font-weight: 700; font-size: 1.1rem; }
.of-qr { width: min(100%, 220px); aspect-ratio: 1; padding: 8px; background: #fff; border-radius: 12px; border: 1.5px solid var(--of-line); }
.of-qr svg { width: 100%; height: 100%; display: block; }
.of-bookings { list-style: none; margin: 0; padding: 0; }
.of-bookings li { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--of-line); }
.of-bookings li span { display: grid; }
.of-checkout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 760px) { .of-checkout { grid-template-columns: 1fr 1.2fr; } .of-pay { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { .of-btn { transition: none; } }
