
/* تحسينات تأثير المطر الدموي للأداء */
.blood-rain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.drop {
  position: absolute;
  top: -20px;
  width: 3px;
  height: 15px;
  background: radial-gradient(circle, #ff4d4d, #990000);
  border-radius: 50% 50% 20% 20%;
  opacity: 0.6;
  animation: fall linear infinite;
  filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.5));
}

@keyframes fall {
  to {
    transform: translateY(150vh);
    opacity: 0;
  }
}

/* تقليل عدد القطرات على الجوال */
@media (max-width: 768px) {
  .drop {
    width: 2px;
    height: 12px;
    opacity: 0.4;
  }
  .drop:nth-child(n+11) {
    display: none;
  }
}

@media (max-width: 480px) {
  .drop:nth-child(n+6) {
    display: none;
  }
}

/* تحسينات البطاقات الرئيسية */
.card-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.glow-card {
  background: linear-gradient(145deg, rgba(75, 0, 0, 0.9), rgba(40, 0, 0, 0.95));
  color: var(--text-color);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255, 77, 77, 0.6);
  box-shadow: 0 5px 20px rgba(255, 77, 77, 0.4);
  width: 100%;
  max-width: 850px;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.glow-card:hover {
  box-shadow: 0 8px 25px rgba(255, 77, 77, 0.6);
  transform: translateY(-3px);
}

/* تحسينات البطاقات الداخلية */
.glow-card_2 {
  background: rgba(40, 0, 0, 0.7);
  padding: 18px;
  border-radius: 15px;
  border: 1px solid rgba(255, 77, 77, 0.4);
  box-shadow: 0 3px 15px rgba(255, 77, 77, 0.3);
  margin-top: 20px;
}

/* تحسينات النصوص والعناوين */
.m1 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--gold-color);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

h1 {
  font-size: 28px;
  color: var(--gold-color);
  margin: 25px 0 15px;
}

h2 {
  font-size: 24px;
  color: var(--gold-color);
  margin: 20px 0 12px;
}

p, li {
  font-size: 18px;
  margin: 12px 0;
  text-align: right;
}

ul {
  padding-right: 25px;
}

li {
  margin-bottom: 10px;
}

.white-line {
  height: 1px;
  background: linear-gradient(to left, transparent, rgba(255,255,255,0.3), transparent);
  margin: 20px 0;
  width: 100%;
  border: none;
}

/* تحسينات الروابط */
a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* تحسينات الجداول */
.table-container {
  overflow-x: auto;
  margin: 20px 0;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 15px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 77, 77, 0.3);
}

th {
  background-color: rgba(75, 0, 0, 0.7);
  color: var(--gold-color);
  font-weight: bold;
}

/* زر العودة للأعلى */
#topBtn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 99;
  font-size: 20px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s;
}

#topBtn:hover {
  background-color: var(--gold-color);
  transform: scale(1.1);
}

/* شاشة التحميل */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--main-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-size: 24px;
  color: var(--gold-color);
}

/* تحسينات للجوال */
@media (max-width: 768px) {
  .card-grid {
    padding: 15px;
    gap: 20px;
  }
  
  .glow-card {
    padding: 20px;
    border-radius: 18px;
  }
  
  .glow-card_2 {
    padding: 15px;
    margin-top: 15px;
  }
  
  h1 {
    font-size: 24px;
    margin: 20px 0 12px;
  }
  
  h2 {
    font-size: 22px;
    margin: 18px 0 10px;
  }
  
  p, li {
    font-size: 17px;
  }
  
  th, td {
    padding: 10px 12px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .card-grid {
    padding: 12px;
    gap: 15px;
  }
  
  .glow-card {
    padding: 18px;
    border-radius: 15px;
  }
  
  h1 {
    font-size: 22px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  p, li {
    font-size: 16px;
  }
  
  ul {
    padding-right: 20px;
  }
  
  th, td {
    padding: 8px 10px;
    font-size: 15px;
    display: block;
    width: 100%;
  }
  
  tr {
    margin-bottom: 15px;
    display: block;
  }
  
  th {
    border-bottom: none;
    padding-bottom: 5px;
  }
  
  #topBtn {
    width: 45px;
    height: 45px;
    font-size: 18px;
    bottom: 20px;
    left: 20px;
  }
}

/* تحسينات للوضع الأفقي */
@media (max-width: 768px) and (orientation: landscape) {
  .card-grid {
    padding: 10px;
  }
  
  .glow-card {
    padding: 15px;
  }
  
  #topBtn {
    bottom: 15px;
    left: 15px;
  }
}

/* أضف هذه الأنماط إلى ملف style.css */

/* تحسينات الجداول */
.table-container {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
  border: 1px solid rgba(255, 77, 77, 0.3);
  background: rgba(40, 0, 0, 0.7);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(30, 0, 0, 0.5);
}

th, td {
  padding: 15px 20px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 77, 77, 0.2);
  transition: all 0.3s ease;
}

th {
  background-color: rgba(75, 0, 0, 0.8);
  color: var(--gold-color);
  font-weight: bold;
  font-size: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

td {
  color: rgba(255, 255, 255, 0.9);
}

tr:hover td {
  background: rgba(255, 77, 77, 0.1);
  color: var(--text-color);
}

/* تأثير خاص للصف الأول */
tr:first-child th {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* تأثير خاص للصف الأخير */
tr:last-child td {
  border-bottom: none;
}

/* تحسينات للجوال */
@media (max-width: 768px) {
  .table-container {
    margin: 20px 0;
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.3);
  }
  
  th, td {
    padding: 12px 15px;
    font-size: 16px;
  }
  
  th {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .table-container {
    border-radius: 10px;
  }
  
  th, td {
    padding: 10px 12px;
    font-size: 15px;
    display: block;
    width: 100%;
    text-align: center;
  }
  
  tr {
    margin-bottom: 10px;
    display: block;
    border-bottom: 1px solid rgba(255, 77, 77, 0.3);
  }
  
  th {
    border-bottom: none;
    padding-bottom: 8px;
    font-size: 16px;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
  }
  
  tr:last-child {
    border-bottom: none;
  }
}

/* تحديث أنماط الجدول */
.table-container {
  overflow-x: auto;
  margin: 30px 0;
  border-radius: 15px;
  box-shadow: 
    0 4px 25px rgba(255, 77, 77, 0.5),
    inset 0 0 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.3);
  background: linear-gradient(145deg, rgba(75, 0, 0, 0.8), rgba(40, 0, 0, 0.9));
  backdrop-filter: blur(5px);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}

th, td {
  padding: 16px 20px;
  text-align: right;
  border-bottom: 1px solid rgba(255, 215, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

th {
  background: linear-gradient(to bottom, rgba(139, 0, 0, 0.7), rgba(75, 0, 0, 0.9));
  color: var(--gold-color);
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.5px;
  border-top: 1px solid rgba(255, 215, 0, 0.3);
}

td {
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
}

tr:hover td {
  background: rgba(255, 77, 77, 0.08);
  transform: translateX(-5px);
}

/* تأثيرات خاصة للخلايا */
td:first-child {
  font-weight: 600;
  color: var(--gold-color);
}

/* زوايا الجدول */
tr:first-child th:first-child {
  border-top-right-radius: 15px;
}

tr:first-child th:last-child {
  border-top-left-radius: 15px;
}

tr:last-child td:first-child {
  border-bottom-right-radius: 15px;
}

tr:last-child td:last-child {
  border-bottom-left-radius: 15px;
}

/* خطوط تفصل بين الصفوف */
tr:not(:last-child) td {
  border-bottom: 1px solid rgba(255, 77, 77, 0.2);
}

/* تأثيرات للجوال */
@media (max-width: 768px) {
  .table-container {
    border-radius: 12px;
    margin: 25px 0;
  }
  
  th, td {
    padding: 14px 16px;
    font-size: 17px;
  }
  
  th {
    font-size: 18px;
  }
  
  tr:first-child th:first-child {
    border-top-right-radius: 12px;
  }
  
  tr:first-child th:last-child {
    border-top-left-radius: 12px;
  }
}

@media (max-width: 480px) {
  .table-container {
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(255, 77, 77, 0.4);
  }
  
  th, td {
    padding: 12px 14px;
    font-size: 16px;
    display: block;
    text-align: center;
    border: none;
  }
  
  td:first-child {
    background: rgba(75, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  }
  
  tr {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  tr:hover td {
    transform: none;
  }
}