MediaWiki:Common.css: Difference between revisions

From CoraTO Wiki - Official Wiki
Jump to navigation Jump to search
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
/* MainPage2 responsive styles - Vector Legacy friendly, pink theme */
/* ========================================
  CORA TO WIKI - PINK THEME SYSTEM
  Designed for Vector Legacy 2010
  Responsive, Modern, Elegant Design
  ======================================== */
 
/* MAIN THEME VARIABLES */
:root {
:root {
   --pink-50: #fff0f6;
   /* BRAND COLORS - Pink Palette */
   --pink-100: #ffd9e9;
  --primary-pink: #ff6b9d;
   --pink-200: #ffb3cf;
  --secondary-pink: #ffc3e0;
   --pink-300: #ff8cb6;
   --accent-pink: #ff8fb0;
   --pink-400: #ff6fa3;
  --light-pink: #fff0f7;
   --pink-500: #ff4f91;
   --dark-pink: #d63384;
   --pink-600: #e93c81;
   --pink-gradient: linear-gradient(135deg, #ff6b9d 0%, #ffc3e0 100%);
   --pink-700: #d02f72;
   --pink-glass: rgba(255, 107, 157, 0.15);
   --pink-800: #b32561;
   --pink-shadow: rgba(255, 107, 157, 0.3);
   --pink-900: #8d1c4b;
   --pink-border: rgba(255, 107, 157, 0.2);
   --ink-900: #222;
 
   --ink-700: #444;
  /* NEUTRAL COLORS */
   --ink-500: #666;
  --text-primary: #2d2d2d;
   --surface: #ffffff;
   --text-secondary: #666666;
   --border: rgba(0,0,0,0.08);
   --text-muted: #999999;
   --shadow: 0 6px 24px rgba(255, 79, 145, 0.18);
   --background-primary: #ffffff;
   --radius-lg: 20px;
   --background-secondary: #fafafa;
   --radius-md: 14px;
   --background-tertiary: #f5f5f5;
   --radius-sm: 10px;
   --border-color: #e0e0e0;
   --container-max: 1200px;
   --border-light: #f0f0f0;
 
  /* LAYOUT VARIABLES */
  --sidebar-width: 220px;
  --content-margin: calc(var(--sidebar-width) + 20px);
  --border-radius: 12px;
   --border-radius-small: 8px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
 
  /* SHADOWS AND EFFECTS */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
   --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
   --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-pink: 0 4px 20px var(--pink-shadow);
   --shadow-pink-hover: 0 8px 30px var(--pink-shadow);
   --blur-glass: blur(10px);
    
  /* TRANSITIONS */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}
 
/* GLOBAL BASE STYLES */
* {
  box-sizing: border-box;
}
}


* { box-sizing: border-box; }
html, body { height: 100%; }
body {
body {
  margin: 0;
   font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6 !important;
   color: var(--ink-900);
   color: var(--text-primary) !important;
   background: linear-gradient(135deg, var(--pink-50), var(--pink-100) 40%, var(--pink-200));
   background: var(--pink-gradient) !important;
  background-attachment: fixed !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
}
}


.mw-page-scope { padding: 16px; }
/* MAIN CONTENT CONTAINER */
body.skin-vector-legacy #content,
body.skin-vector-legacy .mw-body {
  background: var(--background-primary) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow-medium) !important;
  /* Removed margin-left to avoid conflicts; handled in cora-sidebar-vector.css */
  margin-top: var(--spacing-lg) !important;
  margin-bottom: var(--spacing-lg) !important;
  margin-right: var(--spacing-lg) !important;
  padding: var(--spacing-xl) !important;
  position: relative !important;
  backdrop-filter: var(--blur-glass) !important;
  overflow: visible !important;
}


/* Utility banner (keeps MediaWiki file syntax intact) */
#content::before,
.utility-banner { position: relative; min-height: 48px; }
.mw-body::before {
.utility-banner > * { position: absolute; top: 0; right: 8px; }
  content: '' !important;
  position: absolute !important;
  top: -1px !important;
  left: -1px !important;
  right: -1px !important;
  bottom: -1px !important;
  background: var(--pink-gradient) !important;
  border-radius: var(--border-radius) !important;
  z-index: -1 !important;
  opacity: 0.1 !important;
}


/* Hero */
/* HEADINGS STYLE */
.hero {
h1, h2, h3, h4, h5, h6 {
  background: rgba(255,255,255,0.85);
   color: var(--primary-pink) !important;
  border: 2px solid rgba(255, 111, 163, 0.18);
   font-weight: 700 !important;
   border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md) !important;
   max-width: var(--container-max);
   margin-top: var(--spacing-lg) !important;
   margin: 0 auto 16px auto;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
}
.hero-inner { padding: clamp(18px, 3vw, 36px); text-align: center; }
 
.hero-title {
h1 {
  margin: 8px 0 4px 0;
   background: var(--pink-gradient) !important;
  font-size: clamp(22px, 4vw, 36px);
   -webkit-background-clip: text !important;
  font-weight: 800;
  -webkit-text-fill-color: transparent !important;
   background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  background-clip: text !important;
   -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  font-size: 2.5em !important;
}
}
.hero-subtitle { color: var(--ink-500); font-size: clamp(14px, 2.2vw, 18px); }
 
.status-pill {
/* LINKS */
   display: inline-block; margin-top: 10px; padding: 8px 14px; border-radius: 999px; font-weight: 700;
a {
   color: #fff; background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: var(--primary-pink) !important;
   text-decoration: none !important;
   transition: var(--transition-normal) !important;
}
}


/* Tabs */
a:hover {
.nav-tabs {
   color: var(--dark-pink) !important;
   display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center;
   text-decoration: underline !important;
  background: rgba(255,255,255,0.9);
  border: 2px solid rgba(255, 111, 163, 0.18);
  border-radius: var(--radius-lg);
  max-width: var(--container-max);
   margin: 0 auto 16px auto; padding: 8px;
  box-shadow: var(--shadow);
}
}
.nav-tab {
 
   appearance: none; border: 0; cursor: pointer;
/* BUTTONS */
   padding: 12px 16px; border-radius: var(--radius-md); font-weight: 700;
.mw-ui-button,
   color: var(--ink-700); background: rgba(255,255,255,0.8);
.oo-ui-buttonElement-button,
   border: 2px solid transparent; min-width: 120px; flex: 1 1 160px;
button {
   transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
   background: var(--pink-gradient) !important;
  color: white !important;
  border: none !important;
   border-radius: var(--border-radius-small) !important;
   padding: var(--spacing-sm) var(--spacing-md) !important;
   font-weight: 600 !important;
  cursor: pointer !important;
   transition: var(--transition-normal) !important;
  box-shadow: var(--shadow-light) !important;
}
}
.nav-tab:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--pink-900); }
.nav-tab.active { background: linear-gradient(135deg, var(--pink-500), var(--pink-700)); color: #fff; }
.nav-tab .short-text { display: none; }


/* Content */
.mw-ui-button:hover,
.content { max-width: var(--container-max); margin: 0 auto; }
.oo-ui-buttonElement-button:hover,
.tab-content {
button:hover {
   display: none; background: rgba(255,255,255,0.98); border-radius: var(--radius-lg);
   transform: translateY(-2px) !important;
   border: 2px solid rgba(255, 111, 163, 0.18); box-shadow: var(--shadow);
   box-shadow: var(--shadow-pink-hover) !important;
  padding: clamp(16px, 3vw, 36px);
}
}
.tab-content.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }


.section-header { text-align: center; margin-bottom: clamp(12px, 2.5vw, 24px); }
/* TABLES */
.section-header h2 {
table.wikitable,
   margin: 0; font-size: clamp(20px, 3vw, 28px); color: var(--ink-900);
.mw-datatable {
   border-bottom: 2px solid var(--pink-500); display: inline-block; padding-bottom: 6px;
   background: var(--background-primary) !important;
  border: 1px solid var(--border-light) !important;
   border-radius: var(--border-radius-small) !important;
  box-shadow: var(--shadow-light) !important;
  overflow: hidden !important;
}
}
.section-lead { margin-top: 6px; color: var(--ink-500); font-size: clamp(13px, 2vw, 16px); }


/* Highlights */
table.wikitable th,
.highlights-grid {
.mw-datatable th {
   display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(10px, 2vw, 16px);
   background: var(--secondary-pink) !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  padding: var(--spacing-md) !important;
  border-bottom: 2px solid var(--primary-pink) !important;
}
}
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { text-align: center; padding-top: 6px; }
.card-body { padding: 10px 12px; }
.card-title { margin: 0; font-size: clamp(14px, 2.2vw, 18px); color: var(--ink-900); text-align: center; }


/* Info grid */
table.wikitable td,
.info-grid { display: grid; gap: clamp(10px, 2vw, 16px); grid-template-columns: repeat(3, 1fr); margin-top: clamp(12px, 2.5vw, 24px); }
.mw-datatable td {
.info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: clamp(12px, 2.5vw, 18px); }
  padding: var(--spacing-md) !important;
.inline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
  border-bottom: 1px solid var(--border-light) !important;
.inline-list li { white-space: nowrap; }
}


/* Table-like responsive columns */
table.wikitable tr:hover,
.wikitable-like { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.mw-datatable tr:hover {
.wikitable-like .column { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; }
  background: var(--light-pink) !important;
.wikitable-like ul { margin: 0; padding-left: 18px; }
}


/* Sidebar */
/* NOTE: Sidebar styling moved to cora-sidebar-vector.css to avoid conflicts */
.sidebar { margin-top: 16px; }
.sidebar-inner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow); }
.sidebar-title { margin: 0 0 8px 0; font-size: clamp(16px, 2.5vw, 20px); }
.sidebar-list { margin: 0; padding-left: 18px; }


/* Footer */
/* RESPONSIVE DESIGN */
.tab-footer { display: flex; justify-content: center; margin-top: clamp(12px, 2.5vw, 24px); }
@media screen and (max-width: 1200px) {
.back-to-top { display: inline-block; padding: 10px 16px; font-weight: 700; border-radius: 999px; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--pink-500), var(--pink-700)); }
  :root {
    --sidebar-width: 200px;
    --content-margin: 220px;
  }
}


/* Responsiveness */
@media screen and (max-width: 1024px) {
@media (max-width: 1200px) {
   :root {
   .highlights-grid { grid-template-columns: repeat(3, 1fr); }
    --sidebar-width: 180px;
    --content-margin: 200px;
  }
 
  body.skin-vector-legacy #content,
  body.skin-vector-legacy .mw-body {
    margin-right: var(--spacing-md) !important;
    padding: var(--spacing-lg) !important;
  }
}
}
@media (max-width: 900px) {
 
   .nav-tab { flex: 1 1 44%; min-width: 44%; }
@media screen and (max-width: 768px) {
   .highlights-grid { grid-template-columns: repeat(2, 1fr); }
   body.skin-vector-legacy #content,
   .info-grid { grid-template-columns: repeat(2, 1fr); }
  body.skin-vector-legacy .mw-body {
    /* Do not set margin-left at mobile; sidebar file controls it */
    margin-right: var(--spacing-md) !important;
    margin-top: var(--spacing-md) !important;
    padding: var(--spacing-lg) !important;
  }
}
 
@media screen and (max-width: 480px) {
  :root {
    --border-radius: 8px;
    --spacing-xl: 16px;
    --spacing-lg: 12px;
  }
    
  body.skin-vector-legacy #content,
  body.skin-vector-legacy .mw-body {
    /* Replace shorthand margin to avoid overriding left offset from sidebar */
    margin-top: var(--spacing-sm) !important;
    margin-right: var(--spacing-sm) !important;
    margin-bottom: var(--spacing-sm) !important;
    /* intentionally omit margin-left here */
    padding: var(--spacing-md) !important;
    border-radius: var(--border-radius-small) !important;
  }
 
  h1 {
    font-size: 1.8em !important;
  }
 
  /* Removed portal margin overrides to avoid leaking sidebar rules here */
  /* #mw-panel .portal, #mw-panel .vector-menu-portal { margin: 0 var(--spacing-sm) var(--spacing-md) !important; } */
}
 
/* ACCESSIBILITY IMPROVEMENTS */
@media (prefers-reduced-motion: reduce) {
   * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
 
@media (prefers-contrast: high) {
  :root {
    --primary-pink: #d63384;
    --text-primary: #000000;
    --border-color: #333333;
  }
}
}
@media (max-width: 600px) {
 
   .nav-tab { flex: 1 1 100%; min-width: 100%; }
/* PRINT STYLES */
   .nav-tab .full-text { display: none; }
@media print {
   .nav-tab .short-text { display: inline; }
  /* Hide chrome elements for print; scoped to Vector Legacy */
  .highlights-grid { grid-template-columns: 1fr; }
  body.skin-vector-legacy #mw-panel,
  .info-grid { grid-template-columns: 1fr; }
  body.skin-vector-legacy #mw-head,
   .wikitable-like { grid-template-columns: 1fr; }
  body.skin-vector-legacy .vector-menu-tabs,
  body.skin-vector-legacy #footer {
    display: none !important;
  }
 
  body.skin-vector-legacy #content,
   body.skin-vector-legacy .mw-body {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: white !important;
  }
 
  body { background: white !important; }
  * { color: black !important; }
}
 
/* ANIMATION KEYFRAMES */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
 
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
 
@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
   to {
    transform: translateX(0);
  }
}
 
/* UTILITY CLASSES */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}
 
.pulse {
  animation: pulse 2s infinite;
}
 
.glass-effect {
   background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: var(--blur-glass) !important;
  border: 1px solid var(--pink-border) !important;
}
 
.pink-gradient-text {
  background: var(--pink-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
 
/* SPECIAL ELEMENTS */
.mw-editsection {
  color: var(--accent-pink) !important;
  font-size: 0.8em !important;
}
 
.mw-headline {
  border-bottom: 2px solid var(--pink-border) !important;
  padding-bottom: var(--spacing-sm) !important;
}
 
/* FORM ELEMENTS */
input[type="text"],
input[type="search"],
textarea,
select {
  border: 2px solid var(--border-light) !important;
  border-radius: var(--border-radius-small) !important;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  font-family: inherit !important;
   transition: var(--transition-fast) !important;
}
 
input[type="text"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-pink) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2) !important;
}
}

Revision as of 03:03, 13 August 2025

/* ========================================
   CORA TO WIKI - PINK THEME SYSTEM 
   Designed for Vector Legacy 2010
   Responsive, Modern, Elegant Design
   ======================================== */

/* MAIN THEME VARIABLES */
:root {
  /* BRAND COLORS - Pink Palette */
  --primary-pink: #ff6b9d;
  --secondary-pink: #ffc3e0;
  --accent-pink: #ff8fb0;
  --light-pink: #fff0f7;
  --dark-pink: #d63384;
  --pink-gradient: linear-gradient(135deg, #ff6b9d 0%, #ffc3e0 100%);
  --pink-glass: rgba(255, 107, 157, 0.15);
  --pink-shadow: rgba(255, 107, 157, 0.3);
  --pink-border: rgba(255, 107, 157, 0.2);
  
  /* NEUTRAL COLORS */
  --text-primary: #2d2d2d;
  --text-secondary: #666666;
  --text-muted: #999999;
  --background-primary: #ffffff;
  --background-secondary: #fafafa;
  --background-tertiary: #f5f5f5;
  --border-color: #e0e0e0;
  --border-light: #f0f0f0;
  
  /* LAYOUT VARIABLES */
  --sidebar-width: 220px;
  --content-margin: calc(var(--sidebar-width) + 20px);
  --border-radius: 12px;
  --border-radius-small: 8px;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* SHADOWS AND EFFECTS */
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.15);
  --shadow-pink: 0 4px 20px var(--pink-shadow);
  --shadow-pink-hover: 0 8px 30px var(--pink-shadow);
  --blur-glass: blur(10px);
  
  /* TRANSITIONS */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* GLOBAL BASE STYLES */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
  line-height: 1.6 !important;
  color: var(--text-primary) !important;
  background: var(--pink-gradient) !important;
  background-attachment: fixed !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
}

/* MAIN CONTENT CONTAINER */
body.skin-vector-legacy #content,
body.skin-vector-legacy .mw-body {
  background: var(--background-primary) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--border-radius) !important;
  box-shadow: var(--shadow-medium) !important;
  /* Removed margin-left to avoid conflicts; handled in cora-sidebar-vector.css */
  margin-top: var(--spacing-lg) !important;
  margin-bottom: var(--spacing-lg) !important;
  margin-right: var(--spacing-lg) !important;
  padding: var(--spacing-xl) !important;
  position: relative !important;
  backdrop-filter: var(--blur-glass) !important;
  overflow: visible !important;
}

#content::before,
.mw-body::before {
  content: '' !important;
  position: absolute !important;
  top: -1px !important;
  left: -1px !important;
  right: -1px !important;
  bottom: -1px !important;
  background: var(--pink-gradient) !important;
  border-radius: var(--border-radius) !important;
  z-index: -1 !important;
  opacity: 0.1 !important;
}

/* HEADINGS STYLE */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-pink) !important;
  font-weight: 700 !important;
  margin-bottom: var(--spacing-md) !important;
  margin-top: var(--spacing-lg) !important;
}

h1 {
  background: var(--pink-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-size: 2.5em !important;
}

/* LINKS */
a {
  color: var(--primary-pink) !important;
  text-decoration: none !important;
  transition: var(--transition-normal) !important;
}

a:hover {
  color: var(--dark-pink) !important;
  text-decoration: underline !important;
}

/* BUTTONS */
.mw-ui-button,
.oo-ui-buttonElement-button,
button {
  background: var(--pink-gradient) !important;
  color: white !important;
  border: none !important;
  border-radius: var(--border-radius-small) !important;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--transition-normal) !important;
  box-shadow: var(--shadow-light) !important;
}

.mw-ui-button:hover,
.oo-ui-buttonElement-button:hover,
button:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-pink-hover) !important;
}

/* TABLES */
table.wikitable,
.mw-datatable {
  background: var(--background-primary) !important;
  border: 1px solid var(--border-light) !important;
  border-radius: var(--border-radius-small) !important;
  box-shadow: var(--shadow-light) !important;
  overflow: hidden !important;
}

table.wikitable th,
.mw-datatable th {
  background: var(--secondary-pink) !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  padding: var(--spacing-md) !important;
  border-bottom: 2px solid var(--primary-pink) !important;
}

table.wikitable td,
.mw-datatable td {
  padding: var(--spacing-md) !important;
  border-bottom: 1px solid var(--border-light) !important;
}

table.wikitable tr:hover,
.mw-datatable tr:hover {
  background: var(--light-pink) !important;
}

/* NOTE: Sidebar styling moved to cora-sidebar-vector.css to avoid conflicts */

/* RESPONSIVE DESIGN */
@media screen and (max-width: 1200px) {
  :root {
    --sidebar-width: 200px;
    --content-margin: 220px;
  }
}

@media screen and (max-width: 1024px) {
  :root {
    --sidebar-width: 180px;
    --content-margin: 200px;
  }
  
  body.skin-vector-legacy #content,
  body.skin-vector-legacy .mw-body {
    margin-right: var(--spacing-md) !important;
    padding: var(--spacing-lg) !important;
  }
}

@media screen and (max-width: 768px) {
  body.skin-vector-legacy #content,
  body.skin-vector-legacy .mw-body {
    /* Do not set margin-left at mobile; sidebar file controls it */
    margin-right: var(--spacing-md) !important;
    margin-top: var(--spacing-md) !important;
    padding: var(--spacing-lg) !important;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --border-radius: 8px;
    --spacing-xl: 16px;
    --spacing-lg: 12px;
  }
  
  body.skin-vector-legacy #content,
  body.skin-vector-legacy .mw-body {
    /* Replace shorthand margin to avoid overriding left offset from sidebar */
    margin-top: var(--spacing-sm) !important;
    margin-right: var(--spacing-sm) !important;
    margin-bottom: var(--spacing-sm) !important;
    /* intentionally omit margin-left here */
    padding: var(--spacing-md) !important;
    border-radius: var(--border-radius-small) !important;
  }
  
  h1 {
    font-size: 1.8em !important;
  }
  
  /* Removed portal margin overrides to avoid leaking sidebar rules here */
  /* #mw-panel .portal, #mw-panel .vector-menu-portal { margin: 0 var(--spacing-sm) var(--spacing-md) !important; } */
}

/* ACCESSIBILITY IMPROVEMENTS */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --primary-pink: #d63384;
    --text-primary: #000000;
    --border-color: #333333;
  }
}

/* PRINT STYLES */
@media print {
  /* Hide chrome elements for print; scoped to Vector Legacy */
  body.skin-vector-legacy #mw-panel,
  body.skin-vector-legacy #mw-head,
  body.skin-vector-legacy .vector-menu-tabs,
  body.skin-vector-legacy #footer {
    display: none !important;
  }
  
  body.skin-vector-legacy #content,
  body.skin-vector-legacy .mw-body {
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: white !important;
  }
  
  body { background: white !important; }
  * { color: black !important; }
}

/* ANIMATION KEYFRAMES */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

/* UTILITY CLASSES */
.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: var(--blur-glass) !important;
  border: 1px solid var(--pink-border) !important;
}

.pink-gradient-text {
  background: var(--pink-gradient) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* SPECIAL ELEMENTS */
.mw-editsection {
  color: var(--accent-pink) !important;
  font-size: 0.8em !important;
}

.mw-headline {
  border-bottom: 2px solid var(--pink-border) !important;
  padding-bottom: var(--spacing-sm) !important;
}

/* FORM ELEMENTS */
input[type="text"],
input[type="search"],
textarea,
select {
  border: 2px solid var(--border-light) !important;
  border-radius: var(--border-radius-small) !important;
  padding: var(--spacing-sm) var(--spacing-md) !important;
  font-family: inherit !important;
  transition: var(--transition-fast) !important;
}

input[type="text"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--primary-pink) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.2) !important;
}