@import "../../css/root0.css";

body {
    background: var(--main-bg-gradient);
    color: var(--text-color);
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

.page-title {
  font-size: 3rem;
  text-align: center;
  margin: 2rem 0;
  color: var(--highlight);
  text-shadow: 0 0 25px rgba(140, 94, 255, 0.8);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px var(--highlight), 0 0 20px var(--highlight);
  }
  to {
    text-shadow: 0 0 25px var(--highlight), 0 0 40px var(--highlight);
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.8rem;
  padding: 2rem;
}

.card-base {
  border-radius: 1.5rem;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: var(--text-color);
  font-family: 'Rubik', sans-serif;
  text-decoration: none !important;
  background: var(--card-bg-product);
}

.category-card {
  background: var(--card-bg-category);
  box-shadow: 0 0 15px rgba(122, 68, 205, 0.5);
}

.product-card {
  background: var(--card-bg-product);
  box-shadow: 0 0 10px rgba(84, 54, 137, 0.4);
}

.card-base * {
  text-decoration: none !important;
}

.card-base:hover {
  transform: scale(1.06);
  box-shadow: var(--box-shadow-hover);
}

.card-base img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--highlight);
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-base:hover img {
  transform: scale(1.15) rotate(3deg);
  box-shadow: var(--glow-shadow);
}

.card-base h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
  border-bottom: none !important;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.card-base:hover h5 {
  color: var(--highlight);
  text-shadow: 0 0 10px var(--highlight);
}

.tooltip-box {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--tooltip-bg);
  color: var(--tooltip-color);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 100;
}

.card-base:hover .tooltip-box {
  opacity: 1;
}
.main-header {
  background: var(--main-bg-headerfooter);
  border-bottom: 2px solid var(--highlight);
  padding: 1.5rem 0;
}

.logo {
  font-size: 1.8rem;
  color: var(--highlight);
  font-weight: 800;
  margin: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-list li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-list li a:hover {
  color: var(--highlight);
}

.main-footer {
  background: var(--main-bg-headerfooter);
  border-top: 2px solid var(--highlight);
  color: var(--text-color);
  font-size: 0.95rem;
}

.social-icons {
  margin-top: 0.5rem;
}

.social-icons a {
  color: var(--highlight);
  font-size: 1.2rem;
  margin: 0 0.5rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #fff;
}
.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
}

@keyframes glowPulse {
  0%, 100% {
    filter: drop-shadow(0 0 5px rgba(140, 94, 255, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 15px rgba(140, 94, 255, 1));
  }
}

.header-logo img {
  height: 60px;
  width: auto;
  border-radius: 0.5rem;
  animation: glowPulse 2.5s ease-in-out infinite;
  cursor: default;
}

/* زر تسجيل الدخول */
.btn-login {
  background: var(--login-btn-bg);
  border: none;
  padding: 0.6rem 1.8rem;
  border-radius: 2rem;
  color: var(--text-color);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--login-btn-shadow);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
  font-family: 'Rubik', sans-serif;
  letter-spacing: 0.03em;
  user-select: none;
}

.btn-login:hover {
  background: var(--login-btn-bg-hover);
  box-shadow: 0 6px 20px rgba(140, 94, 255, 0.9);
  transform: scale(1.05);
}

.btn-login:active {
  transform: scale(0.97);
  box-shadow: 0 3px 10px rgba(140, 94, 255, 0.5);
}



/* زر القائمة للموبايل */
.nav-toggle-label {
  display: none;
  font-size: 2rem;
  color: var(--text-color);
  cursor: pointer;
  user-select: none;
}

/* القائمة العادية */
.main-nav {
  display: flex;
}

/* التجاوب مع الموبايل */
@media (max-width: 768px) {
  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--nav-dropdown-bg);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 10;
  }

  #nav-toggle:checked ~ .main-nav {
    max-height: 500px;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .nav-toggle-label {
    display: block;
  }

  .btn-login {
    width: 100%;
  }

  .nav-list li {
    text-align: center;
  }
}
.custom-lang-dropdown {
  position: relative;
  font-family: 'Rubik', sans-serif;
}

.lang-btn {
  display: flex;
  align-items: center;
  background-color: var(--select-bg);
  color: var(--select-color);
  border: 2px solid var(--select-border);
  border-radius: 1.2rem;
  padding: 0.4rem 1rem;
  font-weight: 600;
  cursor: pointer;
  gap: 0.5rem;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 10px var(--login-btn-shadow);
}

.lang-btn img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 6px var(--highlight);
}

.lang-options {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--select-bg);
  border: 2px solid var(--select-border);
  border-radius: 0.8rem;
  padding: 0.4rem 0;
  list-style: none;
  margin: 0;
  width: 160px;
  box-shadow: 0 10px 20px var(--glow-shadow);
  display: none;
  z-index: 100;
}

.lang-options li {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  gap: 0.5rem;
  color: var(--select-color);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-weight: 500;
}

.lang-options li:hover {
  background-color: var(--select-hover-bg);
  color: var(--highlight);
}

.lang-options img {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 0 6px var(--highlight);
}

/* إظهار الخيارات */
.custom-lang-dropdown.open .lang-options {
  display: block;
}

/* تجاوب الموبايل */
@media (max-width: 768px) {
  .lang-btn,
  .lang-options {
    width: 100%;
  }
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  color: var(--text-color);
}

.footer-logo img {
  width: 60px;
  height: auto;
  margin-bottom: 1rem;
  animation: glowPulse 2.5s ease-in-out infinite;
  
}

.footer-logo p {
  max-width: 280px;
  line-height: 1.6;
  color: var(--text-color);
  font-size: 0.95rem;
}
.footer-logo {
  text-align: center;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--highlight);
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-color);
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--highlight);
}

.footer-contact i {
  color: var(--highlight);
  margin-left: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--highlight);
  padding-top: 1.5rem;
}

@media (max-width: 768px) {
  .footer-grid {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-logo p {
    max-width: 100%;
  }
}

/* تنسيقات المقال - عربية */
.article-detail {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    margin: 2rem 0;
}

.article-title {
    color: #2c3e50;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.article-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

    .article-image img {
        transition: transform 0.3s ease;
        width: 100%;
        height: auto;
    }

    .article-image:hover img {
        transform: scale(1.02);
    }

.image-caption {
    font-size: 0.9rem;
    text-align: center;
    color: #6c757d;
    margin-top: 0.5rem;
}

.article-content {
    line-height: 1.9;
    color: #34495e;
    font-size: 1.1rem;
}

    .article-content p {
        margin-bottom: 1.5rem;
    }

    .article-content ul {
        padding-right: 1.5rem;
        margin-bottom: 1.5rem;
    }

        .article-content ul li {
            margin-bottom: 0.5rem;
            position: relative;
            padding-right: 1rem;
        }

            .article-content ul li::before {
                content: "•";
                color: #3498db;
                position: absolute;
                right: 0;
            }

.article-meta {
    font-size: 0.9rem;
    color: #7f8c8d;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* تعديلات Bootstrap للغة العربية */
[dir="rtl"] .me-2 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

.alert {
    text-align: right;
    border-right: 4px solid #84c6f5;
    border-left: none;
}

/* الهيدر والفوتر - عربية */
.main-nav ul {
    padding-right: 0;
}

.lang-options {
    right: 0;
    left: auto;
}

.custom-lang-dropdown .lang-btn {
    padding-right: 10px;
    padding-left: 20px;
}