/* ============================================
   IRON BOT - Shared Styles
   ========================================== */

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Cairo', sans-serif;
  background: linear-gradient(135deg, #0a0e1b 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
  opacity: 1 !important;
  transition: opacity 0.3s ease-in-out;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body.loaded {
  opacity: 1 !important;
}

/* Animated Stars Background */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: linear-gradient(45deg, #4e8cf3, #7b2ff2, #ff6b9d, #12c2e9);
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Main Section */
.main-section {
  margin-top: 60px;
  padding: 60px 0;
  min-height: calc(100vh - 60px);
}

/* Navbar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(10, 14, 27, 0.95) 0%, rgba(26, 26, 46, 0.95) 50%, rgba(22, 33, 62, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(78, 140, 243, 0.2);
  z-index: 1000;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* ضمان أن nav-container يعمل بشكل صحيح في الكمبيوتر */
@media screen and (min-width: 769px) {
  .nav-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
}

.nav-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, #4e8cf3, #7b2ff2);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn span {
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu-btn:hover {
  background: linear-gradient(45deg, #7b2ff2, #ff6b9d);
  transform: scale(1.05);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  font-size: 1.3em;
  font-family: 'Orbitron', 'Cairo', sans-serif;
  transition: all 0.3s ease;
}

.nav-brand:hover {
  color: #4e8cf3;
  transform: scale(1.05);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(45deg, #4e8cf3, #7b2ff2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: #cbd5e0;
  text-decoration: none;
  font-weight: 500;
  font-size: 1em;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #4e8cf3;
  background: rgba(78, 140, 243, 0.1);
  transform: translateY(-2px);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: linear-gradient(45deg, #4e8cf3, #7b2ff2);
  border-radius: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
}

@media screen and (min-width: 769px) {
  .nav-actions {
    display: flex !important;
  }
  
  .nav-actions .login-btn {
    display: inline-block !important;
  }
  
  .mobile-menu-btn {
    display: none !important;
  }
  
  .mobile-login-item {
    display: none !important;
  }
}

@media screen and (min-width: 769px) {
  body .navbar .nav-container .nav-actions {
    display: flex !important;
  }
  
  body .navbar .nav-container .nav-actions .login-btn {
    display: inline-block !important;
  }
  
  .mobile-menu-btn {
    display: none !important;
  }
  
  .mobile-login-item {
    display: none !important;
  }
  
  .mobile-login-link {
    display: none !important;
  }
}

.login-btn {
  background: linear-gradient(45deg, #4e8cf3, #7b2ff2);
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(78, 140, 243, 0.4);
  font-size: 0.9em;
  display: inline-block;
  -webkit-tap-highlight-color: transparent;
}

.login-btn:hover {
  background: linear-gradient(45deg, #7b2ff2, #ff6b9d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 140, 243, 0.6);
  color: #fff;
  text-decoration: none;
}

.mobile-login-item {
  display: none;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: linear-gradient(45deg, #4e8cf3, #7b2ff2);
  color: #fff;
  box-shadow: 0 4px 15px rgba(78, 140, 243, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(45deg, #7b2ff2, #ff6b9d);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78, 140, 243, 0.6);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: #4e8cf3;
  border: 2px solid rgba(78, 140, 243, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(78, 140, 243, 0.1);
  border-color: #4e8cf3;
  color: #4e8cf3;
  text-decoration: none;
}

.section-card {
  background: linear-gradient(135deg, rgba(78, 140, 243, 0.1) 0%, rgba(123, 47, 242, 0.05) 100%);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(78, 140, 243, 0.2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4e8cf3, #7b2ff2, #ff6b9d, #12c2e9);
  border-radius: 20px 20px 0 0;
}

.section-card:hover::before {
  background: linear-gradient(90deg, #12c2e9, #ff6b9d, #7b2ff2, #4e8cf3);
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.section-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(78, 140, 243, 0.2), rgba(123, 47, 242, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  color: #4e8cf3;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(78, 140, 243, 0.2);
}

.section-icon.events {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.2), rgba(18, 194, 233, 0.15));
  color: #ff6b9d;
}

.section-icon.admin {
  background: linear-gradient(135deg, rgba(123, 47, 242, 0.2), rgba(78, 140, 243, 0.15));
  color: #7b2ff2;
}

.section-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 10px;
  color: #fff;
  font-family: 'Orbitron', 'Cairo', sans-serif;
}

.section-description {
  color: #cbd5e0;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #4e8cf3;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.section-link:hover {
  color: #7b2ff2;
  transform: translateX(5px);
  text-decoration: none;
}

.footer {
  background: linear-gradient(135deg, rgba(10, 14, 27, 0.95) 0%, rgba(26, 26, 46, 0.95) 50%, rgba(22, 33, 62, 0.95) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(78, 140, 243, 0.2);
  padding: 40px 0 20px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4e8cf3, #7b2ff2, #ff6b9d, #12c2e9);
  animation: borderFlow 3s ease-in-out infinite;
}

@keyframes borderFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  font-family: 'Orbitron', 'Cairo', sans-serif;
}

.footer-text {
  color: #cbd5e0;
  font-size: 0.9em;
  line-height: 1.6;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
  body .navbar .nav-container {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    position: relative !important;
    width: 100% !important;
    height: 60px !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  body .navbar .nav-container .nav-brand-wrapper {
    position: fixed !important;
    left: 10px !important;
    top: 10px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    z-index: 1001 !important;
    background: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    order: unset !important;
    transform: none !important;
  }
  
  body .navbar .nav-container .nav-actions {
    display: none !important;
  }
  
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(30, 40, 60, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(78, 140, 243, 0.2);
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  body .navbar .nav-container .mobile-menu-btn {
    display: flex !important;
    position: fixed !important;
    right: 10px !important;
    top: 10px !important;
    z-index: 1001 !important;
    width: 40px !important;
    height: 40px !important;
    background: linear-gradient(45deg, #4e8cf3, #7b2ff2) !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
    order: unset !important;
    transform: none !important;
  }
  
  body .navbar .nav-container .mobile-menu-btn span {
    width: 20px !important;
    height: 2px !important;
    background: #ffffff !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    padding: 0 !important;
    order: unset !important;
    transform: none !important;
  }
  
  body .navbar .nav-container .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
  }
  
  body .navbar .nav-container .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0 !important;
  }
  
  body .navbar .nav-container .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
  }
  
  body .navbar .nav-container .login-btn {
    display: none !important;
  }
  
  .nav-item {
    width: 100%;
    text-align: center;
  }
  
  .nav-link {
    display: block;
    padding: 15px 20px;
    width: 100%;
    border-radius: 0;
    border-bottom: 1px solid rgba(78, 140, 243, 0.1);
    font-size: 1em;
    transition: all 0.3s ease;
  }
  
  .nav-link:hover, .nav-link.active {
    background: rgba(78, 140, 243, 0.3);
    color: #fff;
    border-left: 3px solid #4e8cf3;
  }
  
  /* إخفاء nav-actions في الجوال فقط */
  
  .mobile-login-item {
    display: block;
    border-top: 2px solid rgba(78, 140, 243, 0.3);
    margin-top: 10px;
    padding-top: 10px;
  }
  
  .mobile-login-link {
    background: linear-gradient(45deg, #4e8cf3, #7b2ff2) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    margin: 10px 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(78, 140, 243, 0.4) !important;
    transition: all 0.3s ease !important;
  }
  
  .mobile-login-link:hover {
    background: linear-gradient(45deg, #7b2ff2, #ff6b9d) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(78, 140, 243, 0.6) !important;
    border-left: none !important;
  }
  
  body .navbar .nav-container .nav-brand-wrapper .nav-brand {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 1.1em !important;
    font-weight: bold !important;
    gap: 8px !important;
    flex-direction: row !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    order: unset !important;
    transform: none !important;
  }
  
  body .navbar .nav-container .nav-brand-wrapper .nav-brand .brand-logo {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(45deg, #4e8cf3, #7b2ff2) !important;
    margin: 0 !important;
    padding: 0 !important;
    order: unset !important;
    transform: none !important;
  }
  
  body .navbar .nav-container .nav-brand-wrapper .nav-brand .brand-logo img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    order: unset !important;
    transform: none !important;
  }
  
  /* إصلاحات خاصة لـ iPhone */
  @media screen and (max-width: 414px) {
    body {
      -webkit-text-size-adjust: 100% !important;
      -ms-text-size-adjust: 100% !important;
      -webkit-overflow-scrolling: touch !important;
    }
    
    .navbar {
      -webkit-backdrop-filter: blur(20px) !important;
      backdrop-filter: blur(20px) !important;
    }
    
    .nav-container {
      padding: 0 10px !important;
    }
    
    .mobile-menu-btn {
      width: 35px !important;
      height: 35px !important;
    }
    
    .mobile-menu-btn span {
      width: 18px !important;
      height: 2px !important;
    }
  }
  
  /* إصلاحات خاصة لـ Safari على iOS */
  @supports (-webkit-touch-callout: none) {
    body {
      -webkit-overflow-scrolling: touch !important;
    }
    
    .navbar {
      -webkit-backdrop-filter: blur(20px) !important;
    }
    
    .nav-menu {
      -webkit-backdrop-filter: blur(20px) !important;
    }
  }
} 