/* VitaminFit — member profile: saved-notice + «هدف من» account tab
   File: woodmart-child/assets/vf-profile.css
   Colours are pulled from Woodmart so this follows the site theme. */

:root {
	--vfp-accent: var(--wd-primary-color, #049a37);
	/* NOT var(--wd-title-color): Woodmart defines it as #242424 for light
	   themes, and this site runs dark (#1a1a1a). A CSS fallback only fires
	   when a variable is undefined, not when it is defined-but-wrong, so
	   inheriting it made these numbers invisible. Same reason for the text
	   colour, where --wd-text-color is #767676. */
	--vfp-title: #fff;
	--vfp-text: rgba(255, 255, 255, .8);
	--vfp-surface: #1f1e1e;
	--vfp-border: rgba(255, 255, 255, .13);
	--vfp-radius: 16px;
}

/* ---------- the line under a calculator result ---------- */

.vf-save-note {
	margin: 14px 0 0;
	padding: 10px 15px;
	border-radius: var(--vfp-radius);
	font-size: .92em;
	line-height: 1.9;
	border: 1px solid var(--vfp-border);
}

.vf-save-note.is-saved {
	background: rgba(4, 154, 55, .14);
	border-color: rgba(4, 154, 55, .45);
}

.vf-save-note.is-guest {
	background: rgba(255, 255, 255, .04);
}

.vf-save-note.is-guest a {
	color: var(--vfp-accent);
	font-weight: 600;
}

.vf-save-note.is-failed {
	background: rgba(200, 40, 40, .12);
	border-color: rgba(200, 40, 40, .4);
}

/* ---------- «هدف من» ---------- */

.vf-targets {
	direction: rtl;
	text-align: right;
}

.vf-targets-saved {
	padding: 10px 15px;
	border-radius: var(--vfp-radius);
	background: rgba(4, 154, 55, .14);
	border: 1px solid rgba(4, 154, 55, .45);
}

.vf-targets-empty {
	padding: 24px;
	border: 1px dashed var(--vfp-border);
	border-radius: var(--vfp-radius);
	text-align: center;
}

.vf-targets-hint {
	font-size: .9em;
	opacity: .75;
	margin-bottom: 0;
}

.vf-targets-summary {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 0 0 28px;
}

.vf-target-tile {
	padding: 18px 14px;
	border-radius: var(--vfp-radius);
	border: 1px solid var(--vfp-border);
	background: var(--vfp-surface);
	text-align: center;
}

.vf-target-main {
	border-color: var(--vfp-accent);
	background: rgba(4, 154, 55, .12);
}

.vf-target-num {
	display: block;
	font-size: 1.9rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--vfp-title);
}

.vf-target-num small {
	font-size: .45em;
	font-weight: 400;
	margin-right: 4px;
	opacity: .7;
}

.vf-target-label {
	display: block;
	font-size: .85em;
	opacity: .8;
	margin-top: 2px;
}

.vf-targets-form h3 {
	margin: 26px 0 12px;
	font-size: 1.1em;
}

.vf-field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
}

.vf-field-grid label {
	display: block;
}

.vf-field-grid label > span {
	display: block;
	font-size: .88em;
	margin-bottom: 6px;
	opacity: .85;
}

.vf-field-grid input,
.vf-field-grid select {
	width: 100%;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid var(--vfp-border);
	background: var(--vfp-surface);
	color: var(--vfp-title);
	font-family: inherit;
	font-size: 1em;
}

.vf-field-grid input:focus,
.vf-field-grid select:focus {
	outline: 2px solid var(--vfp-accent);
	outline-offset: 1px;
}

.vf-field-wide {
	grid-column: 1 / -1;
}

.vf-targets .vf-btn {
	display: inline-block;
	padding: 11px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--vfp-accent);
	color: #fff;
	font-family: inherit;
	font-size: 1em;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
}

.vf-targets .vf-btn:hover {
	opacity: .88;
}

@media (max-width: 480px) {
	.vf-target-num {
		font-size: 1.55rem;
	}
}

/* ================================================================
   Member dashboard  (woocommerce/myaccount/dashboard.php)

   Same tokens as the planner and the vitaminfit-blog article system.
   Colours are literal, not var(--wd-title-color): inside the account
   area Woodmart sets that to #242424 on a #1a1a1a background.
   ================================================================ */

.vf-dash {
	--mg-accent: var(--wd-primary-color, #049a37);
	--mg-title: #fff;
	--mg-text: rgba(255, 255, 255, .8);
	--mg-dim: rgba(255, 255, 255, .5);
	--mg-surface: #100f0f;
	--mg-border: rgba(255, 255, 255, .15);
	--mg-over: #d9822b;

	direction: rtl;
	text-align: right;
	font-family: inherit;
	line-height: 2;
	color: var(--mg-text);
}

.vf-dash *,
.vf-dash *::before,
.vf-dash *::after {
	box-sizing: border-box;
}

.vf-dash-hello {
	font-size: 1.3rem;
	color: var(--mg-title);
	margin: 0 0 18px;
}

.vf-dash-hello strong {
	color: var(--mg-title);
}

.vf-dash-today {
	background: var(--mg-surface);
	border: 1px solid var(--mg-border);
	border-radius: 30px;
	padding: 26px 24px;
	margin-bottom: 30px;
}

.vf-dash-date {
	margin: 0 0 10px;
	font-size: .92rem;
	color: var(--mg-dim);
}

.vf-dash-count {
	margin: 0;
	line-height: 1.3;
}

.vf-dash-eaten {
	font-size: 2.6rem;
	font-weight: 700;
	color: var(--mg-title);
}

.vf-dash-today.is-over .vf-dash-eaten {
	color: var(--mg-over);
}

.vf-dash-of {
	font-size: 1rem;
	color: var(--mg-dim);
}

.vf-dash-bar {
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .1);
	overflow: hidden;
	margin: 12px 0 8px;
	max-width: 460px;
}

.vf-dash-bar span {
	display: block;
	height: 100%;
	background: var(--mg-accent);
}

.vf-dash-today.is-over .vf-dash-bar span {
	background: var(--mg-over);
}

.vf-dash-left,
.vf-dash-nogoal {
	margin: 0;
	font-size: .95rem;
	color: var(--mg-dim);
}

.vf-dash-nogoal a {
	color: var(--mg-accent);
}

/* ---- today's four meals ---- */

.vf-dash-meals {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
}

.vf-dash-meal {
	display: grid;
	grid-template-columns: 5.5em 1fr auto;
	align-items: baseline;
	gap: 12px;
	padding: 11px 2px;
	border-bottom: 1px solid var(--mg-border);
}

.vf-dash-meal:last-child {
	border-bottom: 0;
}

.vf-dash-mealname {
	color: var(--mg-dim);
	font-size: .9rem;
}

.vf-dash-mealfood {
	color: var(--mg-title);
	overflow-wrap: anywhere;
}

.vf-dash-mealkcal {
	color: var(--mg-dim);
	font-size: .88rem;
	white-space: nowrap;
}

.vf-dash-meal.is-empty .vf-dash-mealname {
	opacity: .65;
}

.vf-dash-mealadd {
	grid-column: 2 / -1;
	color: var(--mg-accent) !important;
	font-size: .9rem;
	text-decoration: none !important;
}

.vf-dash-mealadd:hover {
	text-decoration: underline !important;
}

/* ---- buttons (theme override, same fight as the planner) ---- */

.vf-dash-actions {
	margin: 24px 0 0;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.vf-dash .vf-dash-btn {
	display: inline-block;
	background: var(--mg-accent) !important;
	color: #fff !important;
	border: 1px solid var(--mg-accent) !important;
	border-radius: 35px !important;
	padding: 10px 28px !important;
	font-weight: 600;
	font-size: .98rem !important;
	text-transform: none !important;
	text-decoration: none !important;
	box-shadow: none !important;
}

.vf-dash .vf-dash-btn:hover {
	opacity: .88;
}

.vf-dash .vf-dash-btn-alt {
	background: transparent !important;
	color: var(--mg-title) !important;
	border-color: var(--mg-border) !important;
}

.vf-dash .vf-dash-btn-alt:hover {
	border-color: var(--mg-accent) !important;
	color: var(--mg-accent) !important;
	opacity: 1;
}

@media (max-width: 600px) {
	.vf-dash-eaten {
		font-size: 2.1rem;
	}

	.vf-dash-meal {
		grid-template-columns: 4.6em 1fr auto;
		gap: 8px;
	}

	.vf-dash .vf-dash-btn {
		flex: 1 1 auto;
		text-align: center;
	}
}

/* ================================================================
   Account area chrome — nav + Woodmart's tile grid

   Audit of the stock state:
     • the tile links have border-radius:30px and padding:20px but a
       transparent background and no border, so they read as loose
       icon+text rather than cards
     • the nav has no panel at all, while the site's own sidebar
       widgets use 1px dashed + radius 30
     • .wd-nav-icon is an EMPTY 55x55 span for endpoints Woodmart does
       not know, which is both new tabs — two blank holes in the grid

   Shape language below follows references/site-profile.md:
   dashed borders, radius 30, pill buttons, accent #049a37.
   ================================================================ */

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	border: 1px dashed rgba(255, 255, 255, .15);
	border-radius: 30px;
	padding: 14px 10px;
	margin: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	border-radius: 30px;
	padding: 9px 18px !important;
	color: rgba(255, 255, 255, .8);
	transition: background-color .15s ease, color .15s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: rgba(255, 255, 255, .05);
	color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background: var(--wd-primary-color, #049a37) !important;
	color: #fff !important;
	font-weight: 600;
}

/* ---- tiles become actual cards ---- */

.woocommerce-account .wd-my-account-links li a {
	background: #100f0f;
	border: 1px dashed rgba(255, 255, 255, .15);
	border-radius: 30px;
	transition: border-color .15s ease, transform .15s ease, background-color .15s ease;
}

.woocommerce-account .wd-my-account-links li a:hover {
	border-color: var(--wd-primary-color, #049a37);
	border-style: solid;
	transform: translateY(-2px);
}

.woocommerce-account .wd-my-account-links .nav-link-text {
	color: #fff;
}

/* The two daily-use tabs are what this panel is for — mark them. */
.woocommerce-account .wd-my-account-links .wd-my-acc-planner a,
.woocommerce-account .wd-my-account-links .wd-my-acc-targets a {
	border-style: solid;
	border-color: rgba(4, 154, 55, .45);
	background: rgba(4, 154, 55, .08);
}

/* ---- icons for the endpoints Woodmart has never heard of ----
   Drawn as a mask so they take the surrounding text colour and stay
   crisp at any size, instead of shipping two more image requests. */

.woocommerce-account .wd-my-acc-planner .wd-nav-icon,
.woocommerce-account .wd-my-acc-targets .wd-nav-icon,
.woocommerce-account .woocommerce-MyAccount-navigation-link--planner .wd-nav-icon,
.woocommerce-account .woocommerce-MyAccount-navigation-link--targets .wd-nav-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.woocommerce-account .wd-my-acc-planner .wd-nav-icon::before,
.woocommerce-account .wd-my-acc-targets .wd-nav-icon::before {
	content: "";
	display: block;
	width: 34px;
	height: 34px;
	background-color: currentColor;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* calendar */
.woocommerce-account .wd-my-acc-planner .wd-nav-icon::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

/* target */
.woocommerce-account .wd-my-acc-targets .wd-nav-icon::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.6' fill='%23fff'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='12' cy='12' r='1.6' fill='%23fff'/%3E%3C/svg%3E");
}

/* ---------------- my plans + one matched suggestion ---------------- */

.vf-dash-block {
	margin-bottom: 30px;
}

.vf-dash-h {
	font-size: 1.2rem;
	font-weight: 600;
	color: #fff;
	margin: 0 0 12px;
	padding-bottom: .35em;
	border-bottom: 2px dashed rgba(255, 255, 255, .15);
	line-height: 1.6;
}

.vf-dash-h::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--wd-primary-color, #049a37);
	margin-left: 10px;
	vertical-align: middle;
}

.vf-dash-plans {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 10px;
}

.vf-dash-planlink {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 20px;
	background: #100f0f;
	color: #fff !important;
	text-decoration: none !important;
	transition: border-color .15s ease;
}

.vf-dash-planlink:hover {
	border-color: var(--wd-primary-color, #049a37);
}

.vf-dash-planlink img {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	object-fit: cover;
	flex: none;
}

.vf-dash-planname {
	font-size: .95rem;
	line-height: 1.6;
}

/* The suggestion is a quiet card, not a banner: dashed border, no
   colour block, no price, no urgency. It sits under today's plan. */
.vf-dash-offer {
	display: grid;
	grid-template-columns: 132px 1fr;
	gap: 18px;
	align-items: center;
	padding: 18px;
	border: 1px dashed rgba(4, 154, 55, .5);
	border-radius: 30px;
	background: rgba(4, 154, 55, .06);
}

.vf-dash-offerimg {
	display: block;
	line-height: 0;
}

.vf-dash-offerimg img {
	width: 132px;
	height: 132px;
	object-fit: cover;
	border-radius: 20px;
	display: block;
}

.vf-dash-offerwhy {
	margin: 0 0 4px;
	font-size: .84rem;
	color: var(--wd-primary-color, #049a37);
}

.vf-dash-offername {
	margin: 0 0 6px;
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.6;
}

.vf-dash-offername a {
	color: #fff !important;
	text-decoration: none !important;
}

.vf-dash-offername a:hover {
	color: var(--wd-primary-color, #049a37) !important;
}

.vf-dash-offertext {
	margin: 0 0 14px;
	font-size: .93rem;
	color: rgba(255, 255, 255, .7);
	line-height: 1.9;
}

.vf-dash-offeractions {
	margin: 0;
}

@media (max-width: 560px) {
	.vf-dash-offer {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.vf-dash-offerimg img {
		width: 100%;
		height: 170px;
	}
}

/* Today's meals on the dashboard link straight to the recipe. */
.vf-dash-mealfood a {
	color: #fff !important;
	text-decoration: none !important;
	border-bottom: 1px solid transparent;
}

.vf-dash-mealfood a:hover,
.vf-dash-mealfood a:focus-visible {
	color: var(--wd-primary-color, #049a37) !important;
	border-bottom-color: currentColor;
}
