/*
Theme Name: Ola Fit
Theme URI: https://ridvanay.com
Author: Rıdvan Ay
Author URI: https://ridvanay.com
Description: Ola Fit personal training studio için hızlı, mobil öncelikli tema. Ola Fit Core eklentisiyle birlikte çalışır.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: olafit
*/

@font-face { font-family: "Exo 2"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(assets/fonts/exo-2-latin-ext-wght-italic.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Exo 2"; font-style: italic; font-weight: 100 900; font-display: swap; src: url(assets/fonts/exo-2-latin-wght-italic.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Renkler Özelleştir ekranından gelir; dokular ve yüzeyler onlardan türetilir. */
:root {
	--of-surface: color-mix(in srgb, var(--of-ink) 8%, var(--of-paper));
	--band: color-mix(in srgb, var(--of-ink) 3.5%, var(--of-paper));
	--of-line: color-mix(in srgb, var(--of-ink) 18%, transparent);
	--of-muted: color-mix(in srgb, var(--of-ink) 68%, transparent);
	--metal: linear-gradient(172deg, color-mix(in srgb, var(--of-shine) 15%, var(--of-ink)) 0%, var(--of-shine) 34%, color-mix(in srgb, var(--of-shine) 55%, var(--of-paper)) 52%, color-mix(in srgb, var(--of-shine) 45%, var(--of-ink)) 66%, var(--of-shine) 100%);
	--metal-soft: linear-gradient(168deg, color-mix(in srgb, var(--of-accent) 82%, #fff) 0%, var(--of-accent) 50%, color-mix(in srgb, var(--of-accent) 82%, #000) 100%);
	--gutter: clamp(1.1rem, 4vw, 2.5rem);
	--sec: clamp(3.5rem, 8vw, 6.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--of-paper); color: var(--of-ink); font: 400 1.0625rem/1.6 var(--of-body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--of-display); font-style: italic; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.5rem); font-weight: 800; line-height: 1; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--of-ink); outline-offset: 2px; }
.wrap { width: min(100% - 2 * var(--gutter), 73rem); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; padding: .75rem 1rem; background: var(--of-accent); color: var(--of-on-accent); border-radius: 8px; }
.of-btn--primary { background: var(--metal-soft); }
.of-btn--primary:hover { background: var(--of-accent); }
.is-light .top__brand img { filter: invert(1); }

/* Üst çubuk */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--of-paper) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--of-line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.top__brand { display: block; line-height: 0; }
.top__brand img, .custom-logo { display: block; height: 40px; width: auto; }
.top__name { font: 800 1.5rem/1 var(--of-display); text-transform: uppercase; text-decoration: none; }
.top__toggle { min-height: 44px; padding: 0 1.1rem; border: 1.5px solid var(--of-shine); border-radius: 999px; background: none; color: inherit; font: 650 .95rem var(--of-body); cursor: pointer; }
.top__nav { display: none; position: absolute; inset: 100% 0 auto 0; padding: 1rem var(--gutter) 1.5rem; background: var(--of-paper); border-bottom: 1px solid var(--of-line); }
.top__nav.is-open { display: block; }
.top__menu { list-style: none; margin: 0 0 1rem; padding: 0; }
.top__menu a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--of-line); font: 650 1.15rem var(--of-body); text-decoration: none; }
.top__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.top__account { font-weight: 600; }
@media (min-width: 960px) {
	.top__toggle { display: none; }
	.top__nav { display: flex; position: static; flex: 1; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 0 0 2.5rem; border: 0; background: none; }
	.top__menu { display: flex; gap: 1.75rem; margin: 0; }
	.top__menu a { padding: .4rem 0; border: 0; font: 600 .98rem var(--of-body); color: var(--of-muted); }
	.top__menu a:hover, .top__menu .current-menu-item a { color: var(--of-ink); }
	.top__actions .of-btn { min-height: 44px; padding-block: .5em; }
}

/* Giriş */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(3.5rem, 9vw, 7rem) 0; border-bottom: 1px solid var(--of-line); }
.hero__img { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, var(--of-paper) 8%, color-mix(in srgb, var(--of-paper) 72%, transparent) 55%, color-mix(in srgb, var(--of-paper) 45%, transparent)), linear-gradient(0deg, var(--of-paper), transparent 35%); }
.hero__ring { position: absolute; z-index: -1; right: -14vw; top: 50%; width: min(78vw, 56rem); aspect-ratio: 1; translate: 0 -50%; border-radius: 50%; padding: 3px; background: var(--metal); -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .55; }
.hero.has-img .hero__ring { opacity: .3; }
.hero__in { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .12em; }
.hero__kind { margin: 0 0 1rem; font-weight: 600; letter-spacing: .14em; font-size: .85rem; color: var(--of-shine); }
.hero__lead { max-width: 33rem; font-size: clamp(1.08rem, 1.8vw, 1.25rem); line-height: 1.55; color: var(--of-muted); margin-bottom: 1.75rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
.hero__slots { padding: 1.5rem; border-radius: 22px; background: color-mix(in srgb, var(--of-paper) 82%, transparent); backdrop-filter: blur(14px); border: 1px solid color-mix(in srgb, var(--of-shine) 55%, transparent); }
.hero__slots h2 { font-size: 1.2rem; margin-bottom: .3rem; }
.hero__slots > p { margin: 0 0 1rem; font-size: .93rem; color: var(--of-muted); }
.hero__slots ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; }
.pick { display: grid; grid-template-columns: 4.4rem 1fr; column-gap: .9rem; align-items: center; padding: .7rem .9rem; border-radius: 12px; background: var(--of-surface); border: 1px solid var(--of-line); text-decoration: none; }
.pick:hover { border-color: var(--of-shine); }
.pick__time { grid-row: span 2; font: 800 1.4rem/1 var(--of-display); font-variant-numeric: tabular-nums; }
.pick__day { font-weight: 650; line-height: 1.25; }
.pick__what { font-size: .88rem; color: var(--of-muted); }
.hero__all { font-weight: 650; }
@media (min-width: 960px) {
	.hero__in { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 4rem; }
}

/* Bölümler */
.sec { padding: var(--sec) 0; }
.sec--surface { background: var(--band); border-block: 1px solid var(--of-line); }
.sec--tint { background: var(--band); }
.sec--brand { border-top: 1px solid var(--of-line); background: radial-gradient(60rem 30rem at 15% 0%, color-mix(in srgb, var(--of-shine) 13%, transparent), transparent 70%); }
.sec__head { margin-bottom: clamp(1.75rem, 4vw, 3rem); max-width: 40rem; }
.sec__head h2 { margin-bottom: .35em; }
.sec__head p { margin: 0; font-size: 1.1rem; color: var(--of-muted); }
.sec__split { display: grid; gap: 2rem; }
@media (min-width: 960px) { .sec__split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; } }
.panel { padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 22px; background: var(--of-surface); border: 1px solid var(--of-line); }
.panel .of-form { max-width: none; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1.1rem; border-top: 1px solid var(--of-shine); }
.steps li::before { content: counter(step); display: block; width: max-content; padding-right: .15em; font: 800 3.5rem/1 var(--of-display); background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .5rem; }
.steps h3 { font-size: 1.3rem; }
.steps p { margin: 0; color: var(--of-muted); max-width: 34ch; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }

/* Stüdyo fotoğrafları */
.shots { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
.shots img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; display: block; }
.shots a:first-child { grid-column: 1 / -1; }
.shots a:first-child img { aspect-ratio: 16/9; }
@media (min-width: 800px) {
	.shots { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
	.shots a:first-child { grid-column: span 2; grid-row: span 2; }
	.shots a:first-child img { aspect-ratio: auto; }
}

/* Eklenti bileşenlerine marka dokunuşu */
.of-plan__name { text-transform: uppercase; }
.of-plan.is-featured { background: var(--metal-soft); border-color: transparent; color: var(--of-on-accent); }
.of-plan.is-featured .of-btn--primary { background: var(--of-on-accent); color: var(--of-accent); }
.of-slot.is-mine { background: var(--metal-soft); border-color: transparent; color: var(--of-on-accent); }
.of-program__facts, .of-quote__result { color: var(--of-shine); }
.of-program__badge--empty, .of-trainer__photo span { color: var(--of-shine); border-color: var(--of-shine); }
.of-day__title { border-bottom-width: 1px; border-color: var(--of-shine); }
.of-day.is-today .of-day__title { border-bottom-width: 3px; border-color: var(--of-ink); }
.of-auth__tabs button[aria-selected="true"] { background: var(--of-ink); color: var(--of-paper); }

/* İç sayfalar */
.entry__head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.entry__head h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; max-width: 22ch; }
.entry__meta { margin: 0 0 .6rem; font-weight: 650; color: var(--of-shine); }
.entry { padding-bottom: var(--sec); }
.entry__img img { width: 100%; border-radius: 20px; display: block; }
.entry__img { margin: 0 0 2rem; max-width: 50rem; }
.single-of_program .entry__img { max-width: 13rem; }
.single-of_program .entry__img img { border-radius: 50%; }
.prose { max-width: 42rem; }
.entry--wide .prose { max-width: none; }
.entry--wide .prose > :is(p, h2, h3, ul, ol) { max-width: 42rem; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: 14px; }
.prose a:not(.of-btn) { font-weight: 600; }
.prose :is(ul, ol):not([class]) { padding-left: 1.25rem; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.25rem; border-left: 3px solid var(--of-shine); font-size: 1.15rem; }
.prose table { width: 100%; border-collapse: collapse; }
.prose :is(th, td) { padding: .6rem .5rem; border-bottom: 1px solid var(--of-line); text-align: left; }
.cta { margin-top: 3rem; padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 22px; background: var(--of-surface); border: 1px solid color-mix(in srgb, var(--of-shine) 55%, transparent); max-width: 42rem; }
.cta__title { font: 800 clamp(1.5rem, 3.2vw, 2rem)/1.05 var(--of-display); text-transform: uppercase; margin: 0 0 .3rem; }

.posts { display: grid; gap: 2.5rem 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); padding-bottom: 2rem; }
.post__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 16px; display: block; margin-bottom: .9rem; }
.post__date { margin: 0 0 .3rem; font-size: .88rem; color: var(--of-muted); }
.post__title { font-size: 1.35rem; margin: 0 0 .4rem; }
.post__title a { text-decoration: none; }
.post__title a:hover { text-decoration: underline; }
.post__text { margin: 0; color: var(--of-muted); }
.pagination { padding-bottom: var(--sec); }
.pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 .9rem; border: 1px solid var(--of-line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.pagination .current { background: var(--of-ink); color: var(--of-paper); border-color: var(--of-ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Alt bilgi */
.foot { border-top: 1px solid var(--of-line); padding: 3.5rem 0 2rem; color: var(--of-muted); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--of-ink); }
.foot p { margin: 0 0 .35rem; }
.foot__in { display: grid; gap: 2rem; }
.foot__logo { display: block; width: 7.5rem; height: 7.5rem; border-radius: 50%; margin-bottom: 1rem; }
.foot__label { font-weight: 700; color: var(--of-ink); }
.foot__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.foot__legal { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--of-line); font-size: .9rem; }
.foot__legal a { margin-right: 1.25rem; }
.foot__legal a:last-child { margin-right: 0; }
@media (min-width: 800px) { .foot__in { grid-template-columns: 1.4fr 1fr 1fr; } }

/* Telefonda sabit çubuk */
.dock { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1.5fr 1fr; gap: .5rem; padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--of-paper) 90%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--of-line); transition: transform .2s ease; }
.dock.is-away { transform: translateY(110%); }
.dock__wa { border-color: var(--of-shine); color: var(--of-ink); }
.has-dock .foot { padding-bottom: 6.5rem; }
@media (min-width: 960px) { .dock { display: none; } .has-dock .foot { padding-bottom: 2rem; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.dock { transition: none; }
}
