/* =====================================================
   Awaken Polls Styles
   ===================================================== */

.awaken-poll {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #000000;
}

/* Popup Layout */
.awaken-poll--popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.awaken-poll__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 1;
}

/* Embed Layout */
.awaken-poll--embed {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 30px auto;
}

.awaken-poll--embed .awaken-poll__modal {
  position: relative;
  width: 100%;
  max-width: 100%;
  animation: none;
}

.awaken-poll--embed .awaken-poll__overlay,
.awaken-poll--embed .awaken-poll__close {
  display: none;
}

/* Modal */
.awaken-poll__modal {
  position: relative;
  background: transparent;
  border-radius: 0;
  width: 90%;
  max-width: 500px;
  padding: 40px;
  box-shadow: none;
  z-index: 2;
  animation: awakenPollSlideIn 0.3s ease-out;
}

@keyframes awakenPollSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Close Button */
.awaken-poll__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 28px;
  color: #000000;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.awaken-poll__close:hover {
  opacity: 0.6;
}

.awaken-poll__close:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* Header */
.awaken-poll__header {
  margin-bottom: 30px;
}

.awaken-poll__featured-image {
    margin-bottom: 30px;
}

.awaken-poll__featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.awaken-poll__title {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  line-height: 1.3;
}

.awaken-poll__description {
  margin: 0;
  font-size: 14px;
  color: #000000;
  line-height: 1.5;
}

/* Form */
.awaken-poll__form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.awaken-poll__question {
  border: none;
  padding: 0;
  margin: 0;
}

.awaken-poll__question-text {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  margin-bottom: 15px;
  cursor: default;
  line-height: 1.4;
}

.awaken-poll__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.awaken-poll__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.awaken-poll__option:hover {
  background-color: #f5f5f5;
}

.awaken-poll__input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #000000;
  flex-shrink: 0;
}

.awaken-poll__input:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.awaken-poll__option-text {
  font-size: 15px;
  color: #000000;
  line-height: 1.4;
  flex: 1;
}

/* Submit Button */
.awaken-poll__submit {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.awaken-poll__submit:hover {
  background: #333333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.awaken-poll__submit:active {
  background: #111111;
}

.awaken-poll__submit:focus {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

.awaken-poll__submit:disabled {
  background: #cccccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Empty State */
.awaken-poll__empty {
  text-align: center;
  color: #000000;
  font-size: 14px;
  padding: 20px;
  margin: 0;
}

/* Success Message */
.awaken-poll__success-message {
  text-align: center;
  padding: 30px 20px;
  background: transparent;
  border-radius: 8px;
  margin: 20px 0;
}

.awaken-poll__success-message p {
  margin: 0;
  font-size: 16px;
  color: #000000;
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 600px) {
  .awaken-poll__modal {
    width: 95%;
    padding: 30px 20px;
  }

  .awaken-poll__title {
    font-size: 20px;
  }

  .awaken-poll__question-text {
    font-size: 15px;
  }

  .awaken-poll__option {
    padding: 10px;
  }

  .awaken-poll__input {
    width: 16px;
    height: 16px;
  }

  .awaken-poll__submit {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .awaken-poll__modal {
    animation: none;
  }

  .awaken-poll__option,
  .awaken-poll__close,
  .awaken-poll__submit {
    transition: none;
  }
}

/* Custom Text Input */
.awaken-poll__custom-text {
  width: 100%;
  padding: 10px 12px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  color: #000000;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  box-sizing: border-box;
}

.awaken-poll__custom-text:focus {
  outline: none;
  border-color: #000000;
  background-color: #fff;
}

.awaken-poll__custom-text:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}

.awaken-poll__custom-text::placeholder {
  color: #999;
}

.awaken-poll__option--has-custom {
  flex-direction: column;
  align-items: flex-start;
}

.awaken-poll__option-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
