/* assets/style.css */

/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:wght@400;600&family=Inter:wght@400;500;600&display=swap");

:root{
  --bg: #ffffff;
  --ink: #151515;
  --muted: #555;
  --gold: #b08b2e;
  --gold-soft: rgba(176,139,46,.25);
  --card: rgba(255,255,255,.92);
  --shadow: 0 20px 60px rgba(0,0,0,.08);
  --radius: 22px;
  --maxw: 720px;
}

*{ box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.page{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  gap: 14px;

  /* Opcionális: meghívó kép mint finom háttér */
  /* background-image: url("eukaliptus.png"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card{
  width: min(var(--maxw), 100%);
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
  background: var(--card);
}

.card::before{
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: calc(var(--radius) - 10px);
  border: 2px solid var(--gold);
  pointer-events: none;
}

.card-inner{
  position: relative;
  padding: 34px 22px 22px;
}

.header{
  text-align: center;
  padding: 8px 10px 18px;
}

.tiny{
  font-family: 'Allura', cursive;
  font-size: 28px;
  letter-spacing: 0;
  text-transform: none;

  color: var(--gold);
  opacity: 1;

  margin-bottom: 6px;
}

.title{
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 40px);
  margin: 0 0 8px;
}

.subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.search{
  margin: 12px auto 0;
  width: min(520px, 100%);
  padding-left: 14px;
  padding-right: 14px;
}


.label{
  display: block;
  font-size: 13px;
  color: var(--ink);
  opacity: .85;
  margin: 10px 0 8px;
}

.input-wrap{
  position: relative;
}

.input{
  width: 100%;
  padding: 14px 44px 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.14);
  outline: none;
  font-size: 16px;
  background: rgba(255,255,255,.95);
}

.input:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.clear-btn{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: white;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  opacity: .7;
}
.clear-btn:hover{ opacity: 1; }

.suggestions{
  display: none;
  margin-top: 8px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.97);
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

.suggestion{
  padding: 12px 14px;
  cursor: pointer;
  border-top: 1px solid rgba(0,0,0,.06);
}
.suggestion:first-child{ border-top: none; }
.suggestion:hover{
  background: rgba(176,139,46,.10);
}
.s-name{
  font-size: 15px;
}

.actions{
  margin-top: 12px;
  display: grid;
}

.btn{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.14);
  background: linear-gradient(180deg, rgba(176,139,46,.13), rgba(176,139,46,.06));
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
}
.btn:hover{
  border-color: var(--gold);
}

.status{
  margin-top: 10px;
  min-height: 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.status.warn{ color: #7a5a12; }
.status.err{ color: #8a1f1f; }

.result{
  margin-top: 18px;
  width: min(560px, 100%);
  margin-left: auto;
  margin-right: auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
}

.result-head{
  text-align: center;
  margin-bottom: 12px;
}

.result-kicker{
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: .8;
  margin-bottom: 6px;
}

.result-title{
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
}

.result-sub{
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.people{
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.person{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.96);
}

.person-name{
  font-weight: 600;
  font-size: 15px;
}

.person-meta{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.footnote{
  margin-top: 14px;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}

.footer{
  width: min(var(--maxw), 100%);
  text-align: center;
  font-size: 12px;
  color: rgba(0,0,0,.65);
  padding-bottom: 6px;
}
.footer .dot{ padding: 0 8px; }

@media (max-width: 420px){
  .card-inner{ padding: 28px 16px 18px; }
  .result{ padding: 14px; }
}


.select-wrap{
  position: relative;
}

.select{
  width: 100%;
  padding: 14px 44px 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.14);
  outline: none;
  font-size: 16px;
  background: rgba(255,255,255,.95);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.select:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.select-caret{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .75;
  font-size: 18px;
}

/* --- MOBILE FIXES (<= 480px) --- */
@media (max-width: 480px){
  .page{
      min-height: 100%;
      display: grid;
      place-items: center;
      padding: 18px;
      gap: 14px;
    /* Ha túl "foltos" a háttér a meghívó képpel, mobilon visszafogjuk */
    background-size: cover;
    background-position: center;
    background-image: url("eukaliptus.png");
  }

  .card{
    border-radius: 20px;
  }

  /* Arany keret: kicsit beljebb, hogy ne nyomja a tartalmat */
  .card::before{
    inset: 12px;
    border-radius: 14px;
  }

  .card-inner{
    padding: 26px 18px 18px;
  }

  .header{
    padding: 4px 8px 14px;
  }

  .tiny{
     font-family: 'Allura', cursive;
    font-size: 11px;
    letter-spacing: .16em;
    margin-bottom: 8px;
  }

  .title{
    font-size: 30px; /* fixebb, szebb mobilon */
    line-height: 1.05;
    margin-bottom: 6px;
  }

  .subtitle{
    font-size: 13px;
    line-height: 1.45;
  }

  .search{
    width: 100%;
    margin-top: 6px;
  }

  /* Label ("Név") ne csússzon bele a mezőbe */
  .label{
    margin: 12px 0 8px;
    font-size: 13px;
  }

  .select{
    padding: 14px 42px 14px 14px;
    border-radius: 16px;
    font-size: 16px;
    width: 100%;
  }

  .select-caret{
    right: 14px;
    font-size: 18px;
  }

  .actions{
    margin-top: 12px;
  }

  .btn{
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 15px;
  }

  .status{
    margin-top: 10px;
    font-size: 13px;
  }

  .result{
    width: 100%;
    padding: 14px;
    border-radius: 16px;
  }

  .result-title{
    font-size: 26px;
  }

  .person{
    padding: 12px;
    border-radius: 14px;
  }

  .footer{
    font-size: 11px;
    padding-bottom: 2px;
  }
}

/* --- EXTRA: nagyon kicsi mobilok (<= 360px) --- */
@media (max-width: 360px){
  .card-inner{ padding: 22px 14px 16px; }
  .title{ font-size: 28px; }
}

@media (max-width: 480px){
  .card{ background: rgba(255,255,255,.97); }
}


/* --- Kereshető dropdown (combo) --- */
.combo{
  position: relative;
  width: 100%;
}

.combo .input{
  width: 100%;
  padding: 14px 44px 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.14);
  outline: none;
  font-size: 16px;
  background: rgba(255,255,255,.95);
}

.combo .input:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

.chev{
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  cursor: pointer;
  opacity: .8;
}
.chev:hover{ opacity: 1; }

.dropdown{
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;

  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.97);
  box-shadow: 0 18px 44px rgba(0,0,0,.10);

  max-height: 280px;
  overflow: auto;
  padding: 6px;
}

.dropdown.open{ display: block; }

.option{
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
}

.option:hover{
  background: rgba(176,139,46,.10);
}

/* Mobil finomhangolás */
@media (max-width: 480px){
  .dropdown{ max-height: 240px; }
}

@media (max-width: 480px){
  .tiny{
      font-family: 'Allura', cursive;
    font-size: 30px;
  }
}

@media (max-width: 480px){
  .search{
    padding-left: 10px;
    padding-right: 10px;
  }
}

