/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0D1117;
  --surface: #161B22;
  --card: #1C2230;
  --accent: #F5A623;
  --accent2: #E8825A;
  --text: #F0EDE6;
  --muted: #8B949E;
  --border: #2A3040;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .4;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ===== HERO ===== */
.hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 166, 35, .1);
  border: 1px solid rgba(245, 166, 35, .25);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeDown .6s ease both;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: .85rem;
  animation: fadeDown .7s .1s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero p {
  font-size: 15px;
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 2rem;
  line-height: 1.65;
  font-weight: 300;
  animation: fadeDown .7s .2s ease both;
}

/* ===== TAGS ===== */
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 2rem;
  animation: fadeDown .7s .3s ease both;
}

.tag {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .02em;
  user-select: none;
}

.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 166, 35, .07);
}

.tag.on {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 166, 35, .1);
}

/* ===== SEARCH ===== */
.search-wrap {
  position: relative;
  margin-bottom: 1.25rem;
  animation: fadeDown .7s .35s ease both;
}

.search-wrap input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 62px 16px 20px;
  font-size: 15px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border .2s, background .2s;
}

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

.search-wrap input:focus {
  border-color: rgba(245, 166, 35, .5);
  background: var(--card);
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: none;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all .18s;
  color: #0D1117;
  font-weight: 700;
  line-height: 1;
}

.search-btn:hover {
  background: var(--accent2);
  transform: translateY(-50%) scale(1.06);
}

/* ===== QUICK PILLS ===== */
.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2rem;
  animation: fadeDown .7s .4s ease both;
}

.qpill {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
  font-family: 'DM Sans', sans-serif;
}

.qpill:hover {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(255, 255, 255, .2);
}

/* ===== ANSWER CARD ===== */
.answer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.75rem;
  min-height: 130px;
  animation: fadeDown .7s .45s ease both;
  transition: border-color .3s;
}

.answer-card.active {
  border-color: rgba(245, 166, 35, .35);
}

.answer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s infinite;
  flex-shrink: 0;
}

.answer-inner {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre-wrap;
}

.placeholder {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ===== BREEDS STRIP ===== */
.section-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-weight: 500;
}

.breeds-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 1.75rem;
  scrollbar-width: none;
  animation: fadeDown .7s .5s ease both;
}

.breeds-strip::-webkit-scrollbar {
  display: none;
}

.breed-card {
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  min-width: 96px;
}

.breed-card:hover {
  border-color: var(--accent);
  background: rgba(245, 166, 35, .06);
  transform: translateY(-3px);
}

.breed-icon {
  font-size: 24px;
  margin-bottom: 6px;
}

.breed-name {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 2rem;
  animation: fadeDown .7s .55s ease both;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 11px;
  color: var(--muted);
}

/* ===== ACORDEÃO ===== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.75rem;
  animation: fadeDown .7s .5s ease both;
}

.accordion-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: background .18s;
}

.accordion-header:hover {
  background: rgba(245, 166, 35, .04);
}

.accordion-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.accordion-icon {
  font-size: 16px;
}

.accordion-badge {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.accordion-arrow {
  font-size: 11px;
  color: var(--muted);
  transition: transform .25s ease;
}

.accordion-panel {
  display: none;
  padding: 0 12px 12px;
  border-top: 1px solid var(--border);
}

.accordion-panel.open {
  display: block;
}

/* ===== ANIMAL GRID ===== */
.animal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  padding-top: 12px;
}

.animal-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
}

.animal-card:hover {
  border-color: var(--accent);
  background: rgba(245, 166, 35, .06);
  transform: translateY(-2px);
}

.animal-icon {
  font-size: 22px;
  margin-bottom: 5px;
}

.animal-name {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 1.5rem 0 2.5rem;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ===== LOADING DOTS ===== */
.loading-dots {
  color: var(--muted);
  font-size: 14px;
}

.loading-dots span {
  display: inline-block;
  animation: pulse 1s infinite;
}

.loading-dots span:nth-child(2) { animation-delay: .15s; }
.loading-dots span:nth-child(3) { animation-delay: .3s; }

/* ===== ANIMATIONS ===== */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .25; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .hero  { padding: 2.5rem 0 1.5rem; }
}

/* ===== BREEDS HEADER COM SETAS ===== */
.breeds-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.breeds-arrows {
  display: flex;
  gap: 6px;
}

.arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  line-height: 1;
}

.arrow-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 166, 35, .08);
}

.arrow-btn:active {
  transform: scale(0.92);
}

.arrow-btn:disabled {
  opacity: 0.25;
  cursor: default;
  pointer-events: none;
}


.dog-photo {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
  animation: fadeDown .4s ease both;
}

/* ===== HISTÓRICO ===== */
.historico-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hist-pill {
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
  font-family: 'DM Sans', sans-serif;
}

.hist-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 166, 35, .07);
}

/* ===== BOTÃO COPIAR ===== */
.answer-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}

.action-btn {
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  transition: all .18s;
  font-family: 'DM Sans', sans-serif;
}

.action-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(245, 166, 35, .07);
}