/* =========================================================
   SINGELMATCH – UPPTÄCK V4
   ========================================================= */


/* =========================================================
   GRUND
   ========================================================= */

body {
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(75, 0, 28, 0.18),
      transparent 38%
    ),
    #070507;

  color: #ffffff;
}


/* =========================================================
   SIDAN
   ========================================================= */

.discover-page {
  width: 100%;
  min-height: 100vh;

  /*
    Viktigt:
    ger luft under den fasta toppmenyn.
  */
  padding-top: 28px;
  box-sizing: border-box;
}


/* =========================================================
   RUBRIKOMRÅDE
   ========================================================= */

.discover-head,
.discover-header {
  display: block !important;

  width: min(1100px, calc(100% - 40px));

  margin: 0 auto !important;

  padding:
    32px 0
    24px !important;

  box-sizing: border-box;
}


.discover-head-inner {
  display: flex !important;

  align-items: center;
  justify-content: space-between;

  width: 100%;

  gap: 35px;
}


.discover-kicker {
  display: block;

  margin: 0 0 7px;

  color: #ff4381;

  font-size: 12px;
  font-weight: 900;

  letter-spacing: 0.15em;
  text-transform: uppercase;
}


.discover-head h1,
.discover-header h1 {
  display: block !important;

  margin: 0 !important;

  color: #ffffff;

  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.08;

  font-weight: 900;
  letter-spacing: -0.025em;
}


.discover-head p,
.discover-header p {
  display: block !important;

  margin: 8px 0 0 !important;

  color: #d8bdc7;

  font-size: 15px;
  line-height: 1.45;
}


/* =========================================================
   UPPDATERA
   ========================================================= */

#refreshDiscover {
  flex: 0 0 auto;

  min-width: 125px;

  padding: 12px 21px;

  border:
    1px solid
    rgba(255, 63, 130, 0.42);

  border-radius: 13px;

  background:
    linear-gradient(
      180deg,
      rgba(48, 14, 28, 0.96),
      rgba(27, 8, 17, 0.96)
    );

  color: #ffffff;

  font: inherit;
  font-size: 14px;
  font-weight: 850;

  cursor: pointer;

  box-shadow:
    0 10px 28px
    rgba(255, 0, 92, 0.08);

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}


#refreshDiscover:hover {
  transform: translateY(-2px);

  border-color: #ff3f82;

  box-shadow:
    0 12px 32px
    rgba(255, 0, 92, 0.18);
}


/* =========================================================
   STATUS
   ========================================================= */

#discoverStatus {
  width: min(1100px, calc(100% - 40px));

  margin:
    0 auto
    12px;

  color: #ff6e9e;

  font-size: 13px;
  font-weight: 700;
}


/* =========================================================
   PROFILGRID
   ========================================================= */

#discoverResults,
.discover-results {
  width: min(1100px, calc(100% - 40px));

  margin:
    5px auto
    70px !important;

  display: grid !important;

  grid-template-columns:
    repeat(
      auto-fit,
      minmax(280px, 310px)
    );

  justify-content: center;
  align-items: start;

  gap: 25px;

  box-sizing: border-box;
}


/* =========================================================
   PROFILKORT
   ========================================================= */

.discover-person-card {
  width: 100%;
  max-width: 310px;

  margin: 0;

  overflow: hidden;

  box-sizing: border-box;

  border:
    1px solid
    rgba(255, 63, 130, 0.28);

  border-radius: 22px;

  background:
    linear-gradient(
      180deg,
      rgba(29, 10, 18, 0.99),
      rgba(14, 7, 11, 0.99)
    );

  box-shadow:
    0 20px 55px
      rgba(0, 0, 0, 0.48),
    0 0 30px
      rgba(255, 0, 92, 0.05);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}


.discover-person-card:hover {
  transform: translateY(-3px);

  border-color:
    rgba(255, 63, 130, 0.55);

  box-shadow:
    0 24px 62px
      rgba(0, 0, 0, 0.54),
    0 0 35px
      rgba(255, 0, 92, 0.10);
}


/* =========================================================
   BILD
   ========================================================= */

.discover-person-photo {
  position: relative;

  width: 100%;
  height: 315px;

  overflow: hidden;

  background:
    linear-gradient(
      135deg,
      #2d0b18,
      #10070c
    );
}


.discover-person-photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition:
    transform 0.35s ease;
}


.discover-person-card:hover
.discover-person-photo img {
  transform: scale(1.025);
}


/* =========================================================
   INGEN BILD
   ========================================================= */

.discover-no-photo {
  width: 100%;
  height: 100%;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #ff4b86;

  font-size: 64px;

  background:
    radial-gradient(
      circle at center,
      rgba(255, 0, 92, 0.16),
      transparent 55%
    );
}


/* =========================================================
   MATCHPROCENT
   ========================================================= */

.match-score {
  position: absolute;

  top: 13px;
  left: 13px;

  z-index: 2;

  padding: 7px 11px;

  border:
    1px solid
    rgba(255, 255, 255, 0.15);

  border-radius: 999px;

  background:
    rgba(7, 5, 7, 0.82);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  color: #ffffff;

  font-size: 12px;
  font-weight: 900;

  box-shadow:
    0 7px 20px
    rgba(0, 0, 0, 0.30);
}


/* =========================================================
   TEXTDEL
   ========================================================= */

.discover-person-body {
  padding:
    16px 17px
    17px;

  box-sizing: border-box;
}


.discover-person-body h2 {
  margin: 0;

  color: #ffffff;

  font-size: 22px;
  line-height: 1.15;

  font-weight: 900;
  letter-spacing: -0.02em;
}


.discover-location {
  margin: 6px 0 0;

  color: #ffadc7;

  font-size: 12px;
  font-weight: 800;
}


.discover-person-bio {
  margin: 11px 0 0;

  color: #ddced3;

  font-size: 13px;
  line-height: 1.4;
}


/* =========================================================
   MATCHORSAKER
   ========================================================= */

.compatibility-reasons {
  display: flex;
  flex-wrap: wrap;

  gap: 6px;

  margin-top: 12px;
}


.compatibility-reasons span {
  display: inline-flex;

  align-items: center;

  padding: 5px 9px;

  border:
    1px solid
    rgba(255, 63, 130, 0.30);

  border-radius: 999px;

  background:
    rgba(255, 42, 111, 0.09);

  color: #ff9fbe;

  font-size: 10px;
  font-weight: 850;
}


/* =========================================================
   PASSA / SUPERINTRESSE / GILLA
   ========================================================= */

.discover-person-actions {
  display: flex !important;
  flex-direction: row !important;

  align-items: center;
  justify-content: center;

  gap: 13px;

  margin:
    14px 0
    12px;
}


.discover-action {
  flex: 0 0 auto;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 48px;
  height: 48px;

  padding: 0;

  border-radius: 50%;

  font-family:
    Arial,
    sans-serif;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}


/* =========================================================
   PASSA
   ========================================================= */

.discover-action.pass {
  border:
    1px solid
    rgba(255, 255, 255, 0.22);

  background:
    rgba(255, 255, 255, 0.045);

  color: #eadce1;

  font-size: 23px;
}


.discover-action.pass:hover {
  transform:
    translateY(-2px)
    scale(1.05);

  border-color:
    rgba(255, 255, 255, 0.48);

  background:
    rgba(255, 255, 255, 0.09);
}


/* =========================================================
   SUPERINTRESSE
   ========================================================= */

.discover-action.special {
  width: 53px;
  height: 53px;

  border:
    1px solid
    rgba(183, 74, 255, 0.55);

  background:
    rgba(126, 34, 185, 0.14);

  color: #c96cff;

  font-size: 22px;

  box-shadow:
    0 8px 23px
    rgba(145, 42, 205, 0.12);
}


.discover-action.special:hover {
  transform:
    translateY(-2px)
    scale(1.06);

  border-color:
    #c76cff;

  background:
    rgba(150, 47, 218, 0.22);

  box-shadow:
    0 10px 28px
    rgba(164, 56, 225, 0.20);
}


/* =========================================================
   GILLA
   ========================================================= */

.discover-action.like {
  border:
    1px solid
    rgba(255, 42, 111, 0.60);

  background:
    rgba(255, 42, 111, 0.13);

  color: #ff3f82;

  font-size: 22px;

  box-shadow:
    0 8px 23px
    rgba(255, 0, 92, 0.11);
}


.discover-action.like:hover {
  transform:
    translateY(-2px)
    scale(1.06);

  border-color: #ff3f82;

  background:
    rgba(255, 42, 111, 0.22);

  box-shadow:
    0 10px 28px
    rgba(255, 0, 92, 0.22);
}


/* =========================================================
   VISA HELA PROFILEN
   ========================================================= */

.discover-open-profile {
  width: 100%;
  min-height: 40px;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 9px 13px;

  box-sizing: border-box;

  border:
    1px solid
    rgba(255, 63, 130, 0.32);

  border-radius: 11px;

  background:
    linear-gradient(
      180deg,
      rgba(61, 16, 34, 0.68),
      rgba(37, 10, 22, 0.72)
    );

  color: #ffffff;

  font: inherit;

  font-size: 12px;
  font-weight: 850;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}


.discover-open-profile:hover {
  transform: translateY(-1px);

  border-color:
    rgba(255, 63, 130, 0.68);

  background:
    linear-gradient(
      180deg,
      rgba(87, 20, 47, 0.78),
      rgba(48, 12, 28, 0.82)
    );

  box-shadow:
    0 9px 25px
    rgba(255, 0, 92, 0.12);
}


/* =========================================================
   TOMT LÄGE
   ========================================================= */

#discoverEmpty,
.discover-empty {
  width: min(620px, calc(100% - 40px));

  margin:
    40px auto
    90px;

  padding:
    38px 28px;

  box-sizing: border-box;

  text-align: center;

  border:
    1px solid
    rgba(255, 63, 130, 0.13);

  border-radius: 22px;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 0, 92, 0.08),
      transparent 55%
    );
}


#discoverEmpty .empty-icon,
.discover-empty .empty-icon {
  margin-bottom: 15px;

  color: #ff4b86;

  font-size: 44px;
}


#discoverEmpty h2,
.discover-empty h2 {
  margin: 0 0 9px;

  color: #ffffff;

  font-size: 22px;
  font-weight: 900;
}


#discoverEmpty p,
.discover-empty p {
  margin: 0 auto;

  max-width: 500px;

  color: #d5bdc6;

  font-size: 14px;
  line-height: 1.5;
}


#emptyRefresh {
  margin-top: 19px;

  min-height: 42px;

  padding:
    9px 20px;

  border: 0;
  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #ff1764,
      #d80054
    );

  color: #ffffff;

  font: inherit;

  font-size: 13px;
  font-weight: 900;

  cursor: pointer;

  box-shadow:
    0 10px 28px
    rgba(255, 0, 92, 0.22);
}


/* =========================================================
   TVÅ KORT
   ========================================================= */

@media (min-width: 700px) {

  #discoverResults,
  .discover-results {
    grid-template-columns:
      repeat(
        2,
        minmax(280px, 310px)
      );
  }

}


/* =========================================================
   TRE KORT
   ========================================================= */

@media (min-width: 1050px) {

  #discoverResults,
  .discover-results {
    grid-template-columns:
      repeat(
        3,
        minmax(280px, 310px)
      );
  }

}


/* =========================================================
   MOBIL
   ========================================================= */

@media (max-width: 700px) {

  .discover-page {
    padding-top: 15px;
  }


  .discover-head,
  .discover-header {
    width:
      calc(100% - 28px);

    padding:
      25px 0
      18px !important;
  }


  .discover-head-inner {
    flex-direction: column;

    align-items: flex-start;

    gap: 16px;
  }


  .discover-head h1,
  .discover-header h1 {
    font-size: 30px;
  }


  .discover-head p,
  .discover-header p {
    font-size: 14px;
  }


  #refreshDiscover {
    width: 100%;
  }


  #discoverStatus {
    width:
      calc(100% - 28px);
  }


  #discoverResults,
  .discover-results {
    width:
      calc(100% - 28px);

    grid-template-columns: 1fr;

    margin-top:
      5px !important;
  }


  .discover-person-card {
    max-width: 360px;

    margin: 0 auto;
  }


  .discover-person-photo {
    height: 350px;
  }


  .discover-person-body {
    padding:
      16px 16px
      17px;
  }


  #discoverEmpty,
  .discover-empty {
    width:
      calc(100% - 28px);

    margin-top: 28px;

    padding:
      31px 19px;
  }

}


/* =========================================================
   LITEN MOBIL
   ========================================================= */

@media (max-width: 430px) {

  .discover-person-card {
    max-width: 100%;
  }


  .discover-person-photo {
    height: 330px;
  }


  .discover-person-actions {
    gap: 11px;
  }


  .discover-action {
    width: 47px;
    height: 47px;
  }


  .discover-action.special {
    width: 52px;
    height: 52px;
  }

}