/**
 * FitPocket Extra CSS
 * Additional components and utility styles
 */

/* Pricing Cards */
.fp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.fp-pricing-card {
  background: var(--fp-surface);
  border: 2px solid var(--fp-border);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  transition: all 0.3s ease;
}

.fp-pricing-card:hover {
  transform: translateY(-4px);
  border-color: var(--fp-primary);
  box-shadow: 0 12px 40px rgba(79, 70, 229, 0.15);
}

.fp-pricing-card--featured {
  border-color: var(--fp-primary);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, var(--fp-surface) 100%);
}

.fp-pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--fp-primary);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fp-pricing-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
  text-align: center;
}

.fp-pricing-price {
  text-align: center;
  margin-bottom: 24px;
}

.fp-pricing-amount {
  font-size: 3rem;
  font-weight: 700;
  color: var(--fp-primary);
}

.fp-pricing-period {
  font-size: 0.9rem;
  color: var(--fp-text-muted);
  margin-left: 4px;
}

.fp-pricing-features {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.fp-pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}

.fp-pricing-features li:last-child {
  border-bottom: none;
}

.fp-pricing-features li::before {
  content: "✓";
  color: var(--fp-primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.fp-pricing-cta {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
  font-size: 1rem;
}

/* Feature Grid */
.fp-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.fp-feature-card {
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.fp-feature-card:hover {
  border-color: rgba(79, 70, 229, 0.5);
  transform: translateY(-2px);
}

.fp-feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--fp-primary), var(--fp-primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.fp-feature-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.fp-feature-desc {
  font-size: 0.95rem;
  color: var(--fp-text-muted);
  line-height: 1.6;
}

/* Stats Display */
.fp-stats {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 0;
}

.fp-stat {
  text-align: center;
  flex: 1;
  min-width: 150px;
}

.fp-stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--fp-primary), #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  margin-bottom: 8px;
}

.fp-stat-label {
  font-size: 0.9rem;
  color: var(--fp-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Progress Bar */
.fp-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 8px 0;
}

.fp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--fp-primary), #8B5CF6);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* Badge */
.fp-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(79, 70, 229, 0.2);
  color: var(--fp-primary);
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fp-badge--success {
  background: rgba(16, 185, 129, 0.2);
  color: var(--fp-success);
}

.fp-badge--warning {
  background: rgba(245, 158, 11, 0.2);
  color: var(--fp-warning);
}

.fp-badge--danger {
  background: rgba(239, 68, 68, 0.2);
  color: var(--fp-error);
}

/* Timeline */
.fp-timeline {
  position: relative;
  padding-left: 40px;
}

.fp-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--fp-border);
}

.fp-timeline-item {
  position: relative;
  padding-bottom: 32px;
}

.fp-timeline-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--fp-primary);
  border: 3px solid var(--fp-bg);
  border-radius: 50%;
}

.fp-timeline-date {
  font-size: 0.85rem;
  color: var(--fp-text-muted);
  margin-bottom: 4px;
}

.fp-timeline-content {
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: 8px;
  padding: 16px;
}

/* Tabs */
.fp-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--fp-border);
  margin-bottom: 24px;
}

.fp-tab {
  padding: 12px 24px;
  background: transparent;
  border: none;
  color: var(--fp-text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.fp-tab:hover {
  color: var(--fp-text);
  background: rgba(255, 255, 255, 0.03);
}

.fp-tab--active {
  color: var(--fp-primary);
  border-bottom-color: var(--fp-primary);
}

/* Avatar */
.fp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fp-primary), var(--fp-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.fp-avatar--large {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

/* Divider */
.fp-divider {
  height: 1px;
  background: var(--fp-border);
  margin: 32px 0;
}

/* Skeleton Loader */
.fp-skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
  animation: fp-skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

@keyframes fp-skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.fp-skeleton-text {
  height: 16px;
  margin-bottom: 8px;
}

.fp-skeleton-title {
  height: 24px;
  width: 60%;
  margin-bottom: 16px;
}

.fp-skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Empty State */
.fp-empty {
  text-align: center;
  padding: 60px 20px;
}

.fp-empty-icon {
  font-size: 4rem;
  opacity: 0.3;
  margin-bottom: 16px;
}

.fp-empty-title {
  font-size: 1.3rem;
  margin-bottom: 8px;
  opacity: 0.9;
}

.fp-empty-desc {
  color: var(--fp-text-muted);
  margin-bottom: 24px;
}

/* Glass effect */
.fp-glass {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Shine effect */
.fp-shine {
  position: relative;
  overflow: hidden;
}

.fp-shine::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.fp-shine:hover::before {
  left: 100%;
}

/* ==============================================
   FitPocket Extra CSS — PHASE 11 (Animations & Polish)
   This sheet complements fitpocket.css without breaking styles.
   ============================================== */

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* --- Additional keyframes (distinct names to avoid collisions) --- */
@keyframes fpFadeInSoft { from {opacity:0; transform:translate3d(0,6px,0)} to {opacity:1; transform:translate3d(0,0,0)} }
@keyframes fpBounceTiny  { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-2px) } }
@keyframes fpPulseRing   { 0% { box-shadow:0 0 0 0 rgba(79,70,229,.35) } 100% { box-shadow:0 0 0 12px rgba(79,70,229,0) } }

/* --- Progressive reveal for lists --- */
.fp-list li { animation: fpFadeInSoft .45s ease-out both; }
.fp-list li:nth-child(1){ animation-delay:.02s }
.fp-list li:nth-child(2){ animation-delay:.05s }
.fp-list li:nth-child(3){ animation-delay:.08s }
.fp-list li:nth-child(4){ animation-delay:.11s }
.fp-list li:nth-child(5){ animation-delay:.14s }

/* --- Hover polish on cards and tiles (opt-in via utility modifiers) --- */
.fp-card--hover { transition: transform .18s ease, box-shadow .18s ease, border-color .2s ease }
.fp-card--hover:hover { transform: translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.25) }

/* --- Brand ring utilities --- */
.fp-ring-brand { box-shadow:0 0 0 2px var(--fp-primary) }
.fp-ring-anim  { animation: fpPulseRing 1.6s ease-out 1 }

/* --- Buttons micro-interactions --- */
.fp-btn { transition: transform .15s ease, filter .2s ease, box-shadow .15s ease }
.fp-btn:hover { transform: translateY(-1px); }
.fp-btn:active { transform: translateY(0); }

/* --- Ghost buttons surfacing brand color --- */
.fp-btn.fp-btn--ghost { border:1px solid var(--fp-primary); color:var(--fp-primary) }
.fp-btn.fp-btn--ghost:hover { background: color-mix(in srgb, var(--fp-primary) 12%, transparent); }

/* --- Links with subtle emphasis --- */
a, .fp-link { transition: color .2s ease, filter .2s ease; color: var(--fp-primary) }
a:hover, .fp-link:hover { filter: brightness(1.1) }

/* --- Images: light zoom on hover for previews --- */
.fp-img-zoom { display:block; border-radius:12px; overflow:hidden; transition: transform .3s ease, box-shadow .3s ease }
.fp-img-zoom:hover { transform: scale(1.01); box-shadow:0 12px 28px rgba(0,0,0,.28) }

/* --- Floating WhatsApp button nudge (if used) --- */
.fp-wa-fab { animation: fpBounceTiny 3.2s ease-in-out infinite }
.fp-wa-fab:hover { animation-play-state: paused }

/* --- Form controls: consistent spacing & focus --- */
.fp-input { margin-bottom: 12px } /* ensures spacing under inputs inside cards */
:where(input, select, textarea).fp-field,
:where(.fp-field) :where(input, select, textarea) {
  border-radius: 10px;
  border: 1px solid var(--fp-border);
  background: transparent;
  color: var(--fp-text);
  padding: 10px 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
:where(input, select, textarea).fp-field:focus-visible,
:where(.fp-field) :where(input, select, textarea):focus-visible {
  outline: 2px solid color-mix(in srgb, var(--fp-primary) 65%, white);
  outline-offset: 2px;
}

/* --- Utility: gradient brand banner (optional) --- */
.fp-gradient { background-image: linear-gradient(135deg, #06C1B0 0%, #7C5CFF 100%); color:#fff }
.fp-gradient a { color:#fff; text-decoration: underline; text-underline-offset: 2px }

/* --- Utility: soft section fade-in --- */
.fp-section[data-animate], .fp-container [data-animate] { animation: fpFadeInSoft .5s ease-out both }

/* === Earlier Extra: fitpocket-extra.css snapshot === */
/* ===== Header spacing & responsive nav (FitPocket patch) ===== */
.fp-header { position: sticky; top: 0; z-index: 20; }
.fp-header .fp-container { max-width: 1200px; margin: 0 auto; padding: 12px 20px; }
.fp-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fp-brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }

.fp-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.fp-nav a { padding: 6px 0; white-space: nowrap; font-weight: 500; opacity: .95; text-decoration: none; }
.fp-nav a:hover { opacity: 1; }

/* keep sign-in button compact */
.fp-btn--ghost { padding: 8px 12px; }

@media (max-width: 1024px) {
  .fp-header .fp-container { padding: 10px 16px; }
  .fp-nav { gap: 16px; }
}

@media (max-width: 720px) {
  .fp-header-inner { align-items: flex-start; }
  .fp-nav { width: 100%; gap: 14px 18px; margin-top: 8px; }
}


/* ==============================================
   FP COMPACT NAV/FOOTER (pinned locally in file)
   Ensures compact vertical sizing even if other bundles load later.
   ============================================== */
.fp-header .fp-container,
header.site-header .fp-container,
.site-header .fp-container{
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  min-height: 48px !important;
}
.fp-footer .fp-container,
footer.site-footer .fp-container,
footer[role="contentinfo"] .fp-container,
.site-footer .fp-container{
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 1.2 !important;
}
.brand img, .brand-logo img, .site-logo img, .logo img, .fp-logo img{
  height: 22px !important; width: auto !important;
}
.fp-nav a, .site-nav a, nav a{ padding-top: 4px !important; padding-bottom: 4px !important; line-height: 1.05 !important; }
