/* =========================================================
   COMPONENTS.CSS
   REUSABLE UI COMPONENTS

   Social buttons
   Pills
   Forms
   Toast notifications
   Cookie banner
   Modal
========================================================= */

/* SOCIAL */

.social-list {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav .social-list {
  justify-content: flex-start;
  margin-left: -8px;
}

.social-link {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(121,74,250,.09);
  color: var(--purple-dark);
  transition: .25s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(121,74,250,.06);
  font-size: 17px;
}

.social-link:hover {
  transform: translateY(-3px);
  color: #fff;
  background: var(--purple);
}

/* PILLS */

.new-pill {
  position: absolute;
  top: -8px;
  right: -7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #ff8b6b);
  box-shadow: 0 8px 18px rgba(255,107,107,.20);
  z-index: 4;
}

.pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--purple);
  background: rgba(121,74,250,.12);
  font-weight: 900;
}

/* FORMS */

.contact-box {
  width: min(820px, 100%);
  margin-inline: auto;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 36px;
  background: rgba(255,255,255,.90);
  border: 1px solid rgba(229,232,236,.88);
  box-shadow: var(--shadow-sm);
}

.contact-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  color: var(--purple-dark);
  font-weight: 800;
}

.form-group input,
.form-group textarea,
.newsletter-form input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  outline: none;
  padding: 15px 16px;
  transition: .2s;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.newsletter-form input:focus {
  border-color: rgba(121,74,250,.55);
  box-shadow: 0 0 0 5px rgba(121,74,250,.1);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* INSTAGRAM TOAST */

.instagram-toast {
  position: fixed;
  left: 20px;
  bottom: 22px;
  z-index: 350;
  width: 290px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 18px 48px rgba(10,2,28,.12);
  border: 1px solid rgba(229,232,236,.9);
  transform: translateX(-120%);
  opacity: 0;
  transition: .38s var(--ease);
}

.instagram-toast.show {
  transform: translateX(0);
  opacity: 1;
}

.insta-close {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--ink);
}

.insta-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #ff2d55;
  background: rgba(255,45,85,.08);
  font-size: 39px;
}

.instagram-toast strong {
  display: block;
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
}

.instagram-toast p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* FORM TOAST */

.form-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 380;
  transform: translate(-50%, 18px);
  opacity: 0;
  visibility: hidden;
  padding: 13px 18px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: var(--green);
  box-shadow: var(--shadow-lg);
  transition: .25s var(--ease);
}

.form-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

/* COOKIE */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 360;
  width: min(760px, calc(100% - 32px));
  margin: auto;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-radius: 24px;
  color: #fff;
  background: rgba(10,2,28,.94);
  box-shadow: var(--shadow-lg);
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner a {
  color: #ffd48a;
  font-weight: 900;
  text-decoration: underline;
}

.cookie-banner button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  z-index: 390;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10,2,28,.64);
  opacity: 0;
  visibility: hidden;
  transition: .25s var(--ease);
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: min(860px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
}

.modal-content h2,
.modal-content h3 {
  margin: 18px 0 8px;
  color: var(--ink);
}

.modal-content p,
.modal-content li {
  color: #4f4960;
  margin: 8px 0;
}