/* weddinggame /assets/style.css
   Match table_seating look: white + gold frame, eucalyptus background, Allura kicker,
   Cormorant titles, Inter body, clean mobile-first spacing.
*/

/* 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,.22);

  --card: rgba(255,255,255,.92);
  --shadow: 0 20px 60px rgba(0,0,0,.08);

  --radius: 22px;
  --maxw: 920px;

  /* ADD: neutrals used by badge */
  --stroke-2: rgba(0,0,0,.10);
}

*{ 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;

  /* eucalyptus background (place eukaliptus.png in /weddinggame/assets/) */
    background-size: cover;
    background-position: center;
    /*background-image: url("eukaliptus.png");*/
}

/* light veil over background for readability */
body::before{
  display: none;
}

/* ensure all content sits above veil */
.wrap, 

/* Layout */
.wrap{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 16px 26px;
}

/* Hero */
.hero{
  text-align: center;
  padding: 8px 6px 14px;
}

/* BADGE (restored to "original-style" small pill, no missing vars) */
.badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;

  border: 1px solid var(--stroke-2);
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 26px rgba(0,0,0,.05);

  color: var(--muted);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  letter-spacing: .2px;
}

/* table_seating-style small top script */
.tiny{
  font-family: 'Allura', cursive;
  font-size: 28px;       /* larger */
  line-height: 1.1;
  letter-spacing: .16em;
  text-transform: none;

  color: var(--gold);
  opacity: 1;

  margin-bottom: 8px;
}

/* Titles */
h1, .countdown-title, .hero h2, .tasksTitle{
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1{
  margin: 12px 0 8px;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.10;
}

.sub{
  margin: 0 auto;
  max-width: 62ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

/* Card with inner gold frame (like table_seating) */
.card{
  margin-top: 14px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: visible;
  padding: 22px;
}

.card::before{
  content:"";
  position: absolute;
  inset: 16px;
  border-radius: calc(var(--radius) - 10px);
  border: 2px solid var(--gold);
  pointer-events: none;
}

.card > *{ z-index: 1; }

/* Header inside card (same vibe as table_seating) */
.header{
  text-align: center;
  padding: 8px 10px 18px;
}

.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;
}

/* Form — match table_seating .search spacing */
.form{
  margin: 12px auto 0;
  width: min(520px, 100%);

  padding-left: 14px;
  padding-right: 14px;
  padding-bottom: 14px;

  display: grid;              /* makes button full width naturally */
  gap: 12px;
}

/* Optional .label if present in markup */
.label{
  display: block;
  font-size: 13px;
  color: var(--ink);
  opacity: .85;
  margin: 10px 0 8px;
}

/* Kereshető dropdown (combo) */
.combo{
  position: relative;
  width: 100%;
}

/* Input */
.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);
  color: var(--ink);
}

.input::placeholder{
  color: rgba(85,85,85,.70);
}

.input:focus{
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-soft);
}

/* Dropdown toggle button */
.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: .85;
}

.chev:hover{ opacity: 1; }

/* Dropdown list */
.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;
  color: var(--ink);
}

.option:hover{
  background: rgba(176,139,46,.10);
}

/* Buttons — match table_seating (full width) */
.btn{
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  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;
  transition: border-color .12s ease, transform .12s ease, box-shadow .12s ease;
}

.btn:hover{
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}

.btn.gold{
  border-color: rgba(176,139,46,.55);
  background: linear-gradient(180deg, rgba(176,139,46,.18), rgba(176,139,46,.09));
}

.btn.ghost{
  border-color: rgba(0,0,0,.14);
  background: transparent;
  box-shadow: none;
}

/* Actions container (keep, but make buttons full width like table_seating) */
.actions{
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

/* Hint / small text */
.hint,
.small,
.taskUploadDisabled{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Result area */
.result{
  margin-top: 18px;
  border-top: 1px dashed rgba(0,0,0,.14);
  padding-top: 18px;
  padding-left: 10px;
  padding-right: 10px;
}

.result[hidden]{ display: none !important; }

/* Multi-task UI */
.tasksTitle{
  margin: 0 0 12px;
  font-size: 24px;
}

.tasksList{
  display: grid;
  gap: 12px;
}

.taskCard{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.96);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
}

.taskHead{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.taskEmoji{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(176,139,46,.40);
  background: rgba(176,139,46,.10);
  font-size: 20px;
}

.taskCard h3{
  margin: 0 0 4px;
  font-size: 18px;
}

.taskCard p{
  margin: 0;
  color: var(--muted);
}

.taskMain{ width: 100%; }

.taskMeta{
  margin-top: 10px;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap: wrap;
}

.taskActionsRow{
  margin-top: 10px;
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  align-items:center;
}

.taskDeleteBtn{
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(190, 90, 90, .45);
  background: linear-gradient(180deg, rgba(190, 90, 90, .18), rgba(190, 90, 90, .10));
  color: #7a2e2e;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  transition: transform .10s ease, box-shadow .10s ease, border-color .10s ease;
}

.taskDeleteBtn:hover{
  border-color: rgba(190, 90, 90, .65);
  box-shadow: 0 12px 22px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.taskUploadBtn{
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(176,139,46,.55);
  background: linear-gradient(180deg, rgba(176,139,46,.18), rgba(176,139,46,.10));
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  transition: transform .10s ease, box-shadow .10s ease, border-color .10s ease;
}

.taskUploadBtn:hover{
  border-color: rgba(0,0,0,.18);
  box-shadow: 0 12px 22px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

/* Footer */
.footer{
  margin-top: 18px;
  color: rgba(0,0,0,.65);
  font-size: 12px;
  padding: 14px 6px;
  text-align: center;
}

/* Mobile */
@media (max-width: 520px){
  body{
    background-size: 700px auto;
    background-position: center top;
  }

  .wrap{
    padding: 22px 14px 22px;
  }

  .card{
    padding: 18px;
    border-radius: 20px;
  }

  .card::before{
    inset: 12px;
    border-radius: 14px;
  }

  .taskHead{ flex-direction: column; }

  .tiny{
    font-size: 30px;
  }
}

@media (max-width: 480px){
  .form{
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
  }

  .dropdown{ max-height: 240px; }

    .card{ overflow: visible; }
 
  .tiny{
    font-size: 30px;
  }
}

/* --- Mobile background fix: full viewport + show bottom --- */
@media (max-width: 520px){
  html, body{ height: 100%; }

  body{
    min-height: 100svh;              /* mobile-safe viewport height */
    background-image: url("eukaliptus.png");
    background-repeat: no-repeat;
    background-size: cover;          /* kitölti a képernyőt */
    background-position: center bottom; /* az alja is látszódjon */
    background-attachment: scroll;
  }

  /* a tartalom is töltse ki a képernyőt, ne "összeessen" */
  .wrap{
    min-height: 100svh;
    display: grid;
    align-content: start;
    gap: 12px;
  }
}

@media (max-width: 520px){
  .wrap{
    padding-top: 36px;
  }
}

/* Dropdown mindig legyen kattintható a kártyák felett */
.combo { position: relative; z-index: 50; }

.dropdown{
  position: absolute;
  z-index: 9999;      /* nagyon magas, hogy biztos felül legyen */
}

/* Biztonsági: a card ne hozzon létre olyan stacking contextet, ami ráül */
.card { position: relative; z-index: 1; }



