/**
 * PLL Question Widget Styles
 *
 * Styles matching the existing Question component design
 */

 .pll-question-widget * {
  box-sizing: border-box;
}

.pll-question-widget {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
}

.pll-question-box {
  background: #fafafa;
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.pll-question-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.pll-question-title-con {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.pll-question-icon {
  height: 25px;
  width: 25px;
  color: #3a3e40;
  flex-shrink: 0;
  margin-top: 2px;
}

.pll-question-text-con {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.pll-question-text {
  font-size: 17px;
  color: #242424;
  font-weight: 800;
  margin: 0;
  line-height: 1.4;
}

/* Answer Items */
.pll-answer-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border-radius: 20px;
  border: solid 2px #ececec;
  margin: 16px 0;
  padding: 8px 16px;
  cursor: pointer;
  min-height: 40px;
  transition: all 0.2s ease;
}

.pll-answer-item:hover {
  border-color: #3ba9f6;
  background: #f8fcff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(59, 169, 246, 0.15);
}

.pll-answer-item:active {
  transform: translateY(0);
}

.pll-answer-con {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.pll-answer-image {
  width: 50px;
  height: 50px;
  border-radius: 10%;
  object-fit: cover;
  flex-shrink: 0;
}

.pll-answer-text-con {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.pll-answer-text {
  font-size: 17px;
  color: #242424;
  font-weight: 500;
  line-height: 1.3;
}

.pll-answer-extra-text {
  font-size: 13px;
  color: #595959;
  font-weight: 500;
  line-height: 1.2;
}

/* Loading State */
.pll-question-loading {
  text-align: center;
  padding: 40px 20px;
  color: #98989d;
  font-size: 15px;
}

.pll-question-loading::after {
  content: '...';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%,
  20% {
    content: '.';
  }
  40% {
    content: '..';
  }
  60%,
  100% {
    content: '...';
  }
}

/* Error State */
.pll-question-error {
  text-align: center;
  padding: 40px 20px;
  color: #cc0000;
  background: #fff3f3;
  border-radius: 8px;
}

.pll-question-error p {
  margin: 0 0 16px 0;
  font-size: 15px;
}

.pll-retry-btn {
  background-color: #000000;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pll-retry-btn:hover {
  background-color: #242424;
}

.pll-retry-btn:active {
  transform: translateY(1px);
}

.pll-retry-btn:focus {
  outline: 2px solid #3ba9f6;
  outline-offset: 2px;
}

/* Not Available State */
.pll-question-not-available {
  text-align: center;
  padding: 40px 20px;
  color: #98989d;
  background: #fafafa;
  border-radius: 8px;
  font-size: 15px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
  .pll-question-box {
    padding: 16px;
  }

  .pll-question-text {
    font-size: 15px;
  }

  .pll-answer-item {
    margin: 12px 0;
    padding: 6px 12px;
    min-height: 35px;
  }

  .pll-answer-image {
    width: 40px;
    height: 40px;
  }

  .pll-answer-text {
    font-size: 15px;
  }

  .pll-answer-extra-text {
    font-size: 12px;
  }

  .pll-question-icon {
    height: 20px;
    width: 20px;
  }
}

@media (max-width: 480px) {
  .pll-question-widget {
    margin: 10px;
  }

  .pll-question-box {
    padding: 12px;
  }

  .pll-question-text {
    font-size: 14px;
  }

  .pll-answer-text {
    font-size: 14px;
  }

  .pll-answer-extra-text {
    font-size: 11px;
  }
}
