/* Tempo Theme CSS
   A standardized set of styles for the Tempo template blocks
   This file is included in all Tempo template blocks
*/

/* ======================================
   BASE DESIGN TOKENS
   ====================================== */

:root {
  /* Legacy variables (keep for backward compat) */
  --tempo-dark: #111827;
  --tempo-light: #f9fafb;
  --tempo-text: #374151;
  --tempo-text-light: #6b7280;

  /* --- Color Palette --- */
  --tempo-gray-50: #f9fafb;
  --tempo-gray-100: #f3f4f6;
  --tempo-gray-200: #e5e7eb;
  --tempo-gray-300: #d1d5db;
  --tempo-gray-400: #9ca3af;
  --tempo-gray-500: #6b7280;
  --tempo-gray-600: #4b5563;
  --tempo-gray-700: #374151;
  --tempo-gray-800: #1f2937;
  --tempo-gray-900: #111827;

  /* --- Warm Background Colors --- */
  --tempo-bg-warm: #FFFBF7;
  --tempo-bg-peach: #FFF5ED;
  --tempo-bg-cream: #FFEDE0;

  /* --- Icon Badge Accent Colors (pastel) --- */
  --tempo-accent-blue: #DBEAFE;
  --tempo-accent-pink: #FCE7F3;
  --tempo-accent-coral: #FFEDD5;
  --tempo-accent-yellow: #FEF3C7;
  --tempo-accent-mint: #D1FAE5;
  --tempo-accent-purple: #EDE9FE;

  /* --- Typography --- */
  /* Internal Tempo fonts (fallbacks) */
  --tempo-font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --tempo-font-serif: 'Playfair Display', Georgia, serif;
  /* External font variables (injected by consumer apps)
     --font-body: body/paragraph font (e.g., Inter, Open Sans)
     --font-heading: heading/accent font (e.g., Playfair Display, Merriweather) */

  /* --- Spacing (8pt grid) --- */
  --tempo-space-1: 4px;
  --tempo-space-2: 8px;
  --tempo-space-3: 12px;
  --tempo-space-4: 16px;
  --tempo-space-5: 20px;
  --tempo-space-6: 24px;
  --tempo-space-8: 32px;
  --tempo-space-10: 40px;
  --tempo-space-12: 48px;
  --tempo-space-16: 64px;

  /* --- Border Radius --- */
  --tempo-radius-sm: 0.125rem;
  --tempo-radius-md: 0.25rem;
  --tempo-radius-lg: 0.5rem;
  --tempo-radius-xl: 0.75rem;
  --tempo-radius-2xl: 1rem;
  --tempo-radius-full: 9999px;

  /* --- Shadows --- */
  --tempo-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tempo-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --tempo-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --tempo-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --tempo-shadow-hover: 0 22px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
  --tempo-shadow-card: 0 2px 4px rgba(0, 0, 0, 0.1);
  --tempo-shadow-card-hover: 0 6px 12px rgba(0, 0, 0, 0.15);

  /* --- Transitions --- */
  --tempo-transition-fast: 150ms;
  --tempo-transition-base: 200ms;
  --tempo-transition-slow: 300ms;
  --tempo-transition-slower: 500ms;
  --tempo-transition-image: 700ms;
  --tempo-ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --tempo-ease-out: cubic-bezier(0, 0, 0.2, 1);
  --tempo-ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* --- Semantic Colors --- */
  --tempo-color-bg: var(--tempo-gray-50);
  --tempo-color-surface: #ffffff;
  --tempo-color-text: var(--tempo-gray-700);
  --tempo-color-text-muted: var(--tempo-gray-500);
  --tempo-color-text-light: var(--tempo-gray-400);
  --tempo-color-border: var(--tempo-gray-200);
  --tempo-color-border-dark: var(--tempo-gray-300);

  /* --- Component Tokens --- */
  --tempo-card-bg: var(--tempo-color-surface);
  --tempo-card-shadow: var(--tempo-shadow-md);
  --tempo-card-shadow-hover: var(--tempo-shadow-xl);
  --tempo-card-radius: var(--tempo-radius-xl);
  --tempo-card-padding: var(--tempo-space-6);

  --tempo-button-radius: var(--tempo-radius-sm);
  --tempo-button-padding-x: var(--tempo-space-4);
  --tempo-button-padding-y: var(--tempo-space-2);

  --tempo-input-bg: var(--tempo-gray-50);
  --tempo-input-border: var(--tempo-gray-300);
  --tempo-input-radius: var(--tempo-radius-md);

  /* --- Animation Tokens --- */
  --tempo-hover-lift: -5px;
  --tempo-hover-lift-sm: -3px;
  --tempo-hover-lift-xs: -2px;
  --tempo-hover-scale: 1.03;
  --tempo-hover-scale-sm: 1.05;
}

/* ======================================
   END DESIGN TOKENS
   ====================================== */

/* ======================================
   DARK MODE OVERRIDES
   ====================================== */

.dark {
  /* --- Semantic Color Overrides --- */
  --tempo-color-bg: var(--tempo-gray-900);
  --tempo-color-surface: var(--tempo-gray-800);
  --tempo-color-text: var(--tempo-gray-100);
  --tempo-color-text-muted: var(--tempo-gray-400);
  --tempo-color-text-light: var(--tempo-gray-500);
  --tempo-color-border: var(--tempo-gray-700);
  --tempo-color-border-dark: var(--tempo-gray-600);

  /* --- Component Token Overrides --- */
  --tempo-card-bg: var(--tempo-gray-800);
  --tempo-input-bg: var(--tempo-gray-900);
  --tempo-input-border: var(--tempo-gray-700);

  /* --- Legacy Variable Overrides (backward compat) --- */
  --tempo-dark: var(--tempo-gray-100);
  --tempo-light: var(--tempo-gray-900);
  --tempo-text: var(--tempo-gray-300);
  --tempo-text-light: var(--tempo-gray-400);
}

/* Theme transition smoothing */
html {
  transition:
    background-color var(--tempo-transition-slow) var(--tempo-ease-default),
    color var(--tempo-transition-slow) var(--tempo-ease-default);
}

/* ======================================
   GLOBAL FONT APPLICATION
   Uses --font-family-body and --font-family-heading
   injected by preview/consumer apps
   ====================================== */

/* Body font for all text */
body {
  font-family: var(--font-family-body, var(--tempo-font-sans));
}

/* Heading font for h1-h6 */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading, var(--tempo-font-sans));
}

/* Heading font sizes - responsive typography scale */
h1 {
  font-size: 2.25rem;
  line-height: 1.2;
}
h2 {
  font-size: 2.25rem;
  line-height: 1.25;
}
h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}
h4 {
  font-size: 1.125rem;
  line-height: 1.4;
}
h5 {
  font-size: 1rem;
  line-height: 1.4;
}
h6 {
  font-size: 0.875rem;
  line-height: 1.4;
}

@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 3rem; }
  h3 { font-size: 1.25rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.75rem; }
  h2 { font-size: 3.75rem; }
}

@media (min-width: 1280px) {
  h1 { font-size: 4.5rem; }
}

/* Body text typography scale */
p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Subtitle/description text - paragraphs directly following headings */
h1 + p, h2 + p, h3 + p {
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Small text for cards, excerpts, metadata */
small, .text-meta {
  font-size: 0.75rem;
  line-height: 1.5;
}

/* Tempo accent styling - NOT italic serif like Zest
   Uses bold + highlight effect instead for energetic feel */
/* Override Tailwind's .font-serif utility for Tempo's distinct style */
.font-serif {
  font-family: var(--font-family-heading, var(--tempo-font-sans)) !important;
  font-weight: 600 !important;
}

/* Tempo heading spans with class="italic" should NOT be italic - use highlight effect instead */
.tempo-heading span[class*="italic"] {
  font-style: normal !important;
  font-weight: 700;
  color: rgb(var(--color-primary-600));
}

/* ======================================
   END DARK MODE OVERRIDES
   ====================================== */

/* ======================================
   REUSABLE COMPONENT CLASSES
   ====================================== */

/* === CARD COMPONENTS === */

.tempo-card {
  background-color: var(--tempo-card-bg);
  border-radius: var(--tempo-card-radius);
  box-shadow: var(--tempo-card-shadow);
  overflow: hidden;
  transition:
    transform var(--tempo-transition-slow) var(--tempo-ease-out),
    box-shadow var(--tempo-transition-slow) var(--tempo-ease-out);
}

.tempo-card:hover {
  transform: translateY(var(--tempo-hover-lift));
  box-shadow: var(--tempo-card-shadow-hover);
}

/* Card with no hover effect */
.tempo-card-static {
  background-color: var(--tempo-card-bg);
  border-radius: var(--tempo-card-radius);
  box-shadow: var(--tempo-card-shadow);
  overflow: hidden;
}

/* Card padding variants */
.tempo-card-padding {
  padding: var(--tempo-card-padding);
}

.tempo-card-padding-sm {
  padding: var(--tempo-space-4);
}

.tempo-card-padding-lg {
  padding: var(--tempo-space-8);
}

/* Dark mode for cards */
.dark .tempo-card,
.dark .tempo-card-static {
  background-color: var(--tempo-gray-800);
}

/* === BUTTON COMPONENTS === */

.tempo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tempo-button-radius);
  padding: var(--tempo-button-padding-y) var(--tempo-button-padding-x);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--tempo-transition-base) var(--tempo-ease-default);
}

.tempo-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary button */
.tempo-btn-primary {
  background-color: rgb(var(--color-primary-500));
  color: white;
}

.tempo-btn-primary:hover:not(:disabled) {
  background-color: rgb(var(--color-primary-600));
}

/* Secondary button */
.tempo-btn-secondary {
  background-color: transparent;
  border: 1px solid var(--tempo-color-border-dark);
  color: var(--tempo-color-text);
}

.tempo-btn-secondary:hover:not(:disabled) {
  background-color: var(--tempo-gray-50);
}

.dark .tempo-btn-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.dark .tempo-btn-secondary:hover:not(:disabled) {
  border-color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Ghost button */
.tempo-btn-ghost {
  background-color: transparent;
  color: var(--tempo-color-text);
}

.tempo-btn-ghost:hover:not(:disabled) {
  background-color: var(--tempo-gray-100);
}

.dark .tempo-btn-ghost {
  color: var(--tempo-gray-300);
}

.dark .tempo-btn-ghost:hover:not(:disabled) {
  background-color: var(--tempo-gray-800);
}

/* Light button (for dark backgrounds) */
.tempo-btn-light {
  background-color: white;
  color: rgb(var(--color-primary-700));
}

.tempo-btn-light:hover:not(:disabled) {
  background-color: var(--tempo-gray-100);
}

/* Button size variants */
.tempo-btn-sm {
  padding: var(--tempo-space-1) var(--tempo-space-3);
  font-size: 0.75rem;
}

.tempo-btn-lg {
  padding: var(--tempo-space-3) var(--tempo-space-6);
  font-size: 1rem;
}

/* Tempo-style button - moderate rounded corners (NOT full pill) */
.tempo-btn-saturn {
  border-radius: 8px;
}

/* Full pill button (for specific use cases) */
.tempo-btn-pill {
  border-radius: var(--tempo-radius-full);
}

/* Outlined button */
.tempo-btn-outline {
  background-color: transparent;
  border: 2px solid rgb(var(--color-primary-500));
  color: rgb(var(--color-primary-500));
}

.tempo-btn-outline:hover:not(:disabled) {
  background-color: rgb(var(--color-primary-50));
  border-color: rgb(var(--color-primary-600));
  color: rgb(var(--color-primary-600));
}

.dark .tempo-btn-outline {
  border-color: rgb(var(--color-primary-400));
  color: rgb(var(--color-primary-400));
}

.dark .tempo-btn-outline:hover:not(:disabled) {
  background-color: rgba(var(--color-primary-900), 0.3);
  border-color: rgb(var(--color-primary-300));
  color: rgb(var(--color-primary-300));
}

/* === ICON BADGE COMPONENTS === */

.tempo-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--tempo-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--tempo-transition-base) var(--tempo-ease-default);
}

.tempo-icon-badge:hover {
  transform: scale(1.05);
}

.tempo-icon-badge svg {
  width: 24px;
  height: 24px;
}

/* Icon badge color variants */
.tempo-icon-badge-blue {
  background-color: var(--tempo-accent-blue);
  color: #2563EB;
}

.tempo-icon-badge-pink {
  background-color: var(--tempo-accent-pink);
  color: #DB2777;
}

.tempo-icon-badge-coral {
  background-color: var(--tempo-accent-coral);
  color: #EA580C;
}

.tempo-icon-badge-yellow {
  background-color: var(--tempo-accent-yellow);
  color: #CA8A04;
}

.tempo-icon-badge-mint {
  background-color: var(--tempo-accent-mint);
  color: #059669;
}

.tempo-icon-badge-purple {
  background-color: var(--tempo-accent-purple);
  color: #7C3AED;
}

/* Dark mode icon badges */
.dark .tempo-icon-badge-blue {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}

.dark .tempo-icon-badge-pink {
  background-color: rgba(219, 39, 119, 0.2);
  color: #F472B6;
}

.dark .tempo-icon-badge-coral {
  background-color: rgba(234, 88, 12, 0.2);
  color: #FB923C;
}

.dark .tempo-icon-badge-yellow {
  background-color: rgba(202, 138, 4, 0.2);
  color: #FACC15;
}

.dark .tempo-icon-badge-mint {
  background-color: rgba(5, 150, 105, 0.2);
  color: #34D399;
}

.dark .tempo-icon-badge-purple {
  background-color: rgba(124, 58, 237, 0.2);
  color: #A78BFA;
}

/* === BADGE/TAG COMPONENTS === */

.tempo-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--tempo-space-1) var(--tempo-space-3);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--tempo-radius-md);
  transition: all var(--tempo-transition-fast) var(--tempo-ease-default);
}

/* Default badge (gray) */
.tempo-badge-default {
  background-color: var(--tempo-gray-100);
  color: var(--tempo-gray-700);
}

.dark .tempo-badge-default {
  background-color: var(--tempo-gray-800);
  color: var(--tempo-gray-300);
}

/* Primary badge */
.tempo-badge-primary {
  background-color: rgb(var(--color-primary-50));
  color: rgb(var(--color-primary-600));
}

.dark .tempo-badge-primary {
  background-color: rgba(var(--color-primary-900), 0.3);
  color: rgb(var(--color-primary-400));
}

/* Tag (pill shaped) */
.tempo-tag {
  display: inline-flex;
  align-items: center;
  padding: var(--tempo-space-1) var(--tempo-space-2);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--tempo-radius-full);
  background-color: var(--tempo-gray-100);
  color: var(--tempo-gray-600);
  transition: background-color var(--tempo-transition-fast) var(--tempo-ease-default),
              transform var(--tempo-transition-fast) var(--tempo-ease-default);
}

.tempo-tag:hover {
  background-color: var(--tempo-gray-200);
  transform: translateY(-2px);
}

.dark .tempo-tag {
  background-color: var(--tempo-gray-800);
  color: var(--tempo-gray-400);
}

.dark .tempo-tag:hover {
  background-color: var(--tempo-gray-700);
}

/* === FAQ COMPONENTS === */

/* FAQ item container */
.tempo-faq-item {
  transition: all var(--tempo-transition-base) var(--tempo-ease-default);
}

/* FAQ question hover effect */
.tempo-faq-item:hover .tempo-faq-question,
.tempo-faq-item[aria-expanded="true"] .tempo-faq-question,
[aria-expanded="true"] .tempo-faq-question {
  color: rgb(var(--color-primary-600));
}

.dark .tempo-faq-item:hover .tempo-faq-question,
.dark .tempo-faq-item[aria-expanded="true"] .tempo-faq-question,
.dark [aria-expanded="true"] .tempo-faq-question {
  color: rgb(var(--color-primary-400));
}

/* FAQ icon/indicator hover effects */
.tempo-faq-item:hover .tempo-faq-icon,
.tempo-faq-item:hover .tempo-faq-indicator {
  background-color: rgb(var(--color-primary-100));
  transform: scale(1.1);
}

.dark .tempo-faq-item:hover .tempo-faq-icon,
.dark .tempo-faq-item:hover .tempo-faq-indicator {
  background-color: rgb(var(--color-primary-900) / 0.3);
}

.tempo-faq-icon,
.tempo-faq-indicator {
  transition: background-color var(--tempo-transition-base) var(--tempo-ease-default),
              transform var(--tempo-transition-base) var(--tempo-ease-default);
}

/* FAQ toggle icon hover effects (for accordion style) */
.tempo-faq-item:hover .tempo-faq-toggle-icon,
[aria-expanded="true"] .tempo-faq-toggle-icon {
  border-color: rgb(var(--color-primary-200));
  background-color: rgb(var(--color-primary-50));
}

.dark .tempo-faq-item:hover .tempo-faq-toggle-icon,
.dark [aria-expanded="true"] .tempo-faq-toggle-icon {
  border-color: rgb(var(--color-primary-800));
  background-color: rgb(var(--color-primary-900) / 0.3);
}

.tempo-faq-toggle-icon {
  transition: border-color var(--tempo-transition-base) var(--tempo-ease-default),
              background-color var(--tempo-transition-base) var(--tempo-ease-default);
}

/* === FEATURE COMPONENTS === */

/* Feature card hover effects */
.tempo-feature-card,
.feature-card {
  transition: transform var(--tempo-transition-base) var(--tempo-ease-default),
              box-shadow var(--tempo-transition-base) var(--tempo-ease-default);
}

.tempo-feature-card:hover,
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Feature icon pulse animation on hover */
.tempo-feature-icon {
  transition: transform var(--tempo-transition-base) var(--tempo-ease-default);
}

.tempo-feature-card:hover .tempo-feature-icon,
.feature-card:hover .tempo-feature-icon {
  animation: tempo-pulse 1s ease-in-out;
}

@keyframes tempo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* === FORM INPUT COMPONENTS === */

.tempo-input {
  width: 100%;
  padding: var(--tempo-space-2) var(--tempo-space-3);
  background-color: var(--tempo-input-bg);
  border: 1px solid var(--tempo-input-border);
  border-radius: var(--tempo-input-radius);
  font-size: 0.875rem;
  color: var(--tempo-color-text);
  transition:
    border-color var(--tempo-transition-fast) var(--tempo-ease-default),
    box-shadow var(--tempo-transition-fast) var(--tempo-ease-default);
}

.tempo-input:focus {
  outline: none;
  border-color: rgb(var(--color-primary-500));
  box-shadow: 0 0 0 2px rgba(var(--color-primary-500), 0.2);
}

.tempo-input::placeholder {
  color: var(--tempo-gray-400);
}

.dark .tempo-input {
  background-color: var(--tempo-gray-800);
  border-color: var(--tempo-gray-700);
  color: white;
}

.dark .tempo-input::placeholder {
  color: var(--tempo-gray-500);
}

/* Textarea */
.tempo-textarea {
  min-height: 100px;
  resize: vertical;
}

/* === LINK EXTENSIONS === */

/* Primary link (always colored) */
.tempo-link-primary {
  color: rgb(var(--color-primary-600));
}

.tempo-link-primary:hover {
  color: rgb(var(--color-primary-700));
}

.dark .tempo-link-primary {
  color: rgb(var(--color-primary-400));
}

.dark .tempo-link-primary:hover {
  color: rgb(var(--color-primary-300));
}

/* Link with arrow */
.tempo-link-arrow::after {
  content: ' →';
  transition: transform var(--tempo-transition-fast) var(--tempo-ease-default);
  display: inline-block;
}

.tempo-link-arrow:hover::after {
  transform: translateX(4px);
}

/* === AVATAR SIZE VARIANTS === */

.tempo-avatar-xs {
  width: 1.5rem;
  height: 1.5rem;
}

.tempo-avatar-sm {
  width: 2rem;
  height: 2rem;
}

.tempo-avatar-md {
  width: 2.5rem;
  height: 2.5rem;
}

.tempo-avatar-lg {
  width: 3rem;
  height: 3rem;
}

.tempo-avatar-xl {
  width: 4rem;
  height: 4rem;
}

.tempo-avatar-2xl {
  width: 6rem;
  height: 6rem;
}

/* ======================================
   END REUSABLE COMPONENT CLASSES
   ====================================== */

/* Header and Navigation */
.tempo-header {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

.tempo-nav {
  transition: background-color var(--tempo-transition-slow) var(--tempo-ease-default);
}

.tempo-nav-content {
  position: relative;
}

.tempo-section {
  max-width: 85rem;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* For sections with backgrounds that need to be full width */
.tempo-section-wrapper {
  width: 100%;
}

.tempo-section-wrapper.has-background {
  padding-left: 0;
  padding-right: 0;
}

.tempo-section-wrapper.has-background .tempo-section {
  padding-left: 1rem;
  padding-right: 1rem;
}


/* Navigation links */
.tempo-nav-link {
  white-space: nowrap;
  color: rgb(var(--color-gray-700));
  text-decoration: none;
  transition: color var(--tempo-transition-base) var(--tempo-ease-default), background-color var(--tempo-transition-base) var(--tempo-ease-default);
  padding: 1.25rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.dark .tempo-nav-link {
  white-space: nowrap;
  color: rgb(var(--color-gray-300));
}

.tempo-nav-link:hover {
  color: rgb(var(--color-primary-600));
  background-color: rgb(var(--color-gray-50));
}

.dark .tempo-nav-link:hover {
  color: rgb(var(--color-primary-400));
  background-color: rgb(var(--color-gray-800));
}

/* Mobile nav links */
.tempo-mobile-nav-link,
.tempo-mobile-submenu-link {
  transition: background-color var(--tempo-transition-base) var(--tempo-ease-default), color var(--tempo-transition-base) var(--tempo-ease-default);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--color-gray-700));
  display: flex;
  align-items: center;
}

.dark .tempo-mobile-nav-link,
.dark .tempo-mobile-submenu-link {
  color: rgb(var(--color-gray-300));
}

.tempo-mobile-nav-link:hover,
.tempo-mobile-submenu-link:hover {
  background-color: rgb(var(--color-gray-50));
}

.dark .tempo-mobile-nav-link:hover,
.dark .tempo-mobile-submenu-link:hover {
  background-color: rgb(var(--color-gray-800));
}

.tempo-mobile-submenu-link {
  padding-left: 2rem;
}

.tempo-mobile-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: rgb(var(--color-gray-700));
  background-color: transparent;
  border-radius: var(--tempo-radius-md);
  cursor: pointer;
  transition: background-color var(--tempo-transition-base) var(--tempo-ease-default);
}

.tempo-mobile-trigger:hover {
  background-color: rgb(var(--color-gray-100));
}

.dark .tempo-mobile-trigger {
  color: rgb(var(--color-gray-300));
}

.dark .tempo-mobile-trigger:hover {
  background-color: rgb(var(--color-gray-800));
}

/* Mega menu styling */
.tempo-mega-menu-item {
  transition: background-color var(--tempo-transition-base) var(--tempo-ease-default), transform var(--tempo-transition-base) var(--tempo-ease-default);
  padding: 1rem;
  display: flex;
}

.tempo-mega-menu-item:hover {
  transform: translateX(2px);
  background-color: rgb(var(--color-gray-50));
}

.dark .tempo-mega-menu-item:hover {
  background-color: rgb(var(--color-gray-800));
}

/* Dropdown styling */
.tempo-dropdown {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--tempo-transition-slow) var(--tempo-ease-default), transform var(--tempo-transition-slow) var(--tempo-ease-default), visibility var(--tempo-transition-slow) var(--tempo-ease-default);
}

.tempo-dropdown-item {
  color: rgb(var(--color-gray-700));
  transition: background-color var(--tempo-transition-base) var(--tempo-ease-default), color var(--tempo-transition-base) var(--tempo-ease-default);
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.tempo-dropdown-item:hover {
  background-color: rgb(var(--color-gray-100));
  color: rgb(var(--color-primary-600));
}

.dark .tempo-dropdown-item {
  color: rgb(var(--color-gray-200));
}

.dark .tempo-dropdown-item:hover {
  background-color: rgb(var(--color-gray-700));
  color: rgb(var(--color-primary-400));
}

/* Links */
.tempo-link {
  color: rgb(var(--color-gray-700));
  text-decoration: none;
  transition: color var(--tempo-transition-base) var(--tempo-ease-default);
  font-weight: 500;
}

.tempo-link:hover {
  color: rgb(var(--color-primary-600));
}

.dark .tempo-link {
  color: rgb(var(--color-gray-300));
}

.dark .tempo-link:hover {
  color: rgb(var(--color-primary-400));
}

/* Light text links for dark backgrounds */
.tempo-link-light {
  color: white;
  transition: opacity var(--tempo-transition-base) var(--tempo-ease-default);
}

/* Card header styling */
.tempo-card-header {
  display: block;
  padding: 1.5rem;
  background-color: rgba(var(--color-primary-50), 1);
  border-bottom: 1px solid rgba(var(--color-primary-100), 1);
}

/* Ensure proper spacing for title and prevent truncation */
.tempo-card-header h3 {
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
  word-wrap: break-word;
  line-height: 1.4;
}

/* Ensure proper layout for the flex container inside card header */
.tempo-card-header > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  margin-bottom: 0.75rem;
}

/* Dark mode styling */
.dark .tempo-card-header {
  background-color: rgba(var(--color-primary-900), 0.3);
  border-bottom: 1px solid rgba(var(--color-primary-800), 0.7);
}

.tempo-link-light:hover {
  opacity: 0.8;
}

/* Common components */
.tempo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--tempo-button-radius);
  transition: all var(--tempo-transition-base) var(--tempo-ease-default);
  padding: var(--tempo-button-padding-y) var(--tempo-button-padding-x);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
}

.tempo-button-primary {
  background-color: rgb(var(--color-primary-500));
  color: white;
}

.tempo-button-primary:hover {
  background-color: rgb(var(--color-primary-600));
}

.tempo-button-light {
  background-color: white;
  color: rgb(var(--color-primary-700));
}

.tempo-button-light:hover {
  background-color: var(--tempo-gray-100);
}

.tempo-button-secondary {
  background-color: transparent;
  border: 1px solid rgb(var(--color-gray-300));
  color: rgb(var(--color-gray-700));
}

.tempo-button-secondary:hover {
  background-color: rgb(var(--color-gray-50));
}

.dark .tempo-button-secondary {
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.dark .tempo-button-secondary:hover {
  border-color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Typography */
.tempo-heading {
  font-family: var(--tempo-font-sans);
  color: var(--tempo-dark);
  font-weight: 600;
  line-height: 1.2;
  font-size: 2.25rem; /* 36px */
  margin-bottom: 1rem;
}

/* Heading accent - Bold with dynamic highlight (NOT italic like Zest)
   Creates an energetic, modern feel matching Padelthon's aesthetic */
.tempo-heading-accent,
.tempo-heading em {
  font-style: normal;
  font-weight: 700;
  color: rgb(var(--color-primary-600));
  position: relative;
  display: inline;
  padding: 0 0.15em;
}

/* Underline highlight effect for heading accents */
.tempo-heading-accent::after,
.tempo-heading em::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0.05em;
  width: 100%;
  height: 0.3em;
  background: rgba(var(--color-primary-200), 0.5);
  border-radius: 2px;
  z-index: -1;
  transition: height 0.2s ease;
}

.tempo-heading-accent:hover::after,
.tempo-heading em:hover::after {
  height: 0.5em;
}

.dark .tempo-heading-accent,
.dark .tempo-heading em {
  color: rgb(var(--color-primary-400));
}

.dark .tempo-heading-accent::after,
.dark .tempo-heading em::after {
  background: rgba(var(--color-primary-800), 0.4);
}

.tempo-heading-secondary {
  font-family: var(--font-family-heading);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: rgb(var(--color-gray-900));
}

.tempo-text {
  color: var(--tempo-text);
  line-height: 1.5;
}

.tempo-text-body {
  font-size: 0.875rem;
  color: rgb(var(--color-gray-600));
  line-height: 1.5;
  font-weight: normal;
}

.tempo-text-accent {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  color: rgb(var(--color-gray-900));
}

.tempo-text-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  color: rgb(var(--color-gray-900));
}

.tempo-text-meta {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgb(var(--color-gray-700));
}

.tempo-copyright {
  font-size: 0.75rem;
  color: rgb(var(--color-gray-500));
  text-align: center;
}

/* Section title components */

/* Tempo-style pill badge (rounded, no border) */
.tempo-pill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: rgb(var(--color-primary-50));
  border-radius: var(--tempo-radius-full);
  margin-bottom: 1.25rem;
}

.tempo-pill-badge p,
.tempo-pill-badge span {
  color: rgb(var(--color-primary-600));
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dark .tempo-pill-badge {
  background-color: rgba(var(--color-primary-900), 0.3);
}

.dark .tempo-pill-badge p,
.dark .tempo-pill-badge span {
  color: rgb(var(--color-primary-400));
}

/* Tempo-style gradient overlay - energetic diagonal gradient (different from Zest's warm bottom gradient)
   Creates a dynamic, modern feel with subtle movement */
.tempo-gradient-warm {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(var(--color-primary-100), 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(var(--color-primary-50), 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.dark .tempo-gradient-warm {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(var(--color-primary-950), 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(var(--color-primary-900), 0.1) 0%, transparent 40%);
}

/* Alternative: Diagonal stripe gradient for energetic sections */
.tempo-gradient-energetic {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(var(--color-primary-50), 0.4) 0%, transparent 30%),
    linear-gradient(-45deg, rgba(var(--color-primary-100), 0.2) 0%, transparent 25%);
  pointer-events: none;
}

.dark .tempo-gradient-energetic {
  background:
    linear-gradient(135deg, rgba(var(--color-primary-950), 0.2) 0%, transparent 30%),
    linear-gradient(-45deg, rgba(var(--color-primary-900), 0.15) 0%, transparent 25%);
}

/* Tempo-style colorful backgrounds (pastel) - use with .tempo-colorful-bg-{n} where n = 1-8 */
.tempo-colorful-bg-1 { background-color: rgb(186 230 253); } /* sky-200 */
.tempo-colorful-bg-2 { background-color: rgb(221 214 254); } /* violet-200 */
.tempo-colorful-bg-3 { background-color: rgb(167 243 208); } /* emerald-200 */
.tempo-colorful-bg-4 { background-color: rgb(254 205 211); } /* rose-200 */
.tempo-colorful-bg-5 { background-color: rgb(253 230 138); } /* amber-200 */
.tempo-colorful-bg-6 { background-color: rgb(245 208 254); } /* fuchsia-200 */
.tempo-colorful-bg-7 { background-color: rgb(153 246 228); } /* teal-200 */
.tempo-colorful-bg-8 { background-color: rgb(254 215 170); } /* orange-200 */

.dark .tempo-colorful-bg-1 { background-color: rgba(12 74 110, 0.5); } /* sky-800/50 */
.dark .tempo-colorful-bg-2 { background-color: rgba(91 33 182, 0.5); } /* violet-800/50 */
.dark .tempo-colorful-bg-3 { background-color: rgba(6 95 70, 0.5); } /* emerald-800/50 */
.dark .tempo-colorful-bg-4 { background-color: rgba(159 18 57, 0.5); } /* rose-800/50 */
.dark .tempo-colorful-bg-5 { background-color: rgba(146 64 14, 0.5); } /* amber-800/50 */
.dark .tempo-colorful-bg-6 { background-color: rgba(134 25 143, 0.5); } /* fuchsia-800/50 */
.dark .tempo-colorful-bg-7 { background-color: rgba(17 94 89, 0.5); } /* teal-800/50 */
.dark .tempo-colorful-bg-8 { background-color: rgba(154 52 18, 0.5); } /* orange-800/50 */

/* Tempo-style accent text - dynamic underline effect (NOT italic like Zest)
   Creates an energetic, modern feel matching Padelthon's aesthetic */
.tempo-accent-text {
  position: relative;
  display: inline;
  font-weight: 600;
  color: rgb(var(--color-primary-600));
  background: linear-gradient(to right, rgba(var(--color-primary-200), 0.4) 0%, rgba(var(--color-primary-200), 0.4) 100%);
  background-size: 100% 35%;
  background-position: 0 85%;
  background-repeat: no-repeat;
  transition: background-size 0.3s ease;
}

.tempo-accent-text:hover {
  background-size: 100% 100%;
}

.dark .tempo-accent-text {
  color: rgb(var(--color-primary-400));
  background: linear-gradient(to right, rgba(var(--color-primary-800), 0.5) 0%, rgba(var(--color-primary-800), 0.5) 100%);
  background-size: 100% 35%;
  background-position: 0 85%;
  background-repeat: no-repeat;
}

/* Alternative accent style for headings - bold with highlight */
.tempo-accent-highlight {
  font-weight: 700;
  color: rgb(var(--color-primary-600));
  padding: 0 0.25em;
  margin: 0 -0.25em;
  background: linear-gradient(135deg, rgba(var(--color-primary-100), 0.8) 0%, rgba(var(--color-primary-50), 0.4) 100%);
  border-radius: 4px;
}

.dark .tempo-accent-highlight {
  color: rgb(var(--color-primary-400));
  background: linear-gradient(135deg, rgba(var(--color-primary-900), 0.4) 0%, rgba(var(--color-primary-950), 0.2) 100%);
}

/* Legacy section badge (border-left style) */
.tempo-section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background-color: rgb(var(--color-primary-50));
  border-left: 4px solid rgb(var(--color-primary-500));
  margin-bottom: 1.25rem;
}

.tempo-section-badge p {
  color: rgb(var(--color-primary-600));
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tempo-section-title {
  font-family: var(--font-family-heading);
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  color: rgb(var(--color-primary-800));
  margin-bottom: 1rem;
}

.tempo-section-subtitle {
  font-size: 1.25rem;
  color: rgb(var(--color-secondary-600));
  margin-top: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Utilities */
.tempo-container {
  width: 100%;
  max-width: clamp(60rem, 80vw, 90rem);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .tempo-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .tempo-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Stats Components */
.tempo-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
}

.tempo-stat-card {
  background-color: var(--tempo-color-surface);
  border-radius: var(--tempo-card-radius);
  box-shadow: var(--tempo-shadow-md);
  padding: var(--tempo-space-5);
  transform: translateY(0);
  transition: transform var(--tempo-transition-slow) var(--tempo-ease-default), box-shadow var(--tempo-transition-slow) var(--tempo-ease-default);
}

.tempo-stat-card:hover {
  transform: translateY(var(--tempo-hover-lift));
  box-shadow: var(--tempo-shadow-xl);
}

/* Footer Components */
.tempo-footer {
  background-color: white;
  border-top: 1px solid rgb(var(--color-gray-200));
  color: rgb(var(--color-gray-800));
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  margin-top: auto;
  width: 100%;
}

.tempo-footer-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .tempo-footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .tempo-footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tempo-footer-col {
  display: flex;
  flex-direction: column;
}

.tempo-footer-copyright {
  padding-top: 1.5rem;
  border-top: 1px solid rgb(var(--color-gray-200));
  text-align: center;
}

.dark .tempo-footer {
  background-color: rgb(var(--color-gray-900));
  border-color: rgb(var(--color-gray-800));
  color: rgb(var(--color-gray-100));
}

.dark .tempo-footer-copyright {
  border-color: rgb(var(--color-gray-700));
}

/* Tempo-style footer - warm gradient background */
.tempo-footer-saturn {
  background: linear-gradient(to bottom, #ffffff 0%, #FFF7ED 100%);
  border-top: 1px solid var(--tempo-gray-200);
}

.tempo-footer-saturn .tempo-heading-secondary {
  color: var(--tempo-gray-900);
  font-weight: 700;
}

.tempo-footer-saturn .tempo-link {
  color: var(--tempo-gray-500);
}

.tempo-footer-saturn .tempo-link:hover {
  color: var(--tempo-gray-900);
}

/* Tempo-style orange social icons (no background circle) */
.tempo-social-icon-saturn {
  color: rgb(var(--color-primary-500));
  background: none;
  width: auto;
  height: auto;
  transition: color var(--tempo-transition-base) var(--tempo-ease-default);
}

.tempo-social-icon-saturn:hover {
  color: rgb(var(--color-primary-600));
}

.dark .tempo-social-icon-saturn {
  color: rgb(var(--color-primary-400));
}

.dark .tempo-social-icon-saturn:hover {
  color: rgb(var(--color-primary-300));
}

/* Tempo-style newsletter input with icon */
.tempo-newsletter-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tempo-newsletter-input .tempo-input {
  flex: 1;
  border: 1px solid var(--tempo-gray-300);
  border-radius: 8px;
  padding-left: 2.5rem;
  background-color: white;
}

.tempo-newsletter-input .tempo-input-icon {
  position: absolute;
  left: 0.75rem;
  color: var(--tempo-gray-400);
}

.tempo-newsletter-input .tempo-btn-send {
  width: 44px;
  height: 44px;
  border-radius: var(--tempo-radius-full);
  background-color: rgb(var(--color-primary-500));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tempo-newsletter-input .tempo-btn-send:hover {
  background-color: rgb(var(--color-primary-600));
}

/* Footer dark navy variant (alternative) */
.tempo-footer-dark {
  background-color: #0F172A;
  border-top: none;
  color: white;
}

.tempo-footer-dark .tempo-heading-secondary {
  color: white;
}

.tempo-footer-dark .tempo-link {
  color: rgba(255, 255, 255, 0.7);
}

.tempo-footer-dark .tempo-link:hover {
  color: white;
}

.tempo-footer-dark .tempo-social-icon {
  color: rgb(var(--color-primary-500));
  background: none;
}

.tempo-footer-dark .tempo-social-icon:hover {
  color: rgb(var(--color-primary-400));
}

/* Dark mode support */
.dark .tempo-heading {
  color: white;
}

.dark .tempo-heading-secondary {
  color: white;
}

.dark .tempo-text {
  color: var(--tempo-gray-400);
}

.dark .tempo-text-body {
  color: rgb(var(--color-gray-300));
}

.dark .tempo-text-accent {
  color: white;
}

.dark .tempo-text-label {
  color: white;
}

.dark .tempo-text-meta {
  color: rgb(var(--color-gray-300));
}

.dark .tempo-copyright {
  color: rgb(var(--color-gray-400));
}

.dark .tempo-link {
  color: rgb(var(--color-gray-300));
}

.dark .tempo-link:hover {
  color: rgb(var(--color-primary-400));
}

.dark .tempo-form-input {
  background-color: rgb(var(--color-gray-800));
  border-color: rgb(var(--color-gray-700));
  color: white;
}

.dark .tempo-form-input::placeholder {
  color: rgb(var(--color-gray-400));
}

.dark .tempo-button-primary {
  background-color: rgb(var(--color-primary-500));
}

.dark .tempo-button-primary:hover {
  background-color: rgb(var(--color-primary-600));
}

.dark .tempo-social-icon {
  background-color: rgb(var(--color-gray-800));
  color: rgb(var(--color-gray-300));
}

.dark .tempo-social-icon:hover {
  background-color: rgb(var(--color-gray-700));
  color: rgb(var(--color-primary-400));
}

.dark .tempo-section{
  
}

.dark .tempo-section-badge {
  background-color: rgba(var(--color-primary-900), 0.3);
  border-left-color: rgb(var(--color-primary-400));
}

.dark .tempo-section-badge p {
  color: rgb(var(--color-primary-400));
}

.dark .tempo-section-title {
  color: rgb(var(--color-primary-400));
}

.dark .tempo-section-subtitle {
  color: rgb(var(--color-secondary-400));
}

.dark .tempo-stat-card {
  background-color: var(--tempo-gray-800);
}

/* Background gradient */
.bg-gradient-radial {
  background-image: radial-gradient(circle at center, var(--tw-gradient-from) 0%, var(--tw-gradient-via) 50%, var(--tw-gradient-to) 100%);
}

/* === WARM BACKGROUND UTILITIES (Tempo-style) === */

.tempo-bg-warm {
  background-color: var(--tempo-bg-warm);
}

.tempo-bg-peach {
  background-color: var(--tempo-bg-peach);
}

.tempo-bg-cream {
  background-color: var(--tempo-bg-cream);
}

/* Dark mode overrides for warm backgrounds */
.dark .tempo-bg-warm,
.dark .tempo-bg-peach,
.dark .tempo-bg-cream {
  background-color: var(--tempo-gray-900);
}

/* Feature Card Components */
.tempo-feature-card {
  transition: transform var(--tempo-transition-slow) var(--tempo-ease-default);
}

.tempo-feature-card:hover {
  transform: translateY(var(--tempo-hover-lift));
}

/* Feature icon with rectangular shape */
.tempo-feature-icon {
  transition: background-color var(--tempo-transition-slow) var(--tempo-ease-default);
}

.tempo-feature-card:hover .tempo-feature-icon {
  background-color: rgba(var(--color-primary-600), 0.1);
}

/* Feature image zoom effect */
.tempo-feature-image {
  transform: scale(1);
  transition: transform var(--tempo-transition-image) var(--tempo-ease-out);
}

.tempo-feature-card:hover .tempo-feature-image,
.tempo-feature-main-image:hover .tempo-feature-image {
  transform: scale(1.05);
}

/* Feature one item styles */
.tempo-feature-images {
  position: relative;
  min-height: 400px;
}

.tempo-feature-main-image {
  position: relative;
  transition: transform var(--tempo-transition-slow) var(--tempo-ease-default);
}

.tempo-feature-list li {
  transition: transform var(--tempo-transition-slow) var(--tempo-ease-default);
}

.tempo-feature-list li:hover,
.tempo-feature-item:hover {
  transform: translateX(4px);
}

/* Card content structure */
.tempo-card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  box-shadow: var(--tempo-shadow-card);
  transition: box-shadow var(--tempo-transition-slow) var(--tempo-ease-default);
}

.tempo-feature-card:hover .tempo-card-content {
  box-shadow: var(--tempo-shadow-card-hover);
}

.tempo-card-data {
  flex: 1;
  display: flex;
}

/* Card icon */
.tempo-card-icon {
  transition: all var(--tempo-transition-base) var(--tempo-ease-default);
}

.tempo-feature-card:hover .tempo-card-icon {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Link styles */
.tempo-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin-top: 1rem;
}

.tempo-link-list li {
  margin: 0;
  padding: 0;
}

.tempo-link {
  font-size: 0.875rem;
  color: rgb(var(--color-gray-600));
  transition: color var(--tempo-transition-base) var(--tempo-ease-default);
  text-decoration: none;
  display: inline-block;
}

.tempo-link:hover {
  color: rgb(var(--color-primary-600));
}

/* Form elements */
.tempo-form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  background-color: rgb(var(--color-gray-50));
  border: 1px solid rgb(var(--color-gray-300));
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: rgb(var(--color-gray-800));
}

.tempo-form-input:focus {
  outline: none;
  ring: 1px rgb(var(--color-primary-500));
  border-color: rgb(var(--color-primary-500));
}

/* Content grouping */
.tempo-content-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: rgb(var(--color-gray-600));
  margin-top: 1rem;
}

.dark .tempo-content-group {
  color: rgb(var(--color-gray-400));
}

/* Social media */
.tempo-social-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}

.tempo-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: rgb(var(--color-gray-100));
  color: rgb(var(--color-gray-600));
  transition: background-color var(--tempo-transition-base) var(--tempo-ease-default),
              color var(--tempo-transition-base) var(--tempo-ease-default),
              transform var(--tempo-transition-base) var(--tempo-ease-default);
}

.tempo-social-icon:hover {
  background-color: rgb(var(--color-gray-200));
  color: rgb(var(--color-primary-600));
  transform: translateY(-2px);
}

.dark .tempo-social-icon {
  background-color: rgb(var(--color-gray-800));
  color: rgb(var(--color-gray-300));
}

.dark .tempo-social-icon:hover {
  background-color: rgb(var(--color-gray-700));
  color: rgb(var(--color-primary-400));
}

/* Logo styling */
.tempo-logo {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

/* Stats styling */
.tempo-stat-container {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: transform var(--tempo-transition-slow) var(--tempo-ease-default);
}

.tempo-feature-card:hover .tempo-stat-container {
  transform: translateY(-2px);
}

/* Avatar styling */
.tempo-avatar {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tempo-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tempo-avatar-square {
  border-radius: 0.25rem;
}

.tempo-avatar-rounded {
  border-radius: 0.5rem;
}

.tempo-avatar-circle {
  border-radius: 50%;
}

.tempo-avatar-border {
  border: 2px solid rgb(var(--color-white));
}


/* Author info styling */
.tempo-author-info {
  flex: 1;
}

.tempo-author-name {
  font-weight: 600;
  font-size: 1.125rem;
  color: rgba(var(--color-gray-900), 1);
  margin-bottom: 0.25rem;
}

.dark .tempo-author-name {
  color: rgba(var(--color-white), 1);
}

.tempo-author-credentials {
  display: flex;
  font-size: 0.875rem;
  color: rgba(var(--color-gray-500), 1);
  align-items: center;
  gap: 0.5rem;
}

.dark .tempo-author-credentials {
  color: rgba(var(--color-gray-400), 1);
}

.dark .tempo-avatar-border {
  border-color: rgb(var(--color-gray-700));
}

.tempo-avatar-shadow {
  box-shadow: var(--tempo-shadow-md);
}

.tempo-avatar-glow {
  position: relative;
}

.tempo-avatar-glow::before {
  content: '';
  position: absolute;
  inset: -4px;
  background-color: rgb(var(--color-primary-200));
  border-radius: inherit;
  z-index: -1;
  opacity: 0.4;
  filter: blur(4px);
}

.dark .tempo-avatar-glow::before {
  background-color: rgb(var(--color-primary-700));
}

/* ======================================
   ANIMATION KEYFRAMES
   ====================================== */

@keyframes tempo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes tempo-fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tempo-fadeInRight {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes tempo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes tempo-shimmer {
  0% { left: -100%; }
  100% { left: 125%; }
}

@keyframes tempo-slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes tempo-slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tempo-scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Animation utility classes */
.animate-tempo-pulse {
  animation: tempo-pulse 2s ease-in-out infinite;
}

.animate-tempo-float {
  animation: tempo-float 6s ease-in-out infinite;
}

.animate-tempo-shimmer {
  animation: tempo-shimmer 1.5s infinite;
}

.animate-tempo-fadeInUp {
  animation: tempo-fadeInUp 0.6s ease-out forwards;
}

.animate-tempo-fadeInRight {
  animation: tempo-fadeInRight 0.6s ease-out forwards;
}

.animate-tempo-slideIn {
  animation: tempo-slideIn 0.5s ease-out forwards;
}

.animate-tempo-slideUp {
  animation: tempo-slideUp 0.5s ease-out forwards;
}

.animate-tempo-scaleIn {
  animation: tempo-scaleIn 0.4s ease-out forwards;
}

/* --- Float Animations (Hero with avatars) --- */
@keyframes tempo-float-slow {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

@keyframes tempo-float-medium {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes tempo-float-complex {
  0% { transform: translate(0px, 0px); }
  25% { transform: translate(3px, -4px); }
  50% { transform: translate(0px, -7px); }
  75% { transform: translate(-3px, -3px); }
  100% { transform: translate(0px, 0px); }
}

/* --- Pulse Animations (Hero with avatars) --- */
@keyframes tempo-pulse-line {
  0% { opacity: 0.2; }
  50% { opacity: 0.4; }
  100% { opacity: 0.2; }
}

@keyframes tempo-pulse-node {
  0% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(0.8); opacity: 0.4; }
}

/* --- Marquee Animation (Logo scroll) --- */
@keyframes tempo-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Gallery Fade Animations --- */
@keyframes tempo-gallery-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes tempo-gallery-fadeInSquare {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes tempo-gallery-fadeInFancy {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- Testimonial Entrance Animation --- */
@keyframes tempo-testimonial-entrance {
  0% { opacity: 0; transform: scale(0.98) translateY(10px) translateZ(-25px); }
  100% { opacity: 1; transform: scale(1) translateY(0) translateZ(0); }
}

/* Float animation utility classes */
.float-animation-slow {
  animation: tempo-float-slow 8s ease-in-out infinite;
}

.float-animation-medium {
  animation: tempo-float-medium 6s ease-in-out infinite;
}

.float-animation-complex {
  animation: tempo-float-complex 10s ease-in-out infinite;
}

/* Pulse animation utility classes */
.pulse-animation-line {
  animation: tempo-pulse-line 4s ease-in-out infinite;
}

.pulse-animation-node {
  animation: tempo-pulse-node 3s ease-in-out infinite;
}

/* Marquee utility classes */
.tempo-marquee-wrapper {
  position: relative;
  overflow: hidden;
}

.tempo-marquee-content {
  display: flex;
  animation: tempo-marquee 30s linear infinite;
  will-change: transform;
}

.tempo-marquee-content:hover {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .tempo-marquee-content {
    animation-duration: 20s;
  }
}

@media (max-width: 480px) {
  .tempo-marquee-content {
    animation-duration: 15s;
  }
}

/* Gallery item animation classes */
.tempo-gallery-item {
  animation: tempo-gallery-fadeIn 0.6s ease-out both;
}

.tempo-gallery-item-square {
  animation: tempo-gallery-fadeInSquare 0.7s ease-out both;
}

.tempo-gallery-item-fancy {
  animation: tempo-gallery-fadeInFancy 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Responsive gallery grid adjustments */
@media (max-width: 640px) {
  .tempo-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .tempo-gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery lazy loading styles */
.tempo-gallery-grid img.loading {
  opacity: 0.5;
  transition: opacity 0.3s ease-in-out;
}

.tempo-gallery-grid img.loaded {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

/* ======================================
   END ANIMATION KEYFRAMES
   ====================================== */

/* ======================================
   TESTIMONIALS COMPONENT STYLES
   ====================================== */

/* Container */
.tempo-testimonials-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

/* 3D Perspective container */
.tempo-perspective {
  perspective: 1500px;
  position: relative;
  min-height: 400px;
}

/* Testimonial slider items */
.tempo-testimonial-item {
  position: absolute;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateZ(-100px);
  transform-style: preserve-3d;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.tempo-testimonial-item.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateZ(0);
}

/* 3D Card wrapper and card */
.tempo-testimonial-card-wrapper {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.4s var(--tempo-ease-default);
}

.tempo-testimonial-card {
  background: white;
  box-shadow: var(--tempo-shadow-md);
  transform-style: preserve-3d;
}

.dark .tempo-testimonial-card {
  background: rgba(var(--color-gray-800), 1);
}

/* Quote symbol */
.tempo-quote-symbol {
  position: absolute;
  top: -20px;
  right: 10px;
  width: 120px;
  height: 120px;
  color: rgba(var(--color-primary-200), 0.5);
  transform: rotate(10deg);
  z-index: -1;
}

/* Card sections */
.tempo-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: rgba(var(--color-primary-50), 1);
}

.dark .tempo-card-header {
  background: rgba(var(--color-primary-900), 0.3);
}

.tempo-card-body {
  padding: 2rem 1.5rem;
}

.tempo-card-footer {
  padding: 1.5rem;
  border-top: 1px solid rgba(var(--color-gray-200), 1);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dark .tempo-card-footer {
  border-color: rgba(var(--color-gray-700), 1);
}

/* Company and author info */
.tempo-company-name {
  font-weight: 600;
  color: rgba(var(--color-primary-700), 1);
}

.dark .tempo-company-name {
  color: rgba(var(--color-primary-300), 1);
}

.tempo-testimonial-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(var(--color-gray-700), 1);
}

.dark .tempo-testimonial-text {
  color: rgba(var(--color-gray-300), 1);
}

.tempo-author-name {
  font-weight: 600;
  color: rgba(var(--color-gray-900), 1);
}

.dark .tempo-author-name {
  color: white;
}

.tempo-author-credentials {
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.tempo-position {
  color: rgba(var(--color-gray-600), 1);
}

.tempo-divider {
  color: rgba(var(--color-gray-400), 1);
}

.tempo-industry {
  color: rgba(var(--color-primary-600), 1);
  font-weight: 500;
}

/* Rating stars */
.tempo-rating-stars {
  display: flex;
  gap: 0.25rem;
}

.tempo-star {
  width: 1.25rem;
  height: 1.25rem;
  color: rgba(var(--color-gray-300), 1);
}

.tempo-star.filled {
  color: #FBBF24;
}

.tempo-star-icon {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Navigation controls */
.tempo-navigation-controls {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tempo-nav-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.tempo-nav-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: rgba(var(--color-gray-300), 1);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tempo-nav-dot.active {
  background-color: rgba(var(--color-primary-500), 1);
  transform: scale(1.3);
}

.tempo-nav-arrows {
  display: flex;
  gap: 1rem;
}

.tempo-nav-arrow {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: white;
  border: 1px solid rgba(var(--color-gray-200), 1);
  color: rgba(var(--color-gray-600), 1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark .tempo-nav-arrow {
  background-color: rgba(var(--color-gray-800), 1);
  border-color: rgba(var(--color-gray-700), 1);
  color: rgba(var(--color-gray-400), 1);
}

.tempo-nav-arrow:hover {
  background-color: rgba(var(--color-primary-50), 1);
  border-color: rgba(var(--color-primary-300), 1);
  color: rgba(var(--color-primary-600), 1);
}

.tempo-nav-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ======================================
   END TESTIMONIALS COMPONENT STYLES
   ====================================== */

/* Responsive adjustments */
@media (max-width: 1023px) {
  .tempo-stats-grid {
    margin-top: 2rem;
    grid-template-columns: 1fr;
  }
  
  .tempo-heading {
    font-size: 2rem; /* 32px for tablets */
  }
}

@media (max-width: 768px) {
  .tempo-feature-card {
    margin-bottom: 1.5rem;
  }

  .tempo-feature-card:hover {
    transform: translateY(var(--tempo-hover-lift-sm));
  }

  .tempo-heading {
    font-size: 1.875rem; /* 30px for mobile */
  }
}

/* ======================================
   TEMPO DECORATIVE ELEMENTS
   Distinct from Zest's warm circles - more energetic/dynamic
   ====================================== */

/* Dot grid pattern - subtle, modern, energetic */
.tempo-decor-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0);
  background-size: 24px 24px;
}

.dark .tempo-decor-dots {
  opacity: 0.06;
}

/* Diagonal lines pattern - dynamic, energetic */
.tempo-decor-diagonal {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background: repeating-linear-gradient(
    -45deg,
    currentColor,
    currentColor 1px,
    transparent 1px,
    transparent 20px
  );
}

.dark .tempo-decor-diagonal {
  opacity: 0.05;
}

/* Grid pattern - structured, modern */
.tempo-decor-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image:
    linear-gradient(currentColor 1px, transparent 1px),
    linear-gradient(90deg, currentColor 1px, transparent 1px);
  background-size: 40px 40px;
}

.dark .tempo-decor-grid {
  opacity: 0.05;
}

/* Corner accent - geometric shape for corners */
.tempo-decor-corner {
  position: absolute;
  width: 200px;
  height: 200px;
  pointer-events: none;
}

.tempo-decor-corner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--color-primary-200), 0.3) 0%, transparent 70%);
  border-radius: 0 0 100% 0;
}

.tempo-decor-corner.top-left {
  top: 0;
  left: 0;
}

.tempo-decor-corner.top-right {
  top: 0;
  right: 0;
  transform: scaleX(-1);
}

.tempo-decor-corner.bottom-left {
  bottom: 0;
  left: 0;
  transform: scaleY(-1);
}

.tempo-decor-corner.bottom-right {
  bottom: 0;
  right: 0;
  transform: scale(-1);
}

.dark .tempo-decor-corner::before {
  background: linear-gradient(135deg, rgba(var(--color-primary-800), 0.2) 0%, transparent 70%);
}

/* Abstract blob shape - playful accent */
.tempo-decor-blob {
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
  background: radial-gradient(ellipse, rgba(var(--color-primary-300), 1) 0%, transparent 70%);
  filter: blur(40px);
  border-radius: 50%;
}

.dark .tempo-decor-blob {
  background: radial-gradient(ellipse, rgba(var(--color-primary-700), 0.5) 0%, transparent 70%);
}

/* ======================================
   END TEMPO DECORATIVE ELEMENTS
   ====================================== */

/* ======================================
   SLIDER/CAROUSEL UTILITIES
   Common patterns for slider components
   ====================================== */

/* Hide scrollbar for slider tracks */
.tempo-slider-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.tempo-slider-track::-webkit-scrollbar {
  display: none;
}

/* Slider pagination dots */
.tempo-slider-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: var(--tempo-gray-300);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tempo-slider-dot:hover {
  background-color: var(--tempo-gray-400);
}

.tempo-slider-dot.active {
  background-color: rgb(var(--color-primary-500));
  width: 2rem;
}

.dark .tempo-slider-dot {
  background-color: var(--tempo-gray-600);
}

.dark .tempo-slider-dot:hover {
  background-color: var(--tempo-gray-500);
}

.dark .tempo-slider-dot.active {
  background-color: rgb(var(--color-primary-400));
}

/* Slider navigation arrows */
.tempo-slider-nav {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: white;
  border: 1px solid var(--tempo-gray-200);
  color: var(--tempo-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tempo-slider-nav:hover {
  background-color: rgb(var(--color-primary-50));
  border-color: rgb(var(--color-primary-300));
  color: rgb(var(--color-primary-600));
}

.tempo-slider-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.dark .tempo-slider-nav {
  background-color: var(--tempo-gray-800);
  border-color: var(--tempo-gray-700);
  color: var(--tempo-gray-400);
}

.dark .tempo-slider-nav:hover:not(:disabled) {
  background-color: rgba(var(--color-primary-900), 0.3);
  border-color: rgb(var(--color-primary-700));
  color: rgb(var(--color-primary-400));
}

/* Billing toggle utility (for pricing blocks) */
.tempo-billing-toggle[aria-checked="true"] .tempo-toggle-knob {
  transform: translateX(28px);
}

.tempo-billing-toggle[aria-checked="false"] .tempo-toggle-knob {
  transform: translateX(0);
}

/* ======================================
   END SLIDER/CAROUSEL UTILITIES
   ====================================== */