@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;700;800&family=Vazirmatn:wght@300;400;500;600;700;800&display=swap");
html {
  font-size: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;

  background:
    radial-gradient(circle at 15% 20%, #dce7ff 0%, transparent 30%),
    radial-gradient(circle at 85% 15%, #ece8ff 0%, transparent 25%),
    radial-gradient(circle at 75% 75%, #e8f5ff 0%, transparent 30%),
    linear-gradient(135deg, #f8fbff, #f4f6ff, #fbfcff);

  min-height: 100vh;
}
.fa-text {
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
  text-align: right;
}

.page {
  width: 92%;

  max-width: 1400px;

  margin: 30px auto;

  background: white;

  border-radius: 28px;

  padding: 30px 40px;

  box-shadow: 0 20px 70px rgba(69, 78, 255, 0.08);
}

.logo {
  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 25px;

  font-weight: 700;

  color: #334155;
}
nav {
  display: flex;

  gap: 45px;
}

nav a {
  text-decoration: none;

  color: #475569;

  font-weight: 500;

  position: relative;
}

nav a.active {
  color: #5b5df7;
}

nav a.active::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -10px;

  width: 100%;

  height: 3px;

  background: #5b5df7;

  border-radius: 10px;
}
header span {
  font-size: 20px;
}
.nav-right {
  display: flex;

  gap: 15px;

  align-items: center;
}

.theme-btn {
  width: 42px;

  height: 42px;

  border: none;

  border-radius: 50%;

  background: #fff;

  cursor: pointer;

  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.bookmark {
  border: none;

  background: #5b5df7;

  color: white;

  padding: 14px 25px;

  border-radius: 40px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s;
}

.bookmark:hover {
  background: #4c4ff0;
}
.page {
  background:
    radial-gradient(
      circle at top left,
      #ffffff 0%,
      #fcfdff 35%,
      transparent 60%
    ),
    radial-gradient(circle at top right, #eef1ff 0%, transparent 35%),
    linear-gradient(135deg, #ffffff 0%, #fafbff 45%, #f4f6ff 100%);

  border-radius: 30px;
}

.hero-left h2 {
  font-size: 55px;

  line-height: 1.15;

  font-weight: 800;

  color: #1e293b;
}

.hero-left span {
  color: #5b5df7;
}

.hero-left p {
  margin-top: 25px;

  font-size: 20px;

  line-height: 35px;

  color: #64748b;

  width: 80%;
}

.search-box {
  margin-top: 45px;

  height: 75px;

  background: white;

  border-radius: 50px;

  display: flex;

  align-items: center;

  padding: 0 20px;

  box-shadow: 0 15px 35px rgba(80, 80, 180, 0.08);
}

.search-box img {
  width: 24px;

  margin-right: 18px;
}

.search-box input {
  flex: 1;

  border: none;

  outline: none;

  font-size: 22px;
}

.search-box button {
  border: none;

  background: #5b5df7;

  color: white;

  padding: 18px 35px;

  border-radius: 40px;

  font-size: 18px;

  cursor: pointer;

  transition: 0.3s;
}

.search-box button:hover {
  background: #4e4ff1;
}

.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-right img {
  width: 100%;

  max-width: 650px;

  height: auto;

  animation: float 5s ease infinite;
}

.hero-left {
  max-width: 600px;
}

.hero-right {
  display: flex;

  justify-content: center;

  align-items: center;
}

.search-box svg {
  margin-right: 15px;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0);
  }
}

.result-page {
  margin-top: 70px;
}

.result-card {
  background: white;

  border-radius: 30px;

  padding: 40px;

  box-shadow: 0 20px 60px rgba(91, 93, 247, 0.08);
}

.result-top {
  display: flex;

  align-items: center;

  gap: 25px;

  margin-bottom: 35px;
}

.drug-circle {
  width: 90px;

  height: 90px;

  border-radius: 24px;

  background: #eef2ff;

  display: flex;

  justify-content: center;

  align-items: center;

  font-size: 42px;
}

.drug-title h2 {
  font-size: 34px;

  color: #1e293b;

  margin-bottom: 6px;
}

.drug-title p {
  color: #64748b;

  margin-bottom: 12px;

  font-size: 18px;
}

.badge-atc {
  display: inline-block;

  padding: 8px 16px;

  border-radius: 50px;

  background: #eef2ff;

  color: #5b5df7;

  font-size: 14px;

  font-weight: 700;
}

.generic-box {
  background: #f8faff;

  border: 1px solid #eef2ff;

  border-radius: 22px;

  padding: 22px;

  margin-bottom: 30px;
}

.generic-box h5 {
  color: #64748b;

  font-size: 15px;
}

.generic-box p {
  font-size: 24px;

  font-weight: 700;

  color: #1e293b;

  margin-top: 8px;
}

.info-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 20px;
}

.info-box {
  background: #fcfcff;

  border: 1px solid #eef2ff;

  border-radius: 20px;

  padding: 22px;

  transition: 0.3s;
}

.info-box:hover {
  transform: translateY(-4px);

  box-shadow: 0 10px 30px rgba(91, 93, 247, 0.08);
}

.info-box span {
  font-size: 14px;

  color: #64748b;
}

.info-box h4 {
  margin-top: 10px;

  color: #5b5df7;

  font-size: 22px;
}
.drug-icon {
  width: 90px;
  height: 90px;

  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 10px;
  border-radius: 24px;

  background: linear-gradient(135deg, #eef2ff, #f7f8ff);

  box-shadow:
    0 12px 30px rgba(91, 93, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@media (max-width: 1200px) {
  .hero-left h2 {
    font-size: 48px;
  }

  .hero-left p {
    font-size: 18px;
    line-height: 30px;
    width: 95%;
  }

  .search-box {
    height: 68px;
  }

  .search-box input {
    font-size: 20px;
  }

  .search-box button {
    padding: 15px 28px;
  }

  .hero-right img {
    max-width: 520px;
  }
}

@media (max-width: 992px) {
  .page {
    width: 95%;
    padding: 30px;
  }

  .main-navbar {
    row-gap: 20px;
  }

  nav {
    justify-content: center;
    gap: 25px !important;
    flex-wrap: wrap;
  }

  .hero-left {
    max-width: 100%;
    text-align: center;
  }

  .hero-left h2 {
    font-size: 42px;
  }

  .hero-left p {
    width: 100%;
    margin-inline: auto;
    font-size: 18px;
    line-height: 30px;
  }

  .search-box {
    height: 65px;
    margin-top: 35px;
  }

  .search-box input {
    font-size: 18px;
  }

  .search-box button {
    padding: 14px 26px;
    font-size: 16px;
  }

  .hero-right {
    margin-top: 30px;
  }

  .hero-right img {
    max-width: 420px;
  }

  small {
    display: block;
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 20px;
    margin: 15px auto;
    border-radius: 22px;
  }

  .main-navbar {
    text-align: center;
    row-gap: 18px;
  }

  .logo {
    justify-content: center;
  }

  nav {
    gap: 18px !important;
  }

  nav a {
    font-size: 15px;
  }

  .bookmark {
    padding: 12px 22px;
    font-size: 15px;
  }

  .hero-left {
    text-align: center;
  }

  .hero-left h2 {
    font-size: 34px;
  }

  .hero-left p {
    font-size: 16px;
    line-height: 28px;
  }

  .search-box {
    height: 60px;
    padding: 0 16px;
  }

  .search-box svg {
    width: 20px;
    height: 20px;
  }

  .search-box input {
    font-size: 16px;
  }

  .search-box button {
    padding: 10px 18px;
    font-size: 15px;
  }

  .hero-right img {
    max-width: 320px;
  }
}

@media (max-width: 576px) {
  .page {
    padding: 18px;
  }

  .hero-left h2 {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-left p {
    font-size: 15px;
    line-height: 25px;
  }

  .search-box {
    height: auto;

    padding: 12px 15px;

    border-radius: 22px;

    flex-wrap: wrap;

    gap: 12px;
  }

  .search-box input {
    width: 100%;

    font-size: 15px;
  }

  .search-box button {
    width: 100%;

    padding: 12px;

    border-radius: 15px;
  }

  .hero-right img {
    max-width: 260px;
  }

  small {
    font-size: 13px;
  }
}

@media (max-width: 406px) {
  .main-nav {
    display: none !important;
  }

  .main-navbar {
    justify-content: space-between;

    align-items: center;
  }

  .mobile-clear {
    display: block;

    padding: 10px 18px;

    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .result-top {
    flex-direction: column;

    text-align: center;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .result-card {
    padding: 25px;
  }

  .drug-title h2 {
    font-size: 28px;
  }

  .generic-box p {
    font-size: 20px;
  }
}
