/* fases-da-lua/css/lua-ao-vivo.css */
/* Wrapper dedicado da ferramenta Lua ao Vivo. */
@import url('/lua/css/fases-da-lua.css');

.lua-live-seo-block .article-content,
.lua-live-article .article-content,
.lua-live-howto .article-content,
.lua-live-faq .faq-interactive-section {
  background: var(--content-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
}

.lua-live-seo-block .article-content h2,
.lua-live-article .article-content h2,
.lua-live-howto .article-content h2,
.lua-live-faq .faq-interactive-section h2 {
  margin-top: 0;
}

.lua-live-howto-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  line-height: 1.6;
}

.lua-live-faq-list {
  display: grid;
  gap: 10px;
}

.lua-live-faq-list details {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.lua-live-faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--text-color);
}

.lua-live-faq-list summary::-webkit-details-marker {
  display: none;
}

.lua-live-faq-list details p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--secondary-color);
  line-height: 1.55;
}

.lh .lh-card__title {
  line-height: 1.35;
  color: #10253d !important;
  font-weight: 700;
}

/* Ordem visual da grade: Live -> Horários -> demais cards */
.lh .lh-card--live {
  order: 1;
}

.lh .lh-card--times {
  order: 2;
  grid-column: 1 / -1;
}

.lh .lh-card--live-extra {
  order: 3;
}

.lh .lh-card--summary {
  order: 4;
}

.lh-observer-source {
  margin: 10px 0 12px;
  padding: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.lh-observer-source__option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--lh-text);
  font-weight: 600;
}

.lh-observer-source__option input {
  accent-color: #1f74d8;
}

.lh-region-picker__select:disabled {
  background: #ebeff5;
  border-color: #d4dbe5;
  color: #8b98a8;
  cursor: not-allowed;
  opacity: 1;
}

.lh-custom-location {
  margin-top: 14px;
  border: 1px solid var(--lh-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.lh-custom-location__title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--lh-text);
}

.lh-custom-location__hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--lh-muted);
}

.lh-custom-location__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lh-custom-location__grid label {
  display: grid;
  gap: 4px;
}

.lh-custom-location__grid label span {
  font-size: 0.76rem;
  color: var(--lh-muted);
  font-weight: 600;
}

.lh-custom-location__grid input {
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--lh-border);
  background: #fff;
  color: var(--lh-text);
  padding: 0 10px;
  font-size: 0.85rem;
}

.lh-custom-location__grid input:focus {
  outline: none;
  border-color: #1f74d8;
  box-shadow: 0 0 0 2px rgba(31, 116, 216, 0.18);
}

.lh-custom-location__tz {
  grid-column: 1 / -1;
}

.lh-custom-location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lh-custom-btn {
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--lh-border);
  padding: 0 12px;
  background: #ffffff;
  color: var(--lh-text);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.lh-custom-btn--primary {
  border-color: #1f74d8;
  background: linear-gradient(135deg, #1f74d8 0%, #0f5ebf 100%);
  color: #fff;
}

.lh-location-status {
  margin: 0;
  min-height: 18px;
  font-size: 0.78rem;
  color: var(--lh-muted);
}

.lh-location-status.is-error {
  color: #b42318;
}

.lh-location-status.is-success {
  color: #117a37;
}

.lh-location-map {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  border: 1px solid var(--lh-border);
  overflow: hidden;
}

body.dark-mode .lua-live-seo-block .article-content,
body.dark-mode .lua-live-article .article-content,
body.dark-mode .lua-live-howto .article-content,
body.dark-mode .lua-live-faq .faq-interactive-section {
  background: #1c1c1e;
  border-color: #3a4558;
}

body.dark-mode .lua-live-faq-list details {
  background: #202327;
  border-color: #3a4558;
}

body.dark-mode .lua-live-faq-list summary {
  color: #eaf2ff;
}

body.dark-mode .lua-live-faq-list details p {
  color: #c3cfdf;
}

body.dark-mode .lh .lh-card__title {
  color: #eef4ff !important;
}

body.dark-mode .lh-custom-location {
  background: rgba(9, 27, 49, 0.72);
  border-color: rgba(184, 213, 255, 0.2);
}

body.dark-mode .lh-observer-source__option {
  color: #d9e5f7;
}

body.dark-mode .lh-region-picker__select:disabled {
  background: #182434;
  border-color: #3d567d;
  color: #94a8c5;
}

body.dark-mode .lh-custom-location__grid input,
body.dark-mode .lh-custom-btn {
  background: #111c2d;
  color: #eaf2ff;
  border-color: #3d567d;
}

body.dark-mode .lh-custom-btn--primary {
  border-color: #7db2ff;
  background: linear-gradient(135deg, #2b7ff0 0%, #1a63bf 100%);
  color: #f5fbff;
}

body.dark-mode .lh-location-status.is-error {
  color: #ff8d8d;
}

body.dark-mode .lh-location-status.is-success {
  color: #78e8a2;
}

body.dark-mode .lh-location-map {
  border-color: #3d567d;
}

@media (max-width: 768px) {
  .lh-custom-location__grid {
    grid-template-columns: 1fr;
  }
}
