/* =========================================================
   AESTHETICZ NIMBUS POST — Frontend Styles
   Namespaced anp- throughout. Matches the Dreamcore Luxe palette used
   sitewide (lilac/pink/soft luxury).
   ========================================================= */

.anp-journey,
.anp-track-page{
	--anp-bg: #FFF9FC;
	--anp-card: #FFFFFF;
	--anp-lilac: #B58BFF;
	--anp-lilac-soft: #EAD9FF;
	--anp-pink: #FF7DBA;
	--anp-pink-soft: #FFE6F1;
	--anp-accent: #7C5CFF;
	--anp-text: #2E2434;
	--anp-text-soft: #6E6178;
	--anp-border: rgba(46,36,52,0.10);
	--anp-green: #3FA66E;
	--anp-shadow: 0 10px 30px -14px rgba(124,92,255,0.25);
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
	color: var(--anp-text);
}

/* This plugin's own --anp-* variables were never wired up to the
   site's global light/dark toggle at all — unlike every other page,
   which at least defines a dark override even where individual
   elements were missed. That's the actual reason this stayed white
   regardless of theme; this is what actually connects it. */
html[data-dlx-theme="dark"] .anp-journey,
html[data-dlx-theme="dark"] .anp-track-page{
	--anp-bg: #121017;
	--anp-card: #1C1824;
	--anp-lilac: #C7A4FF;
	--anp-pink: #FF9BC8;
	--anp-accent: #D7C2FF;
	--anp-text: #FFFFFF;
	--anp-text-soft: #BDB3C9;
	--anp-border: rgba(255,255,255,0.12);
	--anp-shadow: 0 10px 30px -14px rgba(0,0,0,0.45);
}

.anp-journey *, .anp-journey *::before, .anp-journey *::after,
.anp-track-page *, .anp-track-page *::before, .anp-track-page *::after{ box-sizing: border-box; }

.anp-journey{
	background: var(--anp-card);
	border-radius: 24px;
	padding: 28px;
	margin: 28px 0;
	box-shadow: var(--anp-shadow);
}

.anp-journey-head{
	display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
	margin-bottom: 20px;
}
.anp-journey-head h3{
	font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; margin: 0; font-weight: 600;
}
.anp-current-badge{
	background: linear-gradient(135deg, var(--anp-pink), var(--anp-lilac));
	color: #fff; font-size: 0.78rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
}

/* ---- Delivery Card ---- */
.anp-delivery-card{
	display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px; background: var(--anp-bg); border-radius: 16px; padding: 18px 20px; margin-bottom: 24px;
}
.anp-delivery-item{ display: flex; flex-direction: column; gap: 4px; }
.anp-delivery-label{ font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--anp-text-soft); font-weight: 600; }
.anp-delivery-value{ font-size: 0.95rem; font-weight: 600; color: var(--anp-text); }

/* ---- Progress Bar ---- */
.anp-progress-track{
	height: 8px; border-radius: 999px; background: var(--anp-lilac-soft);
	margin-bottom: 30px; overflow: hidden;
}
/* --anp-lilac-soft stays the same pale pastel in both light and dark
   mode (same reason several --dlx-*-soft variables sitewide need
   this too) — without this, the unfilled part of the progress bar
   stayed light regardless of theme. */
html[data-dlx-theme="dark"] .anp-progress-track{
	background: rgba(255,255,255,0.12);
}
.anp-progress-fill{
	height: 100%; border-radius: 999px;
	background: linear-gradient(90deg, var(--anp-pink), var(--anp-lilac));
	transition: width 1s cubic-bezier(.22,1,.36,1);
}

/* ---- Vertical Timeline ---- */
.anp-timeline{ list-style: none; margin: 0; padding: 0; position: relative; }
.anp-timeline-step{
	position: relative; display: flex; gap: 16px; padding-bottom: 26px; padding-left: 4px;
}
.anp-timeline-step:last-child{ padding-bottom: 0; }
.anp-timeline-step::before{
	content: ''; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--anp-border);
}
.anp-timeline-step:last-child::before{ display: none; }
.anp-timeline-step.anp-timeline-completed::before{ background: var(--anp-green); }

.anp-timeline-dot{
	flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.05rem; background: var(--anp-card); border: 2px solid var(--anp-border); color: var(--anp-text-soft);
	position: relative; z-index: 1;
}
.anp-timeline-completed .anp-timeline-dot{ background: var(--anp-green); border-color: var(--anp-green); color: #fff; }
.anp-timeline-current .anp-timeline-dot{
	background: linear-gradient(135deg, var(--anp-pink), var(--anp-lilac)); border-color: transparent; color: #fff;
	box-shadow: 0 0 0 6px rgba(124,92,255,0.18);
	animation: anp-pulse 1.8s ease-in-out infinite;
}
@keyframes anp-pulse{
	0%, 100% { box-shadow: 0 0 0 6px rgba(124,92,255,0.16); }
	50%      { box-shadow: 0 0 0 10px rgba(124,92,255,0.05); }
}
.anp-timeline-upcoming .anp-timeline-dot{ opacity: 0.55; }

.anp-timeline-content strong{ display: block; font-size: 0.98rem; margin-bottom: 2px; }
.anp-timeline-upcoming .anp-timeline-content strong{ color: var(--anp-text-soft); }
.anp-timeline-content p{ margin: 0 0 4px; font-size: 0.86rem; color: var(--anp-text-soft); }
.anp-timeline-content time{ font-size: 0.74rem; color: var(--anp-text-soft); opacity: 0.8; }

.anp-debug-note{ margin-top: 20px; font-size: 0.72rem; color: var(--anp-text-soft); opacity: 0.7; }

/* ---- Notification cards (My Account dashboard) ---- */
.anp-notifications{ display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.anp-notification-card{
	display: flex; align-items: center; gap: 14px;
	background: linear-gradient(120deg, var(--anp-pink-soft), var(--anp-lilac-soft));
	border-radius: 14px; padding: 14px 18px;
}
/* Same fix as the progress track above — this gradient's colors
   never darken on their own. */
html[data-dlx-theme="dark"] .anp-notification-card{
	background: linear-gradient(120deg, hsla(330,100%,75%,.16), hsla(258,100%,75%,.16)), var(--anp-card);
}
.anp-notification-icon{ font-size: 1.4rem; flex-shrink: 0; }
.anp-notification-card strong{ display: block; font-size: 0.85rem; margin-bottom: 2px; }
.anp-notification-card p{ margin: 0; font-size: 0.85rem; color: var(--anp-text-soft); }

/* ---- Public Track Order page ---- */
.anp-track-page{
	max-width: 640px; margin: 0 auto; padding: 40px 20px;
}
.anp-track-intro{ text-align: center; margin-bottom: 28px; }
.anp-track-intro h2{ font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; margin: 0 0 8px; }
.anp-track-intro p{ color: var(--anp-text-soft); margin: 0; }

.anp-track-tabs{ display: flex; gap: 8px; justify-content: center; margin-bottom: 20px; }
.anp-track-tab{
	padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--anp-border);
	background: var(--anp-card); font-size: 0.85rem; font-weight: 600; color: var(--anp-text-soft); cursor: pointer;
	transition: all 0.25s ease;
}
.anp-track-tab-active{ background: linear-gradient(135deg, var(--anp-pink), var(--anp-lilac)); color: #fff; border-color: transparent; }

.anp-track-form{ background: var(--anp-card); border-radius: 20px; padding: 24px; box-shadow: var(--anp-shadow); }
.anp-track-field{ margin-bottom: 16px; }
.anp-track-field label{ display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 6px; }
.anp-track-field input{
	width: 100%; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--anp-border);
	font-size: 0.92rem; font-family: inherit; transition: border-color 0.25s ease;
	background: var(--anp-bg); color: var(--anp-text);
}
.anp-track-field input:focus{ outline: none; border-color: var(--anp-accent); box-shadow: 0 0 0 3px rgba(124,92,255,0.15); }

.anp-track-submit{
	width: 100%; padding: 13px; border-radius: 999px; border: none;
	background: linear-gradient(135deg, var(--anp-pink), var(--anp-lilac)); color: #fff;
	font-weight: 600; font-size: 0.95rem; cursor: pointer; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.anp-track-submit:hover{ transform: translateY(-2px); box-shadow: var(--anp-shadow); }
.anp-track-submit:disabled{ opacity: 0.6; cursor: not-allowed; transform: none; }

.anp-track-message{ text-align: center; font-size: 0.88rem; font-weight: 600; margin: 16px 0 0; min-height: 1.4em; }
.anp-track-message.anp-error{ color: #C0392B; }
.anp-track-message.anp-success{ color: var(--anp-green); }

@media (max-width: 560px){
	.anp-delivery-card{ grid-template-columns: 1fr 1fr; }
	.anp-journey{ padding: 20px; }
}

@media (prefers-reduced-motion: reduce){
	.anp-journey *, .anp-track-page *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
