html, body {
  max-width: 100%;
  /*overflow-x: hidden;  يمنع السكرول العرضي */
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #1f1f1f;
  color: white;
}

header {
  background-color: #1e1e1e;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.footer-container {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  min-height: 1vh;    
    display: flex;
    flex-direction: column;
}
footer {
  background-color: #181818;
  height: 200px;
  margin-top: auto;
}
.footer-content{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10%;
}
.social-media p{
  font-size: 20px;
  color: white;
}
.social-media a{
  text-align: center;
  color: white;
  text-decoration: none;
  margin: 0px; 
  display: block; 
}

.pages{
  font-size: 20px;
}
.pages nav {
  margin-left: -70px;
}

.logo-image {
  width: 5%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
}

nav li {
  position: relative;
}

nav li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 0;
  height: 100%;
  width: 1px;
  background-color: #888;
}

nav a {
  text-decoration: none;
  color: white;
  font-size: 16px;
  padding: 0 10px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #9c27b0;
}

.motherboard-page {
  display: flex;
  padding: 40px;
  gap: 30px;
}


.filter-box {
  width: 250px;
  background-color: #2c2c2c;
  padding: 20px;
  border-radius: 10px;
  text-align: right;
}

.filter-box h2 {
  color: #ff69b4;
  margin-bottom: 10px;
}

.filter-box label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  font-weight: bold;
}

.filter-box input,
.filter-box select,
.filter-box button {
  width: 100%;
  padding: 10px;
  margin-bottom: 25px;
  border-radius: 6px;
  border: none;
  background-color: #3c3c3c;
  color: white;
}

.filter-box button {
  background: linear-gradient(to right, #a855f7, #ec4899);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  
}

.filter-box button:hover {
  opacity: 0.9;
}

/* Motherboard List */
.motherboard-list {
  flex: 1;
}

.motherboard-list input[type="text"] {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  border: none;
  border-radius: 6px;
  background-color: #333;
  color: white;
}

.builds-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  margin-top: 60px;
  
  
}

.build-card {
  background-color: #2c2c2c;
  border-radius: 10px;
  padding: 20px;
  color: white;
  width: 300px;
  text-align: right;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.build-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.buy-button {
  display: inline-block;
  padding: 10px 10px;
  background: linear-gradient(to right, #A855F7, #EC4899);
  color: rgb(255, 255, 255);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
  margin-top: 20px;
}

.buy-button:hover {
  background: linear-gradient(to right, #7c3aed, #db2777);
}

.beanchmarkLink {
  display: inline-block;
  padding: 10px 6px;
  background: #333;
  color: white;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s;
  margin-top: 20px;
  margin-right: 75px;
}

.beanchmarkLink:hover {
  background: #1e1e1e;
}


.motherboard-page input{
  width: 230px;
  height: 14px;
}
@media (max-width: 768px) {
  /* الهيدر */
  header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0px;
    width: 110%;
  }


  .logo-image {
    width: 20%;
  }

  nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 0;
  }

  nav a {
    font-size: 14px;
    padding: 5px 10px;
  }

  /* الصفحة الرئيسية */
  .motherboard-page {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }
  
  .filter-box,
  .motherboard-list,
  .build-card {
    width: 100%;
    max-width: 400px;      /* يحدد عرض أقصى */
    margin: 0 auto 20px auto; /* يخليها بالنص */
    text-align: center;    /* يخلي النصوص بالنص */
  }
.filter-box {
  margin-left: 2px;
}
  .filter-box select {
    height: 40px;
  }

  .motherboard-list input[type="text"] {
    width: 100%;
    font-size: 20px;
    text-align: center;
    margin-left: 5px;
  }
  .priceFillter {
    font-size: 20px;
  }

  /* المنتجات */
  .builds-container {
    display: flex;
    flex-direction: column;
    align-items: center;  /* يخلي الكروت بالنص */
    gap: 15px;
    padding: 10px;
  }

  /* أزرار */
  .buy-button, .beanchmarkLink {
    width: 90%;
    text-align: center;
    margin: 10px 0 0 0;
  }
  .footer-container {
    margin-right: -40px;
  }
  .footer-content {
    margin-left: 10%;
  }
}
