/* =========================================================
   FINAL CSS v2
   Priority: ROOT styles first, QUIZ styles scoped
   ========================================================= */

/* --------------------
   GLOBAL BASE
-------------------- */

body {
  background: linear-gradient(to right, #1e1e2f, #2c2c3e);
  color: #f0f0f5;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  margin: 0;
  padding: 40px;
}

h1 {
  font-size: 2.5em;
  color: #ffd700;
  text-shadow: 1px 1px 5px #000;
}

h2 {
  font-size: 1.5em;
  color: #87cefa;
}

p {
  font-size: 1.2em;
  line-height: 1.6;
}

@media (max-width: 768px) {
  body { padding: 20px; }
}

/* --------------------
   CONTAINER (ROOT)
-------------------- */

.container {
  max-width: 800px;
  width: 95%;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(255,255,255,0.03);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.05);
}

/* --------------------
   ROOT BUTTONS (SHARP & CLEAN)
-------------------- */

/* Fix button height to match <select> */
body > main button,
.container button {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 1.1em;
  border-radius: 8px;
}

/* WhatsApp button — same height + green */
#whatsappShareBtn {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  font-size: 1.1em !important;
  border-radius: 8px !important;
  background: #25D366 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 3px 0 #128C4A !important;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#whatsappShareBtn:hover {
  background: #1ebe5d !important; /* slightly brighter green */
  transform: translateY(-2px);     /* subtle lift */
  box-shadow: 0 5px 0 #0f6f39 !important; /* deeper shadow */
}


/* Proper visually-hidden class */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


body > main button:hover,
.container button:hover {
  background: linear-gradient(180deg, #ffdf33 0%, #f0c600 100%);
}

/* --------------------
   SELECT (GLOBAL)
-------------------- */

select {
  padding: 10px;
  font-size: 1.1em;
  border-radius: 8px;
  border: none;
  background-color: #333;
  color: #fff;
}

/* =========================================================
   HEADER / MENU / DROPDOWN
   ========================================================= */

:root {
  --cp-text: #f0f0f5;
  --cp-border: rgba(255,255,255,0.06);
  --cp-accent: #ffd700;
}

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-center #page-title {
  margin: 0;
  font-size: 18px;
  color: var(--cp-text);
}

/* ☰ MENU ICON */
.menu-icon {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #ffd700;
  cursor: pointer;
  padding: 6px;
}

/* ✅ RESTORED DROPDOWN MENU */
.menu-links {
  list-style: none;
  margin: 12px 0 0 0;
  padding: 10px 12px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  background: linear-gradient(180deg, #2b2b39 0%, #14141a 100%);
  border: 1px solid var(--cp-border);
  border-radius: 8px;

  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(-6px);

  transition:
    opacity 0.3s ease,
    max-height 0.4s ease,
    transform 0.3s ease;
}

.menu-links.show {
  opacity: 1;
  max-height: 500px;
  transform: translateY(0);
}

.menu-links a,
.menu-links button {
  background: none;
  border: none;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
}

.menu-links a:hover,
.menu-links button:hover {
  background: rgba(255,255,255,0.08);
  color: #ffd700;
}

/* =========================================================
   TIPS OUTPUT (GLOBAL FIX)
   ========================================================= */

#tipBox {
  display: block;
  visibility: visible;
  opacity: 1;
  margin: 20px auto;
  padding: 15px 20px;
  max-width: 600px;
  background-color: rgba(255,255,255,0.08);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(255,255,255,0.1);
  font-size: 1.1em;
  font-style: italic;
  color: #ffd700;
}


/* Quiz result styling */
.quiz-result {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  font-family: "Segoe UI", Arial, sans-serif;
  color: #222;
  line-height: 1.8;
}

.quiz-result strong {
  font-size: 1.3rem;
  color: #111;
}

.quiz-result em {
  font-style: italic;
  color: #444;
}

.quiz-result p {
  margin: 1rem 0;
}

.quiz-result .emoji {
  font-size: 2rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.quiz-result h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.quiz-result .label {
  font-weight: bold;
  color: #333;
  display: block;
  margin-top: 1rem;
}
/* Make astrological sign and "Detaljnije" label blue */
.quiz-result h2,
.quiz-result .label {
  color: #87cefa !important; /* same blue as quiz title */
}


.quiz-actions {
  margin-top: 2rem;
  text-align: center;
}

.quiz-actions button {
  margin: 0.5rem;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background-color: #4a90e2;
  color: #fff;
  transition: background-color 0.2s ease;
}

.quiz-actions button:hover {
  background-color: #357ab8;
}

/* WhatsApp button inside quiz results */
#shareQuizBtn {
  background: #25D366 !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 3px 0 #128C4A !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  font-size: 1.1em !important;
  border-radius: 8px !important;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

#shareQuizBtn:hover {
  background: #1ebe5d !important;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #0f6f39 !important;
}



/* =========================================================
   QUIZ STYLES (SCOPED – SAFE)
   ========================================================= */

#quiz {
  max-width: 60vw;
  margin: 0 auto;
  padding: 15px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

#themeTitle {
  font-size: 1.3em;
  color: #87cefa;
  margin-bottom: 15px;
  text-transform: uppercase;
}

#progressBox {
  margin: 20px auto;
  padding: 15px 20px;
  max-width: 600px;
  background-color: rgba(255,255,255,0.05);
  border-radius: 10px;
}

#question {
  font-size: 1.4em;
  margin-bottom: 20px;
}

#answers button {
  display: block;
  width: 100%;
  margin: 12px 0;
  padding: 14px 24px;
  font-size: 1.2em;
  border-radius: 10px;
  border: none;
  background-color: #ffd700;
  color: #1e1e2f;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

#answers button:hover {
  background-color: #ffcc00;
}

#result {
  font-size: 1.5em;
  color: #ffd700;
  margin-top: 30px;
  padding: 20px;
  background-color: rgba(255,255,255,0.07);
  border-radius: 12px;
}

/* ACTION BUTTON ROW */
.button-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.action-btn {
  padding: 12px 24px;
  border-radius: 8px;
  background-color: #ffd700;
  color: #1e1e2f;
  text-decoration: none;
}
/* Make "Ponovi kviz" and "Sljedeći kviz" buttons white */
#repeatQuizBtn,
#nextQuizBtn {
  background: #ffffff !important;
  color: #1e1e2f !important;
  border: 1px solid #ccc !important;
  box-shadow: 0 3px 0 #bbb !important;
  border-radius: 8px !important;
  transition: background 0.2s ease, transform 0.15s ease;
}

#repeatQuizBtn:hover,
#nextQuizBtn:hover {
  background: #f2f2f2 !important;
  transform: translateY(-2px);
}


footer {
  border-top: 1px solid rgba(255,255,255,0.04);}
/* Contact form container */
.contact-form {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Group wrapper */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Inputs + textarea unified style */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  font-family: inherit;
}

/* Make textarea same height as input initially */
.contact-form textarea {
  min-height: 44px; /* same as input height */
  resize: vertical; /* user can expand */
}

/* Placeholder styling */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  font-size: 1rem;
  color: #999;
  opacity: 1;
}

/* Submit button */
.btn-submit {
  padding: 12px 16px;
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-submit:hover {
  background: #005fcc;
}
/* Checkbox styling */
.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #0077ff;
  cursor: pointer;
}
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}
/* =====================================
   GLOBAL BUTTON SIZE UPGRADE + HOVER
===================================== */

body button,
.container button,
#answers button,
.quiz-actions button,
.action-btn {
  padding: 10px 20px !important;
  font-size: 1.2em !important;
  border-radius: 10px !important;
}

/* Universal hover glow */
body button:hover,
.container button:hover,
#answers button:hover,
.quiz-actions button:hover,
.action-btn:hover {
  background: #ffe680 !important;
  color: #1e1e2f !important;
  box-shadow: 0 0 12px rgba(255, 230, 128, 0.2) !important;
  transform: translateY(-2px);
}


/* MOBILE */
@media (max-width: 768px) {
  #quiz {
    max-width: 100vw;
  }
}

