/* ==========================================================================
   DiggFun Theme - Interactive Quiz Runner Stylesheet
   ========================================================================== */

.quiz-runner-container {
  margin-top: 24px;
}

/* Progress Bar */
.quiz-progress-bar-wrapper {
  margin-bottom: 24px;
}

.quiz-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.quiz-progress-track {
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 50px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-secondary));
  transition: width 0.3s ease;
  border-radius: 50px;
}

/* Question Card */
.quiz-question-card {
  display: none;
  animation: fadeIn 0.3s ease;
}

.quiz-question-card.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Single Quiz Header & Meta (DiggFun.co Style) */
.quiz_detial_tags {
  margin-bottom: 12px;
}

.trending_title_quiz_tags span {
  display: inline-block;
  background-color: #ff2a74;
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  padding: 4px 16px;
  transform: skewX(-12deg);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.single-quiz-title {
  font-size: 24px;
  font-weight: 900;
  color: #222222;
  line-height: 1.35;
  margin-bottom: 14px;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  display: block !important;
}

.editors_box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #777777;
  font-weight: 600;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.editor-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.author-avatar-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  color: #ff2a74;
  font-weight: 700;
}

.dot-sep {
  color: #cccccc;
}

/* Quiz Main Cover Hero Banner */
.quiz_cover_banner_wrap {
  margin-bottom: 32px;
}

.question_img {
  position: relative;
  width: 100%;
  max-height: 460px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #f0f2f5;
}

.question_img img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.copyright {
  position: absolute;
  bottom: 8px;
  right: 12px;
  background-color: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
}

.quizeLongChoose {
  display: block;
  width: 100%;
  margin: 16px 0 24px;
  cursor: pointer;
}

.scroll-to-quiz-inner {
  background: #ff2a74;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  padding: 12px 32px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 42, 116, 0.3);
  text-transform: none;
}

.scroll-to-quiz-inner:hover {
  background: #e61d65;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 42, 116, 0.4);
}

.down-arrow-icon {
  color: #ffffff;
  font-weight: 900;
  font-size: 14px;
}

/* Step Number Count Badge (No. 1 / N) */
.count_number {
  font-size: 15px;
  font-weight: 900;
  color: #ff2a74;
  margin-bottom: 8px;
}

.newSelectTest-item-title {
  font-size: 18px;
  font-weight: 800;
  color: #ff2a74;
  margin-bottom: 16px;
  line-height: 1.45;
}

.question-media {
  margin-bottom: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 380px;
  position: relative;
}

.question-media img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

/* 2x2 Options Grid Layout (DiggFun.co Exact Architecture) */
.quizeselectItem {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .quizeselectItem {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.newSelectTest-choiceType {
  background-color: #ffffff;
  border: 1.5px solid #ebebeb;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  width: 100%;
  box-sizing: border-box;
}

.newSelectTest-choiceType.has-image {
  padding: 8px;
}

.newSelectTest-choiceType.text-choice {
  padding: 18px 24px;
  font-size: 17px;
  font-weight: 700;
  color: #333333;
  min-height: 60px;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .newSelectTest-choiceType.text-choice {
    font-size: 16px;
    padding: 16px 18px;
    min-height: 54px;
  }
}

.newSelectTest-choiceType:hover {
  border-color: #ff2a74;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 42, 116, 0.15);
}

.newSelectTest-choiceType.selected {
  border-color: #ff2a74 !important;
  background-color: #fff0f5 !important;
  box-shadow: 0 0 0 2px #ff2a74, 0 4px 14px rgba(255, 42, 116, 0.2) !important;
}

.newSelectTest-choiceType .opt-img-container {
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 120px;
  max-height: 180px;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  background-color: #f4f6f8;
}

.newSelectTest-choiceType .opt-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.newSelectTest-choiceType:hover .opt-img-container img {
  transform: scale(1.03);
}

.newSelectTest-choiceType .opt-img-container .copyright {
  position: absolute;
  bottom: 4px;
  right: 6px;
  font-size: 10px;
  color: rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.5);
  padding: 1px 4px;
  border-radius: 3px;
}

.newSelectTest-choiceType .opt-text-label {
  padding: 10px 8px 4px;
  font-size: 15px;
  font-weight: 700;
  color: #333333;
  text-align: center;
  line-height: 1.35;
}

.newSelectTest-choiceType.selected .opt-text-label {
  color: #ff2a74;
}

.newSelectTest-choiceType.selected.text-choice {
  color: #ff2a74;
}

/* DiggFun.co Exact Submit Button Styling */
.long_submit_all {
  display: flex !important;
  width: 100%;
  justify-content: center;
  align-items: center;
  margin: 40px auto 30px;
  padding: 10px 0;
}

.longSelectSubmit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  max-width: 90%;
  padding: 16px 56px;
  background: linear-gradient(135deg, #ff2a74 0%, #ff5e98 100%);
  color: #ffffff !important;
  font-family: inherit;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 8px 24px rgba(255, 42, 116, 0.4);
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.longSelectSubmit::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255,255,255,0.25), transparent);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.6s ease;
}

.longSelectSubmit:hover {
  background: linear-gradient(135deg, #e61963 0%, #ff4785 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 42, 116, 0.55);
}

.longSelectSubmit:hover::after {
  transform: rotate(30deg) translateY(100%);
}

.longSelectSubmit:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 12px rgba(255, 42, 116, 0.35);
}

/* Calculating Loader Section */
.quiz-calculating-container {
  display: none;
  text-align: center;
  padding: 48px 16px;
  animation: fadeIn 0.3s ease;
}

.quiz-calculating-container.active {
  display: block;
}

.calculating-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff2a74;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.calculating-title {
  font-size: 22px;
  font-weight: 800;
  color: #222222;
  margin-bottom: 8px;
}

.calculating-subtitle {
  font-size: 14px;
  color: #777777;
}

/* Result Section */
.quiz-result-container {
  display: none;
  text-align: center;
  padding: 32px 16px;
  animation: fadeIn 0.4s ease;
}

.quiz-result-container.active {
  display: block;
}

.result-badge {
  display: inline-block;
  background-color: #ff2a74;
  color: #ffffff;
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.result-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.result-image {
  max-width: 480px;
  margin: 0 auto 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.result-image img {
  width: 100%;
  height: auto;
}

.result-description {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.restart-quiz-btn, .share-btn, .copy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.restart-quiz-btn {
  background-color: #6c5ce7;
  color: #ffffff;
}

.restart-quiz-btn:hover {
  background-color: #5b4cc4;
}

.share-btn.wa {
  background-color: #25d366;
  color: #ffffff;
}

.share-btn.fb {
  background-color: #1877f2;
  color: #ffffff;
}

.share-btn.tw {
  background-color: #1da1f2;
  color: #ffffff;
}

.copy-link-btn {
  background-color: #f1f2f6;
  color: #333333;
}

.copy-link-btn:hover {
  background-color: #e2e8f0;
}

