/* ==========================================
   EXERCISE ARTICLE - PREMIUM STYLESHEET
   World-Class Design for Desktop & Mobile
   ========================================== */

/* ==========================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================== */

:root {
  /* Primary Colors */
  --primary-coral: #FF6B6B;
  --primary-blue: #4A90E2;
  --primary-purple: #9B59B6;
  --primary-green: #2ECC71;
  --primary-orange: #F39C12;
   --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
 
  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-card: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-warm: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --gradient-cool: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
  
  /* Neutral Colors */
  --color-white: #FFFFFF;
  --color-black: #1a1a1a;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;
  
  /* Semantic Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-error: #EF4444;
  --color-info: #3B82F6;
  
  /* Typography */
  --font-header: 'Montserrat', sans-serif;
  --font-body: Georgia, 'Poppins', sans-serif !important;
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout - REMOVED sidebar-width since sidebar is now in general-articles.css */
  --header-height: 70px;
  --max-content-width: 1400px;

  /* From unified style*/
    --text-muted: #64748b;
  --space-3xl: 4rem;
  --space-xl: 2rem;
  --radius-lg: 16px;
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --space-lg: 1.5rem;
  --space-2xl: 3rem;

}

/* ==========================================
   GLOBAL RESET & BASE STYLES
   ========================================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  line-height: 1.7 !important;
  color: var(--color-gray-800) !important;
  background: var(--color-gray-50) !important;
  overflow-x: hidden !important;
}

::selection {
  background: yellow;
  color: #1313bd;

}


.main-content {
  /* REMOVED: margin-left: var(--sidebar-width); */
  min-height: 100vh;
  background: var(--color-white);
  position: relative;
  width: 100%; /* Ensure full width */
}

/* ==========================================
   HERO SECTION - UPDATED FOR FULL WIDTH
   ========================================== */

.hero-section {
  position: relative;
  min-height: 500px;
  display: flex ;
  align-items: center ;
  justify-content: center ;
  background: url('/images/general-article.webp') center/cover no-repeat;
  overflow: hidden;
  padding: var(--spacing-3xl) var(--spacing-xl);
  width: 100%; /* Full width */
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px; /* Increased from 900px to match max-content-width */
  width: 100%; /* Full width within constraints */
  text-align: center;
  color: var(--color-white);
  padding: 0 var(--spacing-xl);
}

.article-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-family: var(--font-header);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  animation: fadeInUp 0.8s ease 0.2s both;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--spacing-2xl);
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.article-meta {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.meta-item {
  display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    font-weight: 500;

}

.meta-item i {
  opacity: 0.8;
}

/* ==========================================
   ARTICLE CONTENT - UPDATED FOR FULL WIDTH
   ========================================== */

.article-content {
  max-width: 1400px; /* Increased from 900px */
  width: 100%; /* Full width */
  margin: 0 auto; /* Center the content */
  padding: var(--spacing-3xl) var(--spacing-xl);
}


/* Lede Section */
.lede-section {
  margin-bottom: var(--spacing-3xl);
  text-align: center;
}

/* Content Sections */
.content-section {
  margin-bottom: var(--spacing-3xl);
}

.content-section h2 {
  font-family: var(--font-header);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-xl);
  padding-bottom: var(--spacing-md);
  border-bottom: 3px solid var(--primary-coral);
  display: inline-block;
}

/* Principle Cards */
.principle-card {
  background: rgba(233, 213, 176, 0.372);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  border-left: 4px solid var(--primary-coral);
  margin-bottom: var(--spacing-xl);
  transition: all var(--transition-base);
}

.principle-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.principle-card h3 {
  font-family: var(--font-header);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gray-800);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.function-icon {
  font-size: 1.75rem;
}

.principle-card p {
  color: var(--color-gray-700);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.principle-card p:last-child {
  margin-bottom: 0;
}

/* Warning Box */
.warning-box {
  background: linear-gradient(135deg, #FFF4E6 0%, #FFE8CC 100%);
  border-left: 4px solid var(--primary-orange);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) 0;
}

.warning-box p {
  color: var(--color-gray-800);
  margin: 0;
  font-weight: 500;
}

/* Callout Box */
.callout-box {
  background: rgba(134, 168, 136, 0.4);
  border-left: 4px solid var(--primary-green);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) 0;
}

.callout-box p {
  color: var(--color-gray-800);
  margin: 0;
  font-weight: 500;
}

/* Concept Box */
.concept-box {
  background: rgba(233, 213, 176, 0.372);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  margin: var(--spacing-lg) 0;
  border: 2px solid var(--primary-blue);
}

.concept-box h3 {
  font-family: var(--font-header);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin-bottom: var(--spacing-md);
}

.concept-box p {
  color: var(--color-gray-700);
  margin-bottom: var(--spacing-sm);
}

.concept-box p:last-child {
  margin-bottom: 0;
}

.concept-box ul {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0 0 0;
}

.concept-box li {
  padding-left: var(--spacing-xl);
  margin-bottom: var(--spacing-sm);
  position: relative;
  color: var(--color-gray-700);
}

.concept-box li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-green);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Highlight Box */
.highlight-box {
  background: rgba(168, 150, 180, 0.4);
  border-left: 4px solid var(--primary-purple);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin: var(--spacing-lg) 0;
}

.highlight-box p {
  color: var(--color-gray-800);
  margin: 0;
  font-weight: 500;
  font-style: italic;
}




/* ==========================================
   RESPONSIVE DESIGN - TABLET
   ========================================== */


/* ==========================================
   RESPONSIVE DESIGN - MOBILE
   ========================================== */

@media (max-width: 768px) {
  :root {
    --spacing-3xl: 2rem;
  }

    .lede {
    font-size: 1.125rem;
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
  }
    
  
  .content-section h2 {
    font-size: 1.5rem;
  }
  
  .principle-card {
    padding: var(--spacing-lg);
  }
  
  .principle-card h3 {
    font-size: 1.25rem;
  }
  
}


/* ==========================================
   UTILITY CLASSES
   ========================================== */


.text-center {
  text-align: center;
}

/* ==========================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--primary-coral);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

