/* ==========================
   SEARCH LAYOUT
========================== */

.search-container {
  min-height: calc(100vh - 95px);
  min-height: calc(100svh - 95px);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 20px;
  padding: 30px 20px;
}

/* ==========================
   SEARCH BOX
========================== */

.search-box {
  width: 100%;
  max-width: 380px;
  padding: 25px;

  background: rgba(245, 197, 241, 0.82);
  border: 1px solid #fddee6;
  border-radius: 20px;

  box-shadow: 0 5px 18px rgba(65, 34, 92, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.search-box h1 {
  margin: 0 0 22px;

  color: #41225c;
  font-family: "Great Vibes", cursive;
  font-size: 38px;
  font-weight: 400;
  text-align: center;
}

/* ==========================
   DROPDOWN
========================== */

#birthdaySelect {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;

  border: 1px solid #fddee6;
  border-radius: 12px;

  background: rgba(255, 255, 255, 0.9);
  color: #41225c;

  font-size: 16px;
  font-weight: 700;

  outline: none;
  cursor: pointer;
}

#birthdaySelect:focus {
  border-color: #e9a2e3;
  box-shadow: 0 0 0 3px rgba(233, 162, 227, 0.2);
}

/* ==========================
   STATUS
========================== */

#status {
  margin: 12px 0 0;
  min-height: 18px;

  color: #41225c;
  font-size: 13px;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ==========================
   VISIT BUTTON
========================== */

.visit-page-button {
  width: min(320px, 100%);
  min-height: 82px;
  padding: 12px 22px;

  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;

  background: rgba(233, 162, 227, 0.72);
  border: 1px solid #fddee6;
  border-radius: 18px;

  color: #41225c;
  font-size: 17px;
  font-weight: 800;

  box-shadow: 0 4px 12px rgba(65, 34, 92, 0.16);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.visit-page-button img {
  width: 48px;
  height: 48px;

  object-fit: contain;
  flex-shrink: 0;
}

/* Desktop hover */

@media (hover: hover) and (pointer: fine) {
  .visit-page-button:hover {
    transform: translateY(-3px);
    background: rgba(233, 162, 227, 0.88);
    box-shadow: 0 7px 16px rgba(65, 34, 92, 0.22);
  }
}

/* Touch feedback */

.visit-page-button:active {
  transform: scale(0.98);
  background: rgba(233, 162, 227, 0.88);
}

/* Keyboard focus */

.visit-page-button:focus-visible {
  outline: 3px solid #9870a5;
  outline-offset: 3px;
}

/* ==========================
   MOBILE
========================== */

@media (max-width: 600px) {
  .search-container {
    min-height: calc(100vh - 75px);
    min-height: calc(100svh - 75px);

    gap: 17px;
    padding: 25px 15px;
  }

  .search-box {
    width: 100%;
    max-width: 380px;
    padding: 22px;
  }

  .search-box h1 {
    font-size: 35px;
    margin-bottom: 20px;
  }

  #birthdaySelect {
    min-height: 52px;
    padding: 14px;
  }

  .visit-page-button {
    width: min(360px, 100%);
    min-height: 75px;

    padding: 12px 18px;
    gap: 15px;

    font-size: 15px;
  }

  .visit-page-button img {
    width: 42px;
    height: 42px;
  }
}

/* ==========================
   SMALL PHONES
========================== */

@media (max-width: 360px) {
  .search-container {
    padding: 20px 12px;
  }

  .search-box {
    padding: 18px;
  }

  .search-box h1 {
    font-size: 32px;
  }

  .visit-page-button {
    min-height: 70px;
    padding: 10px 14px;
    gap: 12px;
    font-size: 14px;
  }

  .visit-page-button img {
    width: 38px;
    height: 38px;
  }
}

/* ==========================
   REDUCED MOTION
========================== */

@media (prefers-reduced-motion: reduce) {
  .visit-page-button {
    transition: none;
  }
}
