/* Reset e Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e3a5f;
  --primary-light: #2d4a6f;
  --primary-dark: #0f2847;
  --accent: #dc2626;
  --background: #f8fafc;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.heart-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.logo-text p {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Header Buttons */
.header-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}

.btn-header:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-header .icon {
  width: 1rem;
  height: 1rem;
}

/* Tooltip */
.tooltip {
  position: relative;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: rgba(0, 0, 0, 0.9);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1000;
  top: 100%;
  left: 50%;
  margin-left: -110px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.75rem;
  line-height: 1.4;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent rgba(0, 0, 0, 0.9) transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.page-header .subtitle {
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.page-header .description {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Tabs Navigation */
.tabs-container {
  margin-bottom: 2rem;
}

.tabs-nav {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  background: var(--surface);
  padding: 0.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.tab-button {
  padding: 0.75rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-button:hover {
  background: rgba(30, 58, 95, 0.05);
  color: var(--primary);
}

.tab-button.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Grid Layout */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .grid-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.content-column, .image-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(to right, rgba(30, 58, 95, 0.05), transparent);
  border-bottom: 1px solid var(--border);
}

.card-header .icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}

.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

.card-content {
  padding: 1.25rem;
}

.card-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.card-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.card-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Highlight Boxes */
.highlight-box a {
  background-color: var(--primary);
  color: white; /* Texto branco sobre o fundo colorido */
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s;
  display: inline-block;
}

.highlight-box a:hover {
  transform: translateY(-2px); /* Elevação leve ao passar o mouse */
  filter: brightness(1.2);
}

/* Info Boxes */
.info-box {
  background: rgba(59, 130, 246, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.info-box h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.info-box p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
  color: #92400e;
}

.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--info);
  color: #1e40af;
}

/* Reasons Grid */
.reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .reasons-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.reason-card {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05) 0%, rgba(30, 58, 95, 0.02) 100%);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s;
}

.reason-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.reason-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  color: var(--accent);
}

.reason-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.reason-card h4 {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.reason-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Procedure Steps */
.procedure-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.procedure-step:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step-content p {
  margin-bottom: 0.5rem;
}

.step-content ul {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

.step-content li {
  margin-bottom: 0.25rem;
}

/* Medication Items */
.medication-item {
  background: rgba(248, 250, 252, 0.5);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary);
}

.medication-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.medication-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Prep Sections */
.prep-section {
  background: var(--background);
  padding: 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.prep-section h4 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.prep-section p {
  margin-bottom: 0.5rem;
}

.prep-list {
  margin-left: 1.5rem;
  margin-bottom: 0;
}

.prep-list li {
  margin-bottom: 0.5rem;
}

.benefit-list {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.benefit-list li {
  margin-bottom: 0.5rem;
}

/* Risk Items */
.risk-item {
  background: rgba(248, 250, 252, 0.5);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--accent);
}

.risk-item h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.risk-item p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* FAQ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: rgba(30, 58, 95, 0.02);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.faq-question:hover {
  background: rgba(30, 58, 95, 0.05);
}

.faq-question h4 {
  margin: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 1rem 1.25rem;
  background: var(--background);
  border-top: 1px solid var(--border);
}

.faq-item.active .faq-answer {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.faq-answer p {
  margin-bottom: 0;
}

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

/* Final Message */
.final-message {
  margin-top: 2rem;
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.05) 0%, rgba(30, 58, 95, 0.02) 100%);
}

.final-message .card-content {
  text-align: center;
}

.final-message p {
  font-size: 1rem;
  line-height: 1.8;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}

.footer-content p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-note {
  opacity: 0.8;
  font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header h2 {
    font-size: 1.5rem;
  }

  .page-header .subtitle {
    font-size: 1rem;
  }

  .tabs-nav {
    gap: 0.25rem;
  }

  .tab-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .grid-layout {
    grid-template-columns: 1fr;
  }

  .reason-card {
    padding: 1rem;
  }

  .procedure-step {
    gap: 0.75rem;
  }

  .step-number {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .logo {
    justify-content: center;
  }

  .page-header h2 {
    font-size: 1.25rem;
  }

  .tabs-nav {
    flex-direction: column;
  }

  .tab-button {
    width: 100%;
    text-align: left;
  }

  .card-header {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .card-content {
    padding: 1rem;
  }

  .reason-card {
    text-align: left;
  }

  .reason-icon {
    margin: 0 0 0.5rem 0;
  }
}
