/* 
 * Elevate Life Wheel - Complete Plugin Styles
 * Version: 1.0.0
 * Follows all brand guidelines and design requirements
 * NO EMOJIS - Text-based elegant design only
 */

/* =================================================================
   CSS VARIABLES - BRAND TOOLKIT
================================================================= */
:root {
  /* Base Colors */
  --base-1: #FAFAF5;     /* Ivory - Main background */
  --base-2: #FFFFFF;     /* White - Card backgrounds */
  
  /* Contrast Colors */
  --contrast-1: #0c4b3a; /* Deep Green - Headers, primary */
  --contrast-2: #333333; /* Charcoal - Body text */
  --contrast-3: #000000; /* Black - High contrast only */
  
  /* Accent Colors */
  --accent-1: #c8a941;   /* Gold - Primary accent, buttons */
  --accent-2: #b8983a;   /* Darker Gold - Hover states */
  --accent-3: #0c4b3a;   /* Deep Green - Duplicate */
  --accent-4: #e0e0e0;   /* Light Gray - Borders */
  --accent-5: #f0f0f0;   /* Very Light Gray - Subtle backgrounds */
  
  /* Typography Scale */
  --title-hero: 3.5rem;  /* Hero titles */
  --title-lg: 2.5rem;    /* Section headers */
  --title-md: 2rem;      /* Subsection headers */
  --title-sm: 1.5rem;    /* Card titles */
  --body-lg: 1.125rem;   /* Lead paragraphs */
  --body-md: 1rem;       /* Regular body */
  --body-sm: 0.875rem;   /* Secondary text */
  --accent-text: 1.25rem;/* Highlighted content */
  
  /* Typography Stacks */
  --font-primary: 'Cormorant SC', serif;
  --font-secondary: 'Cormorant', serif;
  --font-body: 'Montserrat', sans-serif;
  --font-accent: 'Playfair Display', serif;
  
  /* Spacing Scale */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  --spacing-xxxl: 4rem;
  
  /* Layout & Effects */
  --border-radius: 8px;
  --border-radius-lg: 16px;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-gold: 0 4px 16px rgba(200, 169, 65, 0.15);
  --transition-fast: all 0.2s ease;
  --transition-standard: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* =================================================================
   RESET & BASE STYLES
================================================================= */

/* Force override Twenty Twenty-Four theme */
body.wheel-template,
.wheel-body,
.wheel-container * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.wheel-body {
  font-family: var(--font-body);
  background: var(--base-1);
  color: var(--contrast-2);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove all default WordPress theme styles that interfere */
.wheel-container {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* =================================================================
   TYPOGRAPHY
================================================================= */

h1, .page-title {
  font-family: var(--font-primary);
  color: var(--contrast-1);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  font-size: 2rem; /* Fixed from var(--title-lg) */
}

h2, .section-title {
  font-family: var(--font-secondary);
  color: var(--contrast-1);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--spacing-lg);
  font-size: 1.75rem; /* Fixed from var(--title-md) */
}

h3, .subsection-title {
  font-family: var(--font-secondary);
  color: var(--contrast-1);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem; /* Fixed from var(--title-sm) */
}

p, .body-text {
  font-family: var(--font-body);
  color: var(--contrast-2);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  font-size: var(--body-md);
}

/* Break up long text with highlighted sections */
.text-highlight {
  background: linear-gradient(135deg, var(--accent-5) 0%, rgba(200, 169, 65, 0.1) 100%);
  padding: var(--spacing-lg);
  border-left: 4px solid var(--accent-1);
  margin: var(--spacing-xl) 0;
  border-radius: var(--border-radius);
}

.accent-quote {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--contrast-1);
  font-size: var(--accent-text);
  line-height: 1.5;
  margin: var(--spacing-xl) 0;
  padding: var(--spacing-lg);
  border-left: 3px solid var(--accent-1);
  background: rgba(200, 169, 65, 0.05);
  border-radius: var(--border-radius);
}

.key-message {
  font-family: var(--font-accent);
  color: var(--contrast-1);
  font-size: var(--body-lg);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin: var(--spacing-lg) 0;
}

/* =================================================================
   LAYOUT STRUCTURE - UPDATED: REMOVED GRID CONFLICT
================================================================= */

.wheel-container {
  /* REMOVED grid layout - templates handle their own positioning */
  min-height: 100vh !important;
  background: var(--base-1) !important;
  /* Let templates decide margin/padding based on navigation presence */
}

/* Updated: No grid needed since navigation is handled separately */
.wheel-container > .wheel-main {
  /* Remove grid positioning - let it flow naturally */
  width: 100%;
}

.wheel-header {
  background: var(--base-2);
  padding: var(--spacing-xxl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.wheel-main {
  background: transparent; /* Changed from var(--base-2) to avoid double backgrounds */
  border-radius: var(--border-radius-lg);
  padding: 0; /* Removed padding since it's handled by inner containers */
  box-shadow: none; /* Removed shadow to clean up appearance */
  min-height: calc(100vh - 200px);
}

/* Keep these utility grids for other uses */
.wheel-grid {
  display: grid;
  gap: var(--spacing-xl);
}
.grid-2 {
  grid-template-columns: 1fr 1fr;
}
.grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* =================================================================
   NAVIGATION SIDEBAR - REMOVED (Now handled by wheel-navigation.css)
   The navigation is now in a separate CSS file with wln- prefix
================================================================= */

/* =================================================================
   CARDS - ELEGANT WITH PROPER HOVER EFFECTS
================================================================= */

.wheel-card {
  background: var(--base-2);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-light);
  transition: var(--transition-standard);
  position: relative;
  overflow: hidden;
}

/* Card hover - background gets LIGHTER */
.wheel-card:hover {
  background: linear-gradient(135deg, var(--base-2) 0%, rgba(250, 250, 245, 0.6) 100%);
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium), var(--shadow-gold);
}

/* Card color variants */
.card-ivory {
  background: var(--base-1);
  border-left: 5px solid var(--accent-1);
}

.card-ivory:hover {
  background: linear-gradient(135deg, var(--base-1) 0%, var(--base-2) 100%);
}

.card-green {
  background: var(--contrast-1);
  color: var(--base-1);
}

.card-green * {
  color: var(--base-1);
}

.card-green:hover {
  background: linear-gradient(135deg, var(--contrast-1) 0%, rgba(12, 75, 58, 0.9) 100%);
}

.card-gold {
  background: var(--accent-1);
  color: var(--base-2);
}

.card-gold * {
  color: var(--base-2);
}

.card-gold:hover {
  background: linear-gradient(135deg, var(--accent-1) 0%, rgba(200, 169, 65, 0.9) 100%);
}

/* Card content styling */
.card-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--accent-1);
}

.card-title {
  font-family: var(--font-secondary);
  font-size: var(--title-sm);
  color: var(--contrast-1);
  margin-bottom: var(--spacing-sm);
}

/* Break up text in cards */
.card-content p:nth-child(3n) {
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--accent-5);
}

.card-highlight {
  background: rgba(200, 169, 65, 0.1);
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  margin: var(--spacing-lg) 0;
  border-left: 3px solid var(--accent-1);
}

/* =================================================================
   BUTTONS
================================================================= */

.wheel-button,
.btn-primary {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--accent-1);
  color: var(--base-2);
  border: none;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--body-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-standard);
  box-shadow: var(--shadow-light);
}

.wheel-button:hover,
.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
  color: var(--base-2);
}

.btn-secondary {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  background: transparent;
  color: var(--contrast-1);
  border: 2px solid var(--contrast-1);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--body-md);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-standard);
}

.btn-secondary:hover {
  background: var(--contrast-1);
  color: var(--base-1);
  transform: translateY(-2px);
  text-decoration: none;
}

/* =================================================================
   FORMS
================================================================= */

.form-group {
  margin-bottom: var(--spacing-xl);
}

.form-label {
  display: block;
  font-family: var(--font-secondary);
  font-weight: 600;
  color: var(--contrast-1);
  margin-bottom: var(--spacing-sm);
  font-size: var(--body-lg);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--accent-4);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: var(--body-md);
  color: var(--contrast-2);
  background: var(--base-2);
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(200, 169, 65, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Star rating */
.wheel-star-rating {
  display: flex;
  gap: var(--spacing-sm);
  font-size: 1.5rem;
  margin: var(--spacing-md) 0;
}

.wheel-star-rating .star {
  cursor: pointer;
  color: var(--accent-4);
  transition: var(--transition-fast);
  display: inline-block;
}

.wheel-star-rating .star:hover,
.wheel-star-rating .star.active {
  color: var(--accent-1);
  transform: scale(1.1);
}

/* =================================================================
   WHEEL VISUALIZATION
================================================================= */

.wheel-visualization {
  background: var(--base-2);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-xxl);
  box-shadow: var(--shadow-medium);
  text-align: center;
  margin: var(--spacing-xl) 0;
}

.wheel-canvas-container {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

#wheelCanvas {
  width: 100%;
  height: auto;
}

.wheel-legend {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--accent-4);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--body-sm);
  color: var(--contrast-2);
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

/* =================================================================
   DASHBOARD SPECIFIC
================================================================= */

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-xl);
}

.progress-card {
  background: var(--base-2);
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-light);
}

.progress-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--accent-5);
}

.progress-item:last-child {
  border-bottom: none;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--accent-5);
  border-radius: 4px;
  overflow: hidden;
  margin-top: var(--spacing-sm);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1) 0%, var(--accent-2) 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* =================================================================
   UTILITIES
================================================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.hidden { display: none; }
.invisible { visibility: hidden; }

/* =================================================================
   RESPONSIVE DESIGN
================================================================= */

@media (max-width: 1024px) {
  h1, .page-title {
    font-size: 2rem;
  }
  
  h2, .section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  /* Main container adjustments for mobile */
  .wheel-container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    top: 0 !important;
  }
  
  /* Account for WordPress admin bar in layout */
  body.admin-bar .wheel-container {
    margin-top: 46px !important; /* Height of WP mobile admin bar */
  }
  
  /* Main content adjustments - PROPERLY ALIGNED */
  .wheel-main {
    padding: 2rem 1rem !important;
    margin: 0 auto !important;
    border-radius: 0 !important;
    min-height: calc(100vh - 46px) !important;
    width: 100% !important;
    max-width: 100% !important;
    background: var(--base-2) !important;
    box-sizing: border-box !important;
    position: relative !important;
  }
  
  /* No extra padding when admin bar present - margin handles it */
  body.admin-bar .wheel-main {
    min-height: calc(100vh - 92px) !important; /* 46px bar + 46px margin */
  }
  
  /* Center all text content on mobile */
  .wheel-main .page-title,
  .wheel-main .welcome-subtitle,
  .wheel-main .gold-divider {
    text-align: center !important;
  }
  
  /* MOBILE FIX: Grid layout for exercise content */
  .exercise-content-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  
  /* MOBILE FIX: Floating instructions positioning */
  .floating-instructions {
    position: relative !important;
    top: auto !important;
    margin-top: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  /* MOBILE FIX: Cards with proper padding */
  .wheel-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 1.5rem !important; /* Reduced padding for mobile */
  }
  
  /* MOBILE FIX: Exercise header */
  .exercise-header {
    padding: 1rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .exercise-title {
    font-size: 1.8rem !important;
  }
  
  .area-title {
    font-size: 1.5rem !important;
  }
  
  /* MOBILE FIX: Form elements */
  .form-textarea {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* MOBILE FIX: Navigation buttons */
  .nav-buttons {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .btn-primary, .btn-secondary {
    width: 100% !important;
    text-align: center !important;
  }
  
  .page-title {
    margin-top: 1rem !important;
    padding-top: 0 !important;
    text-align: center !important;
    font-size: 1.8rem !important;
  }
  
  /* Ensure all content sections use full width minus padding */
  .wheel-main > * {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .dashboard-grid,
  .wheel-grid.grid-2 {
    grid-template-columns: 1fr;
  }
  
  /* MOBILE FIX: Rating stars */
  .rating-stars {
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }
  
  .star-button {
    width: 40px !important;
    height: 40px !important;
  }
  
  /* MOBILE FIX: Feels containers */
  .feels-box {
    padding: 1.25rem !important;
  }
  
  .feels-label {
    font-size: 1.1rem !important;
  }
}

@media (max-width: 480px) {
  :root {
    --title-hero: 2.5rem;
    --title-lg: 2rem;
    --title-md: 1.75rem;
    --title-sm: 1.25rem;
  }
  
  .wheel-card {
    padding: var(--spacing-lg);
  }
  
  .wheel-button,
  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
  
  /* MOBILE FIX: Even smaller stars on very small screens */
  .star-button {
    width: 36px !important;
    height: 36px !important;
  }
  
  /* MOBILE FIX: Smaller text for small screens */
  .exercise-title {
    font-size: 1.5rem !important;
  }
  
  .area-title {
    font-size: 1.25rem !important;
  }
  
  .card-title {
    font-size: 1.15rem !important;
  }
}

/* =================================================================
   PRINT STYLES
================================================================= */

@media print {
  .wheel-sidebar,
  .wheel-button,
  .btn-primary,
  .btn-secondary {
    display: none !important;
  }
  
  .wheel-container {
    padding: 0;
  }
  
  .wheel-main {
    box-shadow: none;
    padding: 20px;
  }
  
  .wheel-card {
    page-break-inside: avoid;
    box-shadow: none;
    border: 1px solid var(--accent-4);
  }
}

/* =================================================================
   ANIMATIONS
================================================================= */

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-slide-in {
  animation: slideInLeft 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* =================================================================
   ACCESSIBILITY
================================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 3px solid var(--accent-1);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .wheel-card {
    border: 2px solid var(--contrast-1);
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    border-width: 3px;
  }
}

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

/* Dark mode preparation (future enhancement) */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles would go here */
}

/* =================================================================
   END OF STYLESHEET
================================================================= */