/*
 * Fitness Project Dashboard styles.
 * White background, Geologica typeface throughout, tan accents.
 */

/* ============================================================
 * Page-level Geologica override.
 * Applied to the whole WooCommerce account page so the typeface
 * is consistent across our custom dashboard AND any default WC
 * markup the theme might style (page title, breadcrumbs, login
 * forms shown to logged-out users, etc.).
 *
 * !important is used here because most themes target h1/h2/.button
 * with specific font-family rules that would otherwise win.
 * ============================================================ */
body.woocommerce-account,
body.woocommerce-account input,
body.woocommerce-account select,
body.woocommerce-account textarea,
body.woocommerce-account button,
body.woocommerce-account a,
body.woocommerce-account h1,
body.woocommerce-account h2,
body.woocommerce-account h3,
body.woocommerce-account h4,
body.woocommerce-account h5,
body.woocommerce-account h6,
body.woocommerce-account p,
body.woocommerce-account span,
body.woocommerce-account li,
body.woocommerce-account label,
body.woocommerce-account .woocommerce,
body.woocommerce-account .woocommerce *,
body.woocommerce-account .woocommerce-MyAccount-navigation,
body.woocommerce-account .woocommerce-MyAccount-navigation *,
body.woocommerce-account .woocommerce-MyAccount-content,
body.woocommerce-account .woocommerce-MyAccount-content * {
	font-family: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Single product pages where workouts/plans live also pick up Geologica
   so the experience feels consistent end-to-end. */
body.single-product .product,
body.single-product .product * {
	font-family: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

.fpd-dash, .fpd-library, .fpd-favourites,
.fpd-calendar, .fpd-profile {
	--fpd-bg:       #ffffff;
	--fpd-surface:  #ffffff;
	--fpd-soft:     #F5F1ED;
	--fpd-ink:      #191919;
	--fpd-ink-2:    #4D4D4D;
	--fpd-ink-3:    #888888;
	--fpd-tan:      #E1D3BE;
	--fpd-tan-deep: #191919;
	--fpd-tan-soft: #F5F1ED;
	--fpd-border:   rgba(25, 25, 25, .10);
	--fpd-border-2: rgba(25, 25, 25, .22);
	--fpd-danger:   #b54141;
	--fpd-success:  #3a7d5a;

	--fpd-radius:   14px;
	--fpd-radius-s: 10px;

	--fpd-sans:  'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--fpd-serif: 'Geologica', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	font-family: var(--fpd-sans);
	color: var(--fpd-ink);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* WC menu tweaks */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation li a {
	font-family: 'Geologica', sans-serif;
	font-size: 14.5px;
	color: #191919;
	padding: 10px 14px;
	border-radius: 8px;
	display: block;
	transition: background .15s, color .15s;
	text-decoration: none;
}
.woocommerce-MyAccount-navigation li a:hover { background: rgba(25, 25, 25, .04); }
.woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--is-active a {
	background: #191919; color: #fff;
}

/* Headlines */
.fpd-display {
	font-family: var(--fpd-serif);
	font-weight: 500;
	font-size: clamp(28px, 4vw, 38px);
	line-height: 1.15;
	letter-spacing: -0.01em;
	margin: 0;
}

.fpd-eyebrow { font-size: 14px; color: var(--fpd-ink-3); margin: 0 0 4px; }

.fpd-section { margin: 32px 0; }

.fpd-section__title {
	font-family: var(--fpd-serif);
	font-weight: 500;
	font-size: 22px;
	margin: 0 0 16px;
	color: var(--fpd-ink);
}

.fpd-section__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.fpd-section__header .fpd-section__title { margin: 0; }

.fpd-link {
	color: var(--fpd-tan-deep);
	font-size: 13.5px;
	font-weight: 500;
	text-decoration: none;
}
.fpd-link:hover { text-decoration: underline; }

.fpd-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	font-size: 13px;
	color: var(--fpd-ink-2);
	margin: 4px 0 12px;
}
.fpd-meta span + span::before {
	content: "·";
	margin-right: 12px;
	color: var(--fpd-ink-3);
}
.fpd-meta--tight { font-size: 12.5px; margin: 2px 0 0; }

.fpd-empty {
	text-align: center;
	padding: 24px 16px;
	background: var(--fpd-soft);
	border-radius: var(--fpd-radius);
}
.fpd-empty__text { color: var(--fpd-ink-2); font-size: 14.5px; margin: 0 0 16px; }

/* Buttons */
.fpd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 500;
	letter-spacing: .01em;
	border-radius: 999px;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .15s, opacity .2s;
	text-decoration: none;
	min-height: 42px;
	white-space: nowrap;
}
.fpd-btn--primary { background: var(--fpd-ink); color: #fff; }
.fpd-btn--primary:hover { background: #000; transform: translateY(-1px); }
.fpd-btn--ghost { background: transparent; color: var(--fpd-ink-2); border-color: var(--fpd-border); }
.fpd-btn--ghost:hover { border-color: var(--fpd-ink); color: var(--fpd-ink); }
.fpd-btn--ghost.is-fav { border-color: var(--fpd-tan-deep); color: var(--fpd-tan-deep); }
.fpd-btn:disabled { opacity: .5; cursor: not-allowed; }

.fpd-btn.is-loading { pointer-events: none; position: relative; }
.fpd-btn.is-loading > * { opacity: 0; }
.fpd-btn.is-loading::after {
	content: ""; position: absolute;
	width: 16px; height: 16px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: fpd-spin .7s linear infinite;
}
@keyframes fpd-spin { to { transform: rotate(360deg); } }

.fpd-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	border-radius: 999px;
	border: 1.5px solid var(--fpd-border);
	background: #fff;
	color: var(--fpd-ink);
	text-decoration: none;
	font-size: 14px;
	cursor: pointer;
}
.fpd-iconbtn:hover { border-color: var(--fpd-ink); }

/* Weekly strip */
.fpd-dash__hello { margin-bottom: 18px; }

.fpd-weekstrip {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	margin: 0 0 24px;
}
.fpd-weekstrip__day {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 10px 4px;
	border-radius: 12px;
	background: var(--fpd-soft);
	border: 1.5px solid transparent;
	font-size: 12.5px;
	color: var(--fpd-ink-2);
}
.fpd-weekstrip__day.is-today { background: var(--fpd-ink); color: #fff; border-color: var(--fpd-ink); }
.fpd-weekstrip__day.is-done { background: var(--fpd-tan-soft); color: var(--fpd-tan-deep); }
.fpd-weekstrip__wd { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; opacity: .8; }
.fpd-weekstrip__num { font-family: var(--fpd-serif); font-size: 18px; font-weight: 500; }
.fpd-weekstrip__dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-top: 4px; opacity: .55; }

/* Workout cards */
.fpd-stack { display: flex; flex-direction: column; gap: 16px; }
.fpd-grid { display: grid; gap: 16px; }
.fpd-grid--2 { grid-template-columns: repeat(2, 1fr); }
.fpd-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
	.fpd-grid--2, .fpd-grid--3 { grid-template-columns: 1fr; }
}

.fpd-workout-card {
	display: flex;
	flex-direction: column;
	background: var(--fpd-surface);
	border: 1px solid var(--fpd-border);
	border-radius: var(--fpd-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform .2s, box-shadow .2s, border-color .2s;
	position: relative;
}
.fpd-workout-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px -16px rgba(25, 25, 25, .25);
	border-color: var(--fpd-border-2);
}
.fpd-workout-card.is-done { opacity: .85; }

.fpd-workout-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background-size: cover;
	background-position: center;
	background-color: var(--fpd-soft);
}
.fpd-workout-card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.5));
	opacity: 0;
	transition: opacity .2s;
}
.fpd-workout-card:hover .fpd-workout-card__play { opacity: 1; }

.fpd-workout-card__badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: var(--fpd-success);
	color: #fff;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 500;
}

.fpd-workout-card__body { padding: 14px 16px 16px; }

.fpd-workout-card__title {
	font-family: var(--fpd-serif);
	font-weight: 500;
	font-size: 17px;
	margin: 0 0 4px;
	color: var(--fpd-ink);
}

.fpd-workout-card__actions { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

.fpd-workout-card--hero { flex-direction: row; align-items: stretch; }
.fpd-workout-card--hero .fpd-workout-card__media { width: 38%; aspect-ratio: auto; min-height: 200px; }
.fpd-workout-card--hero .fpd-workout-card__body { flex: 1; padding: 22px 26px; display: flex; flex-direction: column; justify-content: center; }
.fpd-workout-card--hero .fpd-workout-card__title { font-size: 22px; }

@media (max-width: 600px) {
	.fpd-workout-card--hero { flex-direction: column; }
	.fpd-workout-card--hero .fpd-workout-card__media { width: 100%; aspect-ratio: 16/10; min-height: 0; }
}

/* Heart */
.fpd-fav {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	border: none;
	color: var(--fpd-ink-3);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(4px);
	transition: color .15s, transform .15s;
}
.fpd-fav:hover { color: var(--fpd-tan-deep); transform: scale(1.05); }
.fpd-fav.is-fav { color: var(--fpd-tan-deep); }

/* Library */
.fpd-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	background: var(--fpd-soft);
	border: 1.5px solid var(--fpd-border);
	border-radius: 999px;
	padding: 4px 18px 4px 16px;
	margin-bottom: 16px;
	transition: border-color .15s;
}
.fpd-search:focus-within { border-color: var(--fpd-ink); background: #fff; }
.fpd-search svg { color: var(--fpd-ink-3); flex-shrink: 0; }
.fpd-search input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: 15px;
	padding: 10px 0;
	color: var(--fpd-ink);
}
.fpd-search input::placeholder { color: var(--fpd-ink-3); }

.fpd-library__meta { font-size: 13px; color: var(--fpd-ink-3); margin-bottom: 16px; }

.fpd-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 28px;
}
.fpd-pagination__info { font-size: 13.5px; color: var(--fpd-ink-3); }

/* Calendar */
.fpd-calendar__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
	flex-wrap: wrap;
	gap: 12px;
}
.fpd-calendar__title {
	font-family: var(--fpd-serif);
	font-weight: 500;
	font-size: 24px;
	margin: 0;
}
.fpd-calendar__nav { display: flex; gap: 6px; }

.fpd-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	border: 1px solid var(--fpd-border);
	border-radius: var(--fpd-radius);
	background: var(--fpd-border);
	overflow: hidden;
}

.fpd-calendar__wd {
	background: var(--fpd-soft);
	padding: 10px 8px;
	font-size: 12px;
	color: var(--fpd-ink-3);
	text-align: center;
	letter-spacing: .04em;
	font-weight: 500;
}

.fpd-calendar__cell {
	background: #fff;
	min-height: 80px;
	padding: 6px 8px;
	font-size: 13px;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.fpd-calendar__cell.is-outside { background: var(--fpd-soft); color: var(--fpd-ink-3); }
.fpd-calendar__cell.is-today .fpd-calendar__daynum {
	background: var(--fpd-ink);
	color: #fff;
	border-radius: 50%;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}
.fpd-calendar__daynum { font-weight: 500; margin-bottom: 4px; }

.fpd-calendar__item {
	display: block;
	font-size: 11px;
	color: var(--fpd-ink);
	background: var(--fpd-tan-soft);
	padding: 2px 6px;
	border-radius: 4px;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.fpd-calendar__item:hover { background: var(--fpd-tan); color: #fff; }
.fpd-calendar__item.is-done { background: var(--fpd-success); color: #fff; opacity: .9; }

@media (max-width: 600px) {
	.fpd-calendar__cell { min-height: 60px; padding: 4px; }
	.fpd-calendar__item { font-size: 10px; padding: 2px 4px; }
}

/* Profile forms */
.fpd-form { max-width: 640px; }
.fpd-form--narrow { max-width: 420px; }

.fpd-field-row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 14px 20px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--fpd-border);
}
.fpd-field-row:last-of-type { border-bottom: none; }
.fpd-field-row__label { font-size: 14px; font-weight: 500; color: var(--fpd-ink); }

.fpd-field-row__input input,
.fpd-field-row__input select {
	width: 100%;
	max-width: 320px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 14.5px;
	border: 1.5px solid var(--fpd-border);
	border-radius: var(--fpd-radius-s);
	background: #fff;
	color: var(--fpd-ink);
}
.fpd-field-row__input input:focus,
.fpd-field-row__input select:focus {
	outline: none;
	border-color: var(--fpd-ink);
	box-shadow: 0 0 0 3px rgba(25, 25, 25, .08);
}

.fpd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fpd-chip-check {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border: 1.5px solid var(--fpd-border);
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	color: var(--fpd-ink-2);
	cursor: pointer;
	transition: all .15s;
}
.fpd-chip-check input { display: none; }
.fpd-chip-check:has(input:checked) { background: var(--fpd-ink); color: #fff; border-color: var(--fpd-ink); }

.fpd-meta-line { font-size: 14px; color: var(--fpd-ink-2); margin: 4px 0; }

@media (max-width: 600px) { .fpd-field-row { grid-template-columns: 1fr; gap: 6px; } }

.fpd-notice { padding: 12px 16px; border-radius: var(--fpd-radius-s); margin-bottom: 20px; font-size: 14px; }
.fpd-notice--success { background: #e8f3ec; color: var(--fpd-success); border: 1px solid rgba(58, 125, 90, .25); }
.fpd-notice--error   { background: #fbe9e9; color: var(--fpd-danger);  border: 1px solid rgba(181, 65, 65, .25); }

/* ============================================================
 * Programs library (purchased products from "programs" category,
 * each with collapsible Vimeo videos from the ACF repeater).
 * ============================================================ */

.fpd-programs {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fpd-program {
	background: #fff;
	border: 1px solid var(--fpd-border);
	border-radius: var(--fpd-radius);
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s;
}

.fpd-program[open] {
	border-color: var(--fpd-border-2);
	box-shadow: 0 8px 32px -20px rgba(25, 25, 25, .25);
}

.fpd-program__head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	cursor: pointer;
	list-style: none;
	position: relative;
}

.fpd-program__head::-webkit-details-marker { display: none; }

.fpd-program__thumb {
	width: 72px;
	height: 56px;
	flex-shrink: 0;
	border-radius: var(--fpd-radius-s);
	background-size: cover;
	background-position: center;
	background-color: var(--fpd-soft);
}

.fpd-program__info {
	flex: 1;
	min-width: 0;
}

.fpd-program__title {
	font-family: var(--fpd-serif);
	font-weight: 600;
	font-size: 17px;
	margin: 0 0 2px;
	color: var(--fpd-ink);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fpd-program__meta {
	font-size: 13px;
	color: var(--fpd-ink-3);
	margin: 0;
}

.fpd-program .fpd-fav {
	position: static;
	flex-shrink: 0;
	background: var(--fpd-soft);
}

.fpd-program__chevron {
	flex-shrink: 0;
	color: var(--fpd-ink-3);
	transition: transform .2s;
	display: inline-flex;
	align-items: center;
}

.fpd-program[open] .fpd-program__chevron {
	transform: rotate(180deg);
}

.fpd-program__body {
	padding: 4px 16px 20px;
	border-top: 1px solid var(--fpd-border);
	background: var(--fpd-soft);
}

.fpd-videos {
	display: grid;
	gap: 18px;
	margin-top: 16px;
}

.fpd-video {
	background: #fff;
	border: 1px solid var(--fpd-border);
	border-radius: var(--fpd-radius-s);
	overflow: hidden;
}

.fpd-video__player {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
}

.fpd-video__player iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.fpd-video__fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.fpd-video__info {
	padding: 14px 16px 16px;
}

.fpd-video__title {
	font-family: var(--fpd-serif);
	font-weight: 600;
	font-size: 15.5px;
	margin: 0 0 4px;
}

.fpd-video__desc {
	font-size: 13.5px;
	color: var(--fpd-ink-2);
	margin: 0;
	line-height: 1.55;
}

@media (max-width: 520px) {
	.fpd-program__head { padding: 10px 12px; gap: 12px; }
	.fpd-program__thumb { width: 56px; height: 44px; }
	.fpd-program__title { font-size: 15px; }
}

/* ============================================================
 * Minimal dashboard layout.
 * Centred, generous whitespace, matching the signup wizard feel.
 * ============================================================ */

.fpd-dash--minimal {
	max-width: 720px;
	margin: 0 auto;
}

.fpd-dash--minimal .fpd-dash__hello {
	text-align: center;
	margin-bottom: 28px;
	padding-top: 8px;
}

.fpd-dash--minimal .fpd-section {
	margin: 36px 0;
}

.fpd-dash--minimal .fpd-section__title {
	font-weight: 600;
	font-size: 20px;
	margin-bottom: 14px;
}

/* The weekly strip already exists — just give it more breathing room here */
.fpd-dash--minimal .fpd-weekstrip {
	margin: 0 0 32px;
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
}

/* Empty state inside the minimal dashboard */
.fpd-dash--minimal .fpd-empty {
	background: var(--fpd-soft);
	border: 1px solid var(--fpd-border);
	border-radius: var(--fpd-radius);
	padding: 32px 24px;
	text-align: center;
}

.fpd-dash--minimal .fpd-empty p {
	margin: 0 0 18px;
	color: var(--fpd-ink-2);
	font-size: 14.5px;
}

/* Tighten the calendar — feels lighter in a single-column layout */
.fpd-dash--minimal .fpd-calendar__header {
	margin-bottom: 12px;
}
