/* Wrapper & card layout
   ——————————————————————
   Gears logo + content padding
—————————————————————— */
.bro-quiz-wrapper {
  position: relative;
  max-width: 640px;
  margin: 40px auto;
  padding: 40px 30px 30px;
  background: #f8f8f8;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: sans-serif;
  color: #222222;
}

/* Quiz title */
.bro-quiz-title {
  text-align: center;
  font-size: 1.8em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #222222;
}

/* Gear logo */
.bro-quiz-logo {
  width: 160px;
  max-width: 500px;
  margin: 0 auto 20px auto;
  aspect-ratio: 1 / 1;
  background: url("/wp-content/plugins/bro-quiz/assets/icons/roundtorch.svg") no-repeat center center;
  background-size: contain;
}

/* Progress bar */
.bro-quiz-progress {
  width: 100%;
  background: #ddd;
  height: 8px;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.bro-quiz-progress-bar {
  width: 0;
  height: 100%;
  background: #006d77;
  transition: width 0.3s ease;
}

/* Question text */
.bro-quiz-questions .question-text {
  font-size: 1.2em;
  margin-bottom: 20px;
}

/* Answer buttons */
.answer-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}
.answer-buttons button {
  flex: 1 1 200px;
  max-width: 240px;
  padding: 14px 0;
  font-size: 1em;
  border: 1px solid #006d77;
  background: white;
  color: #006d77;
  border-radius: 4px;
  cursor: pointer;
}
.answer-buttons button:hover {
  background: #006d77;
  color: white;
}

/* Privacy note */
.bro-quiz-privacy-note {
  font-size: 0.8em;
  color: #666;
  text-align: center;
  margin-top: 20px;
}

/* Result card */
.bro-quiz-result {
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  text-align: center;
  margin-top: 20px;
}
.bro-quiz-result-title {
  font-size: 1.4em;
  margin-bottom: 12px;
}
.bro-quiz-result-message {
  margin-bottom: 16px;
  line-height: 1.4;
  color: #333;
}

/* Emotion results layout */
.bro-quiz-emotion-result {
  border-top: 1px solid #ccc;
  padding-top: 16px;
  margin-top: 20px;
  text-align: left;
}
.bro-quiz-emotion-result h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #006d77;
}
.bro-quiz-emotion-result p {
  margin: 0 0 10px;
}
.bro-quiz-note {
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
}

/* Learn More button */
.bro-quiz-result-cta {
  display: inline-block;
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding: 0.6rem 1.2rem;
  background: #006d77;
  color: #fff !important;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.bro-quiz-result-cta:hover {
  background: #cc5500;
  color: #fff !important;
}

/* Share icons block layout */
/* Share icons */
.bro-quiz-share {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.bro-quiz-share a {
  display: inline-block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
  text-indent: -9999px;
  overflow: hidden;
}

.bro-quiz-share a:hover {
  background-color: #006d77;
}

/* Facebook icon */
.bro-quiz-share a.facebook {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23222222' viewBox='0 0 24 24'%3E%3Cpath d='M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 5 3.66 9.13 8.44 9.88v-6.99H8.9v-2.89h1.54V9.85c0-1.53.91-2.38 2.3-2.38.67 0 1.37.12 1.37.12v1.51h-.77c-.76 0-1 .47-1 .95v1.14h1.7l-.27 2.89h-1.43v6.99C18.34 21.13 22 17 22 12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

/* Twitter icon */
.bro-quiz-share a.twitter {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23222222' viewBox='0 0 24 24'%3E%3Cpath d='M22.46 6c-.77.35-1.6.58-2.46.69a4.28 4.28 0 0 0 1.88-2.37 8.59 8.59 0 0 1-2.72 1.04 4.26 4.26 0 0 0-7.26 3.89A12.1 12.1 0 0 1 3.15 4.67a4.26 4.26 0 0 0 1.32 5.68A4.22 4.22 0 0 1 3 9.1v.05a4.26 4.26 0 0 0 3.42 4.18 4.3 4.3 0 0 1-1.92.07 4.26 4.26 0 0 0 3.98 2.96A8.54 8.54 0 0 1 2 19.54 12.08 12.08 0 0 0 8.29 21c7.55 0 11.68-6.26 11.68-11.68 0-.18-.01-.36-.02-.54A8.36 8.36 0 0 0 22.46 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

/* WhatsApp icon */
.bro-quiz-share a.whatsapp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23222222' viewBox='0 0 24 24'%3E%3Cpath d='M20 4a10 10 0 0 0-17 11.74L2 22l6.35-1.66A10 10 0 0 0 20 4Zm-8 15a8.21 8.21 0 0 1-4.12-1.12l-.29-.17-3.77.99 1-3.65-.19-.3A8.23 8.23 0 1 1 12 19Zm4.46-5.41c-.25-.12-1.44-.71-1.66-.79s-.39-.12-.55.12-.63.79-.77.95-.28.17-.53.06a6.71 6.71 0 0 1-3.3-2.87c-.25-.43.25-.4.71-1.32.08-.17 0-.32 0-.44a.86.86 0 0 0-.12-.43c-.12-.13-.55-1.32-.75-1.81s-.4-.4-.55-.4h-.47a.88.88 0 0 0-.63.3A2.65 2.65 0 0 0 6.6 9.6a4.6 4.6 0 0 0 .95 2.41 10.69 10.69 0 0 0 4.32 3.85c.6.25 1.06.4 1.43.51a3.42 3.42 0 0 0 1.57.1 2.66 2.66 0 0 0 1.75-1.2 2.21 2.21 0 0 0 .15-1.2c-.06-.12-.24-.18-.5-.3Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

/* Share (link copy) icon */
.bro-quiz-share a.copy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23222222' viewBox='0 0 24 24'%3E%3Cpath d='M3.9 12a5 5 0 0 1 5-5H12v2H8.9a3 3 0 0 0 0 6H12v2H8.9a5 5 0 0 1-5-5Zm6 1h4v-2h-4v2Zm6-6h-3v2h3a3 3 0 0 1 0 6h-3v2h3a5 5 0 1 0 0-10Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}


/* Related posts grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.cards-grid .card {
  padding: 16px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
  color: #222;
}

/* Quiz grid layout */
.bro-quiz-grid-wrapper {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 2rem 1rem;
  background: #f0f0f0;
  text-align: center;
}
.bro-quiz-grid-wrapper h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.bro-quiz-grid-wrapper p {
  max-width: 800px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
}

/* Grid cards */
.bro-quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.bro-quiz-card {
  background: #ffffff;
  border: 2px solid #006d77;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bro-quiz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.bro-quiz-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.bro-quiz-card p {
  font-size: 1rem;
  margin-bottom: 1rem;
}
.bro-quiz-card .wp-block-button__link,
.bro-quiz-card a.button {
  display: inline-block;
  width: auto !important;
  height: auto !important;
  background-color: #cc5500;
  color: #fff;
  padding: 0.75rem 1.5rem;
  margin-top: auto;
  border-radius: 0.5rem;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
}
.bro-quiz-card .wp-block-button__link:hover,
.bro-quiz-card a.button:hover {
  background-color: #a94400;
  color: #fff;
}
/* === Edge Fix: Restore Button Visibility & Layout === */

.answer-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.bro-quiz-btn {
  display: inline-block;
  background-color: #006d77;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  min-width: 120px;
  transition: background-color 0.3s ease;
}

.bro-quiz-btn:hover {
  background-color: #004f56;
}

/* Result CTA button */
.bro-quiz-result-cta {
  display: inline-block;
  background-color: #cc5500;
  color: #fff;
  font-weight: bold;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  margin-top: 1.5rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.bro-quiz-result-cta:hover {
  background-color: #a64400;
}