انتقل إلى المحتوى

ميدياويكي:Common.css

من موسوعة زيارة الاربعين
مراجعة ١١:٣٠، ٢٠ يوليو ٢٠٢٥ بواسطة Admin (نقاش | مساهمات)

ملاحظة: بعد النشر، أنت قد تحتاج إلى إفراغ الكاش الخاص بمتصفحك لرؤية التغييرات.

  • فايرفوكس / سافاري: أمسك Shift أثناء ضغط Reload، أو اضغط على إما Ctrl-F5 أو Ctrl-R (⌘-R على ماك)
  • جوجل كروم: اضغط Ctrl-Shift-R (⌘-Shift-R على ماك)
  • إنترنت إكسبلورر/إيدج: أمسك Ctrl أثناء ضغط Refresh، أو اضغط Ctrl-F5
  • أوبرا: اضغط Ctrl-F5.
@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cairo:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #1a472a;
  --secondary-color: #2d5a3d;
  --tertiary-color: #4a7c59;
  --accent-gold: #c9a961;
  --accent-green: #5d8f47;
  --accent-bright: #7fb069;
  --background-white: #fefefe;
  --background-cream: #faf9f7;
  --text-dark: #2c2c2c;
  --text-muted: #666666;
  --border-elegant: #e8e5e0;
  --border-gold: #d4b76a;
  --shadow-subtle: 0 2px 12px rgba(26, 71, 42, 0.1);
  --shadow-elevated: 0 6px 24px rgba(26, 71, 42, 0.15);
  --shadow-glow: 0 0 20px rgba(201, 169, 97, 0.3);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --serif-font: 'Amiri', 'Times New Roman', serif;
  --sans-font: 'Cairo', 'Segoe UI', sans-serif;
}

/* ========================
   Animated Background
========================= */
body {
  background: linear-gradient(-45deg, #f8f7f4, #f2f0eb, #f5f3f0, #f0ede8);
  background-size: 400% 400%;
  animation: gradientFlow 8s ease infinite;
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: var(--serif-font);
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Floating particles */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(201, 169, 97, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(93, 143, 71, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 60% 40%, rgba(127, 176, 105, 0.06) 0%, transparent 20%);
  animation: floatParticles 12s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes floatParticles {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(90deg); }
  50% { transform: translateY(5px) rotate(180deg); }
  75% { transform: translateY(-5px) rotate(270deg); }
}

/* ========================
   Dynamic Header - More Exciting
========================= */
.mw-body-header {
  background: linear-gradient(135deg, 
    var(--primary-color) 0%, 
    var(--secondary-color) 25%,
    var(--tertiary-color) 50%,
    var(--accent-green) 75%,
    var(--accent-bright) 100%);
  background-size: 300% 300%;
  animation: headerGradient 6s ease infinite;
  border-bottom: 4px solid var(--accent-gold);
  padding: 28px 40px;
  text-align: center;
  font-family: var(--sans-font);
  font-size: 22px;
  color: var(--background-white);
  font-weight: 700;
  letter-spacing: 1.2px;
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
  position: relative;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  transition: var(--transition-smooth);
}

.mw-body-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(26, 71, 42, 0.2), var(--shadow-glow);
}

@keyframes headerGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.mw-body-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.2), 
    transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.mw-body-header::after {
  content: '✦';
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--accent-gold);
  animation: starTwinkle 2s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% { opacity: 0.5; transform: translateY(-50%) scale(1); }
  100% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

/* ========================
   Enhanced Dropdown Menu
========================= */
.vector-dropdown {
  position: relative;
  display: inline-block;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.vector-dropdown:hover {
  transform: scale(1.05);
}

.vector-dropdown-content {
  display: none;
  position: absolute;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  min-width: 240px;
  border: 2px solid var(--border-gold);
  border-radius: 12px;
  box-shadow: var(--shadow-elevated), 0 0 30px rgba(201, 169, 97, 0.2);
  z-index: 1000;
  overflow: hidden;
}

.vector-dropdown:hover .vector-dropdown-content {
  display: block;
  animation: dropdownBounce 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes dropdownBounce {
  0% { 
    opacity: 0; 
    transform: translateY(-20px) scale(0.8) rotateX(-90deg); 
  }
  60% {
    transform: translateY(5px) scale(1.05) rotateX(0deg);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1) rotateX(0deg); 
  }
}

.vector-dropdown-content a {
  display: block;
  padding: 16px 20px;
  color: var(--text-dark);
  text-decoration: none;
  font-family: var(--sans-font);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-elegant);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.vector-dropdown-content a::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 97, 0.1), transparent);
  transition: var(--transition-smooth);
}

.vector-dropdown-content a::after {
  content: '→';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  opacity: 0;
  transition: var(--transition-smooth);
  color: var(--accent-gold);
  font-weight: bold;
}

.vector-dropdown-content a:hover {
  background: linear-gradient(135deg, #f8f6f2 0%, #f0ede8 100%);
  color: var(--primary-color);
  padding-left: 30px;
  font-weight: 600;
  transform: translateX(5px);
}

.vector-dropdown-content a:hover::before {
  left: 100%;
}

.vector-dropdown-content a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* ========================
   Interactive Content Area
========================= */
#content {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 2px solid var(--border-elegant);
  padding: 60px 70px;
  border-radius: 20px;
  font-family: var(--serif-font);
  font-size: 17px;
  color: #1a1a1a;
  box-shadow: var(--shadow-elevated), 0 0 40px rgba(26, 71, 42, 0.1);
  direction: rtl;
  margin: 40px auto;
  position: relative;
  max-width: 1200px;
  transition: var(--transition-smooth);
  overflow: hidden;
}

#content:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(26, 71, 42, 0.15), 0 0 60px rgba(201, 169, 97, 0.2);
}

#content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(180deg, 
    var(--accent-gold) 0%, 
    var(--accent-green) 30%,
    var(--accent-bright) 60%,
    var(--primary-color) 100%);
  border-radius: 0 8px 8px 0;
  animation: borderPulse 3s ease-in-out infinite;
}

@keyframes borderPulse {
  0%, 100% { opacity: 0.8; width: 8px; }
  50% { opacity: 1; width: 12px; }
}

#content::after {
  content: '☪';
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 28px;
  color: var(--accent-gold);
  opacity: 0.3;
  animation: crescentFloat 4s ease-in-out infinite;
}

@keyframes crescentFloat {
  0%, 100% { transform: rotate(0deg) translateY(0px); opacity: 0.3; }
  25% { transform: rotate(5deg) translateY(-5px); opacity: 0.5; }
  50% { transform: rotate(0deg) translateY(-8px); opacity: 0.4; }
  75% { transform: rotate(-5deg) translateY(-3px); opacity: 0.6; }
}

#content h1 {
  color: var(--primary-color);
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  position: relative;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% { text-shadow: 0 0 10px rgba(26, 71, 42, 0.3); }
  100% { text-shadow: 0 0 20px rgba(201, 169, 97, 0.5), 0 0 30px rgba(26, 71, 42, 0.2); }
}

#content h1::before {
  content: '✦';
  position: absolute;
  left: -40px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-gold);
  font-size: 1.5rem;
  animation: starRotate 3s linear infinite;
}

#content h1::after {
  content: '✦';
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-gold);
  font-size: 1.5rem;
  animation: starRotate 3s linear infinite reverse;
}

@keyframes starRotate {
  0% { transform: translateY(-50%) rotate(0deg); }
  100% { transform: translateY(-50%) rotate(360deg); }
}

#content h2 {
  color: var(--accent-green);
  font-weight: 700;
  border-bottom: 3px solid var(--border-gold);
  padding-bottom: 10px;
  margin-bottom: 25px;
  position: relative;
  transition: var(--transition-smooth);
}

#content h2:hover {
  color: var(--primary-color);
  transform: translateX(-10px);
}

#content h2::before {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-bright));
  transition: var(--transition-smooth);
}

#content h2:hover::before {
  width: 100%;
}

#content h1, #content h3, #content h4, #content h5, #content h6 {
  font-weight: 700;
  font-size: 1.4rem !important;
  margin-top: 2em;
  margin-bottom: 0.8em;
  line-height: 1.3;
  color: var(--secondary-color);
  transition: var(--transition-smooth);
}

#content h3:hover, #content h4:hover, #content h5:hover, #content h6:hover {
  color: var(--accent-green);
  transform: translateX(-5px);
}

#content p {
  margin-bottom: 1.5em;
  text-align: justify;
  line-height: 1.9;
  transition: var(--transition-smooth);
}

#content p:hover {
  color: #1a1a1a;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#content a {
  color: var(--tertiary-color);
  text-decoration: underline;
  text-decoration-color: var(--accent-gold);
  text-underline-offset: 4px;
  transition: var(--transition-smooth);
  font-weight: 600;
  position: relative;
}

#content a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-bright));
  transition: var(--transition-smooth);
}

#content a:hover {
  color: var(--primary-color);
  text-decoration-color: transparent;
  transform: translateY(-1px);
  text-shadow: 0 2px 4px rgba(26, 71, 42, 0.2);
}

#content a:hover::before {
  width: 100%;
}

/* ========================
   Dynamic Categories Section
========================= */
#catlinks {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 3px solid var(--border-gold);
  padding: 30px 35px;
  border-radius: 20px;
  margin-top: 50px;
  font-family: var(--sans-font);
  font-size: 15px;
  box-shadow: var(--shadow-elevated), 0 0 30px rgba(201, 169, 97, 0.15);
  color: #444444;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

#catlinks:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(26, 71, 42, 0.2), 0 0 50px rgba(201, 169, 97, 0.25);
}

#catlinks::before {
  content: 'التصنيفات';
  display: block;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 18px;
  letter-spacing: 0.8px;
  text-align: center;
  position: relative;
  text-shadow: 0 2px 4px rgba(26, 71, 42, 0.1);
  animation: categoryTitle 2s ease-in-out infinite alternate;
}

@keyframes categoryTitle {
  0% { transform: scale(1); }
  100% { transform: scale(1.02); }
}

#catlinks::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(201, 169, 97, 0.05), transparent);
  animation: rotateBg 10s linear infinite;
  pointer-events: none;
}

@keyframes rotateBg {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#catlinks a {
  color: #2c2c2c;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 22px;
  margin: 8px 10px 8px 0;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--border-elegant);
  border-radius: 30px;
  display: inline-block;
  transition: var(--transition-smooth);
  font-size: 14px;
  position: relative;
  overflow: hidden;
  font-family: var(--sans-font);
  backdrop-filter: blur(5px);
}

#catlinks a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(201, 169, 97, 0.3), 
    transparent);
  transition: var(--transition-smooth);
}

#catlinks a::after {
  content: '✧';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  transition: var(--transition-smooth);
  color: var(--accent-gold);
}

#catlinks a:hover {
  background: linear-gradient(135deg, 
    var(--primary-color) 0%, 
    var(--secondary-color) 50%,
    var(--accent-green) 100%);
  color: var(--background-white);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(26, 71, 42, 0.3), 0 0 30px rgba(201, 169, 97, 0.4);
  border-color: var(--accent-gold);
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

#catlinks a:hover::before {
  left: 100%;
}

#catlinks a:hover::after {
  transform: translateY(-50%) scale(1) rotate(360deg);
}

/* ========================
   Responsive Animations
========================= */
@media (max-width: 768px) {
  #content {
    margin: 25px 15px;
    padding: 35px 30px;
  }
  
  .mw-body-header {
    padding: 24px 25px;
    font-size: 20px;
  }
  
  #catlinks {
    margin: 30px 15px;
    padding: 25px 30px;
  }
  
  #content h1 {
    font-size: 1.8rem;
  }
}

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

@media print {
  body {
    background: white;
    animation: none;
  }
  
  .mw-body-header, #catlinks {
    display: none;
  }
  
  #content {
    box-shadow: none;
    border: 1px solid #ccc;
    padding: 20px 0;
    animation: none;
  }
}

/* Enhanced Focus States */
a:focus, .vector-dropdown:focus {
  outline: 3px solid var(--accent-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(201, 169, 97, 0.2);
}

/* ========================
   Utility Classes
========================= */
.printfooter, 
.vector-menu h3 {
  display: none;
}

/* Glowing Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--border-elegant);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-gold), var(--accent-green));
  border-radius: 6px;
  border: 1px solid var(--border-elegant);
  box-shadow: 0 0 10px rgba(201, 169, 97, 0.3);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-bright), var(--primary-color));
  box-shadow: 0 0 15px rgba(201, 169, 97, 0.5);
}