/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --qa-bg-color: #ffffff;
  --qa-input-bg: #f4f4f4;
  --qa-text-main: #171717;
  --qa-text-muted: #676767;
  --qa-border-color: #e5e5e5;
}

body {
  background-color: var(--qa-bg-color);
  color: var(--qa-text-main);
}

.qa-main-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.qa-content-wrap {
  width: 100%;
  max-width: 800px;
}

.qa-greeting {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  text-align: center;
}

.qa-search-form {
  width: 100%;
}

.qa-search-container {
  width: 100%;
  position: relative;
  background: var(--qa-input-bg);
  border-radius: 28px;
  padding: 8px 12px 8px 24px;
  display: flex;
  align-items: center;
  transition: box-shadow 0.2s ease;
}

.qa-search-container:focus-within {
  box-shadow: 0 0 0 1px var(--qa-border-color), 0 4px 12px rgba(0, 0, 0, 0.05);
}

.qa-search-input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 1.1rem;
  padding: 8px 0;
  outline: none;
  color: var(--qa-text-main);
}

.qa-search-input::placeholder {
  color: var(--qa-text-muted);
}

.qa-submit-btn {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 12px;
  transition: opacity 0.2s;
}

.qa-submit-btn:hover {
  opacity: 0.8;
}

.qa-submit-btn svg {
  width: 20px;
  height: 20px;
}

.qa-footer-info {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--qa-text-muted);
  text-align: center;
}

.qa-search-form-frame {
  display: contents;
}

.qa-result-frame {
  display: block;
  width: 100%;
  margin-top: 2rem;
}

.qa-flash-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1080;
  padding: 1rem;
  pointer-events: none;
}

.qa-flash-alert {
  width: 100%;
  margin: 0;
  pointer-events: auto;
  text-align: center;
}

.qa-answer-block {
  margin-bottom: 1.5rem;
}

.qa-answer-heading {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.qa-supporting-verses {
  margin-top: 1.5rem;
}

.qa-more-verses {
  margin-top: 1rem;
}

.qa-more-verses summary {
  cursor: pointer;
  font-weight: 600;
}

.qa-more-verses .qa-verses-list {
  margin-top: 1rem;
}
