/* ============================================
   Footer - موحد لجميع الصفحات  (ThunderMoon cosmic)
   ============================================ */

.footer {
  background: #16162a;
  color: #ffffff;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 2rem;
  border-radius: 20px;
  position: relative;
}

.footer::before,
.footer::after { display: none; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2em;
  border-bottom: none !important;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-social-icon:hover {
  opacity: 1;
  transform: scale(1.1);
}
.footer-social-icon svg {
  display: block;
}

.footer-logo-wrap {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.footer-copyright {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  opacity: 0.9;
}

.footer-copyright-line1 { display: block; direction: ltr; unicode-bidi: isolate; }
.footer-copyright-line2 { display: block; unicode-bidi: isolate; opacity: 0.85; }

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.15em;
  direction: ltr;
}

.brand-logo-img { height: 1em; width: auto; }
.brand-logo--xs .brand-logo-img { height: 1em; }
.brand-logo--xs .brand-logo-text { font-size: 1em; }

.brand-logo-text {
  font-family: 'Monoton', cursive;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Dark theme - خلفية كونية، شعار أبيض، THUNDERMOON سماوي */
[data-theme="dark"] .footer {
  background: #16162a;
  color: #ffffff;
}

[data-theme="dark"] .footer a,
[data-theme="dark"] .footer-links a {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .footer-copyright,
[data-theme="dark"] .footer .footer-copyright-line1,
[data-theme="dark"] .footer .footer-copyright-line2 {
  color: #ffffff;
}

[data-theme="dark"] .footer .brand-logo-text {
  color: rgb(0, 229, 255);
  background: linear-gradient(135deg, rgb(0, 229, 255), rgb(102, 242, 255));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="dark"] .footer .brand-logo-img {
  filter: brightness(0) invert(1);
}

/* Light theme - شعار أسود، THUNDERMOON سماوي */
[data-theme="light"] .footer {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(30px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

[data-theme="light"] .footer a,
[data-theme="light"] .footer-links a {
  border-bottom-color: rgba(0, 140, 200, 0.4);
  color: var(--text-primary) !important;
}

[data-theme="light"] .footer-copyright { color: var(--text-primary); }
[data-theme="light"] .footer .footer-copyright-line2 { color: var(--text-secondary); }
[data-theme="light"] .footer .brand-logo-text { color: var(--primary); }

[data-theme="light"] .footer .brand-logo-img {
  filter: brightness(0);
}

[data-theme="light"] .footer .brand-logo-text {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
