/* Modern Wikiunemi - Contemporary Wikipedia Style */

/* CSS Variables for modern design system */
:root {
  /* Color Palette */
  --primary-color: #0066cc;
  --primary-hover: #0052a3;
  --secondary-color: #f8f9fa;
  --accent-color: #e3f2fd;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #80868b;
  --border-color: #dadce0;
  --border-light: #f1f3f4;
  --background-primary: #ffffff;
  --background-secondary: #f8f9fa;
  --background-tertiary: #f1f3f4;
  --success-color: #34a853;
  --warning-color: #fbbc04;
  --error-color: #ea4335;
  
  /* Typography */
  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family-serif: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  
  /* 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.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;
}

/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-primary);
  overflow-x: hidden;
}

/* Layout */
.wiki-layout {
  display: grid;
  grid-template-areas: 
    "header header"
    "sidebar main";
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  background: var(--background-primary);
  box-shadow: var(--shadow-lg);
}

/* Modern Header */
.wiki-header {
  grid-area: header;
  background: var(--background-primary);
  border-bottom: 1px solid var(--border-color);
  padding: var(--spacing-lg) var(--spacing-xl);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.unemi-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.unemi-logo:hover {
  transform: scale(1.05);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.wiki-logo {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.2;
}

.wiki-tagline {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 400;
  margin: 0;
}

.wiki-top-nav {
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
  background: var(--accent-color);
}

.nav-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Modern Sidebar */
.wiki-sidebar {
  grid-area: sidebar;
  background: var(--background-secondary);
  border-right: 1px solid var(--border-color);
  padding: var(--spacing-xl);
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: calc(100vh - 80px);
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.sidebar-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-color);
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 400;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: block;
  line-height: 1.4;
}

.nav-item:hover {
  color: var(--primary-color);
  background: var(--accent-color);
  transform: translateX(4px);
}

.nav-item:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Main Content */
.wiki-content {
  grid-area: main;
  padding: var(--spacing-2xl) var(--spacing-3xl);
  background: var(--background-primary);
  max-width: 900px;
}

.wiki-article {
  max-width: 100%;
}

/* Article Header */
.article-header {
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border-color);
}

.article-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-md) 0;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.article-subtitle {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  font-style: italic;
}

.article-actions {
  display: flex;
  gap: var(--spacing-sm);
}

.action-btn {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--spacing-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.action-btn:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.action-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Theme Toggle Button */
.theme-toggle {
  position: relative;
  overflow: hidden;
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  transition: all var(--transition-normal);
}

.theme-toggle .moon-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* Light mode (default) */
:root {
  --theme-toggle-bg: var(--background-secondary);
  --theme-toggle-color: var(--text-secondary);
}

/* Dark mode */
[data-theme="dark"] {
  --theme-toggle-bg: var(--background-secondary);
  --theme-toggle-color: var(--text-secondary);
}

[data-theme="dark"] .theme-toggle .sun-icon {
  transform: translate(-50%, -50%) rotate(-90deg);
  opacity: 0;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 1;
}

/* Light mode */
[data-theme="light"] .theme-toggle .sun-icon {
  transform: translate(-50%, -50%) rotate(0deg);
  opacity: 1;
}

[data-theme="light"] .theme-toggle .moon-icon {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* Theme toggle animation */
.theme-toggle.theme-changed {
  animation: themePulse 0.3s ease-in-out;
}

@keyframes themePulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Smooth theme transition */
* {
  transition: background-color var(--transition-normal), 
              color var(--transition-normal), 
              border-color var(--transition-normal);
}

/* Sections */
.wiki-section {
  margin-bottom: var(--spacing-3xl);
}

.section-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-3xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-xl) 0;
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-color);
  line-height: 1.3;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.subsection-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--spacing-xl) 0 var(--spacing-md) 0;
  line-height: 1.4;
}

/* Typography */
.lead-paragraph {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  color: var(--text-primary);
  font-weight: 400;
  margin-bottom: var(--spacing-lg);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
  color: var(--text-primary);
}

/* Modern Infobox */
.modern-infobox {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-xl);
  float: right;
  width: 300px;
  margin-left: var(--spacing-xl);
}

.infobox-header {
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-lg);
  text-align: center;
}

.infobox-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.infobox-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.infobox-subtitle {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.infobox-content {
  padding: var(--spacing-lg);
}

.infobox-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: var(--spacing-sm) 0;
  border-bottom: 1px solid var(--border-light);
}

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

.infobox-label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 120px;
  margin-right: var(--spacing-md);
}

.infobox-value {
  color: var(--text-secondary);
  text-align: right;
  flex: 1;
}

/* Content with Image */
.content-with-image {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-xl);
  align-items: start;
  margin-bottom: var(--spacing-xl);
}

.content-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: contain;
  background: var(--background-secondary);
}

.content-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* Hero Image */
.hero-image-container {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.hero-image {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: contain;
  background: var(--background-secondary);
}

/* Modern Lists */
.modern-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
}

.modern-list li {
  position: relative;
  padding-left: var(--spacing-xl);
  line-height: 1.6;
}

.modern-list li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Modern Quote */
.modern-quote {
  background: var(--accent-color);
  border-left: 4px solid var(--primary-color);
  padding: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-style: italic;
  position: relative;
}

.modern-quote p {
  font-size: var(--font-size-lg);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.modern-quote cite {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-style: normal;
  display: block;
}

/* Modern Gallery */
.modern-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
}

.gallery-image {
  width: 100%;
  height: auto;
  min-height: 200px;
  max-height: 300px;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal);
  background: var(--background-secondary);
}

.gallery-image:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Estilos específicos para imágenes de Florence Nightingale */
.gallery-image[src*="florence"] {
  object-position: center top;
  background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-tertiary) 100%);
}

.content-image[src*="florence"] {
  object-position: center;
  background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-tertiary) 100%);
}

/* Modern Table */
.modern-table-container {
  overflow-x: auto;
  margin: var(--spacing-xl) 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--background-primary);
  font-size: var(--font-size-sm);
}

.modern-table th {
  background: var(--background-secondary);
  color: var(--text-primary);
  font-weight: 600;
  padding: var(--spacing-lg);
  text-align: left;
  border-bottom: 2px solid var(--border-color);
}

.modern-table td {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
  line-height: 1.5;
}

.modern-table tr:hover {
  background: var(--background-tertiary);
}

/* Modern Video */
.modern-video-container {
  background: var(--background-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.modern-video {
  width: 100%;
  max-width: 560px;
  height: 315px;
  border: none;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
}

.video-caption {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-style: italic;
}

/* Modern Form */
.modern-form-container {
  background: var(--background-secondary);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
  box-shadow: var(--shadow-md);
}

.form-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.form-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.form-description {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.modern-form {
  width: 100%;
  max-width: 640px;
  height: 800px;
  border: none;
  border-radius: var(--radius-md);
  margin: 0 auto;
  display: block;
}

/* Modern References */
.modern-references {
  list-style: none;
  counter-reset: reference-counter;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

.modern-references li {
  counter-increment: reference-counter;
  position: relative;
  padding-left: var(--spacing-xl);
  line-height: 1.6;
}

.modern-references li::before {
  content: counter(reference-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-color);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: 600;
}

/* Achievements Grid */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
  margin: var(--spacing-xl) 0;
}

.achievement-card {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.achievement-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.achievement-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-color);
}

/* Modern Footer */
.wiki-footer {
  grid-area: footer;
  background: var(--background-secondary);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-2xl) var(--spacing-xl);
  margin-top: var(--spacing-3xl);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  align-items: start;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-title {
  font-family: var(--font-family-serif);
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.footer-description {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  margin: 0;
}

.footer-info {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .wiki-layout {
    grid-template-columns: 250px 1fr;
  }
  
  .wiki-content {
    padding: var(--spacing-xl) var(--spacing-2xl);
  }
  
  .modern-infobox {
    width: 280px;
  }
}

@media (max-width: 900px) {
  .wiki-layout {
    grid-template-areas: 
      "header"
      "main";
    grid-template-columns: 1fr;
  }
  
  .wiki-sidebar {
    display: none;
  }
  
  .wiki-content {
    padding: var(--spacing-lg) var(--spacing-xl);
  }
  
  .modern-infobox {
    float: none;
    width: 100%;
    margin: var(--spacing-lg) 0;
  }
  
  .content-with-image {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .achievements-grid {
    grid-template-columns: 1fr;
  }
  
  .modern-gallery {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .gallery-image {
    min-height: 150px;
    max-height: 250px;
  }
}

@media (max-width: 600px) {
  .header-content {
    flex-direction: column;
    gap: var(--spacing-lg);
    text-align: center;
  }
  
  .logo-container {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .unemi-logo {
    width: 50px;
    height: 50px;
  }
  
  .wiki-top-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .article-title {
    font-size: var(--font-size-3xl);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .modern-table {
    font-size: var(--font-size-xs);
  }
  
  .modern-table th,
  .modern-table td {
    padding: var(--spacing-md);
  }
  
  .modern-video {
    height: 200px;
  }
  
  .modern-form {
    height: 600px;
  }
}

@media (max-width: 480px) {
  .wiki-header {
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  .wiki-content {
    padding: var(--spacing-md) var(--spacing-lg);
  }
  
  .article-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .modern-gallery {
    grid-template-columns: 1fr;
  }
  
  .gallery-image {
    min-height: 120px;
    max-height: 200px;
  }
  
  .modern-video {
    height: 180px;
  }
  
  .modern-form {
    height: 500px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --background-primary: #1a1a1a;
    --background-secondary: #2d2d2d;
    --background-tertiary: #333333;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --text-muted: #80868b;
    --border-color: #3c4043;
    --border-light: #5f6368;
    --accent-color: #1e3a5f;
  }
  
  :root:not([data-theme]) .wiki-header {
    background: rgba(26, 26, 26, 0.95);
  }
}

/* Manual Dark Mode */
[data-theme="dark"] {
  --background-primary: #1a1a1a;
  --background-secondary: #2d2d2d;
  --background-tertiary: #333333;
  --text-primary: #e8eaed;
  --text-secondary: #9aa0a6;
  --text-muted: #80868b;
  --border-color: #3c4043;
  --border-light: #5f6368;
  --accent-color: #1e3a5f;
}

[data-theme="dark"] .wiki-header {
  background: rgba(26, 26, 26, 0.95);
}

/* Manual Light Mode */
[data-theme="light"] {
  --background-primary: #ffffff;
  --background-secondary: #f8f9fa;
  --background-tertiary: #f1f3f4;
  --text-primary: #202124;
  --text-secondary: #5f6368;
  --text-muted: #80868b;
  --border-color: #dadce0;
  --border-light: #f1f3f4;
  --accent-color: #e3f2fd;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
  
  .gallery-image:hover {
    transform: none;
  }
  
  .achievement-card:hover {
    transform: none;
  }
}

/* Focus styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .wiki-header,
  .wiki-sidebar,
  .article-actions,
  .modern-video-container,
  .modern-form-container {
    display: none;
  }
  
  .wiki-layout {
    grid-template-areas: "main";
    grid-template-columns: 1fr;
    box-shadow: none;
  }
  
  .wiki-content {
    padding: 0;
  }
  
  .modern-infobox {
    float: none;
    width: 100%;
    margin: var(--spacing-lg) 0;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-secondary: #000000;
  }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
  .nav-item {
    padding: var(--spacing-md) var(--spacing-lg);
    min-height: 44px;
  }
  
  .action-btn {
    padding: var(--spacing-md);
    min-height: 44px;
    min-width: 44px;
  }
  
  .gallery-image:hover {
    transform: none;
  }
  
  .achievement-card:hover {
    transform: none;
  }
}