/* ============================================================
   URO ARTIGO – Estilos front-end
   Bio card · Disclaimer · Índice (TOC) · Embed YouTube · FAQ
   ============================================================ */

/* ---------- Variáveis ---------- */
:root {
  --uro-primary:   #1a6fa8;
  --uro-primary-d: #145584;
  --uro-green:     #25d366;
  --uro-green-d:   #1da851;
  --uro-bg-light:  #f4f8fc;
  --uro-border:    #d0e3f0;
  --uro-text:      #2c3e50;
  --uro-radius:    10px;
  --uro-shadow:    0 2px 12px rgba(0,0,0,.10);
}

/* ============================================================
   EMBED YOUTUBE
   ============================================================ */
.uro-video-wrapper {
  margin: 0 0 2em;
}

.uro-video-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--uro-radius);
  box-shadow: var(--uro-shadow);
  background: #000;
}

.uro-video-responsive iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.uro-video-caption {
  text-align: center;
  font-size: .88em;
  color: #666;
  margin-top: .5em;
  font-style: italic;
}

/* ============================================================
   ÍNDICE DE CONTEÚDO (TOC)
   ============================================================ */
.uro-toc {
  background: var(--uro-bg-light);
  border: 1px solid var(--uro-border);
  border-left: 4px solid var(--uro-primary);
  border-radius: var(--uro-radius);
  padding: 1em 1.4em;
  margin: 0 0 2.2em;
  font-size: .93em;
}

.uro-toc-header {
  display: flex;
  align-items: center;
  gap: .5em;
  margin-bottom: .6em;
}

.uro-toc-header strong {
  flex: 1;
  font-size: 1em;
  color: var(--uro-text);
}

.uro-toc-icon {
  font-size: 1.1em;
}

.uro-toc-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .9em;
  color: var(--uro-primary);
  padding: 0 4px;
  line-height: 1;
  transition: transform .2s;
}

.uro-toc-toggle[aria-expanded="false"] {
  transform: rotate(180deg);
}

#uro-toc-list {
  margin: 0;
  padding-left: 1.4em;
  line-height: 1.9;
  transition: max-height .3s ease, opacity .3s ease;
  overflow: hidden;
}

#uro-toc-list.uro-toc-hidden {
  max-height: 0 !important;
  opacity: 0;
}

#uro-toc-list li a {
  color: var(--uro-primary);
  text-decoration: none;
}

#uro-toc-list li a:hover {
  text-decoration: underline;
}

#uro-toc-list li.uro-toc-sub {
  list-style-type: circle;
  margin-left: 1.2em;
  font-size: .92em;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border: 1px solid var(--uro-border);
  border-radius: var(--uro-radius);
  margin-bottom: 1em;
  overflow: hidden;
}

.faq-question {
  background: var(--uro-bg-light);
  margin: 0;
  padding: .8em 1.1em;
  font-size: 1em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.3em;
  color: var(--uro-primary);
  font-weight: 300;
  transition: transform .2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.faq-item.open .faq-answer {
  padding: .7em 1.1em 1em;
  max-height: 600px;
}

/* ============================================================
   CARD BIO DO MÉDICO
   ============================================================ */
.uro-author-bio-card {
  background: var(--uro-bg-light);
  border: 1px solid var(--uro-border);
  border-radius: var(--uro-radius);
  padding: 1.5em;
  margin: 2.5em 0 1.5em;
  box-shadow: var(--uro-shadow);
}

.uro-bio-inner {
  display: flex;
  gap: 1.4em;
  align-items: flex-start;
}

.uro-bio-photo {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--uro-primary);
  width: 96px;
  height: 96px;
}

.uro-bio-content {
  flex: 1;
}

.uro-bio-name {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--uro-text);
  margin: 0 0 .2em;
}

.uro-bio-crm {
  display: block;
  font-size: .82em;
  color: #666;
  margin-bottom: .6em;
  font-weight: 500;
}

.uro-bio-text {
  font-size: .93em;
  color: #444;
  line-height: 1.6;
  margin-bottom: 1em;
}

.uro-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: var(--uro-green);
  color: #fff !important;
  text-decoration: none !important;
  padding: .55em 1.1em;
  border-radius: 50px;
  font-size: .9em;
  font-weight: 600;
  transition: background .2s, transform .15s;
  box-shadow: 0 2px 8px rgba(37,211,102,.35);
}

.uro-whatsapp-btn:hover {
  background: var(--uro-green-d);
  transform: translateY(-1px);
}

.uro-whatsapp-btn svg {
  flex-shrink: 0;
}

/* ============================================================
   DISCLAIMER
   ============================================================ */
.uro-disclaimer {
  background: #fffbea;
  border: 1px solid #f0d88a;
  border-left: 4px solid #e6b800;
  border-radius: var(--uro-radius);
  padding: .9em 1.2em;
  font-size: .87em;
  color: #5a4a00;
  line-height: 1.6;
  margin-top: 1.5em;
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 600px) {
  .uro-bio-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .uro-whatsapp-btn {
    width: 100%;
    justify-content: center;
  }
}
