/* Crypto Tracker Pro - ajustes responsivos */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
canvas,
svg {
  max-width: 100%;
}

@media (max-width: 768px) {
  header {
    width: 100%;
    padding: 1.25rem 1rem;
  }

  header h1 {
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  header p {
    margin-top: 0.5rem;
    font-size: 1rem;
  }

  .container {
    width: 100%;
    max-width: 100%;
  }

  .layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 1rem;
    padding: 1rem;
  }

  aside {
    position: static;
    top: auto;
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border-radius: 12px;
  }

  aside h2 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  main,
  #content,
  .price-card,
  .chart-card,
  .analysis-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    width: 100%;
  }

  .search-box input {
    width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .search-box button {
    width: 48px;
    min-width: 48px;
  }

  .pair-selector,
  .quick-buttons {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pair-option,
  .quick-btn {
    width: 100%;
    min-width: 0;
  }

  .crypto-list,
  .crypto-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .crypto-card {
    gap: 0.75rem;
    overflow: hidden;
  }

  .crypto-card > div {
    min-width: 0;
  }

  .price-card {
    padding: 1.25rem;
  }

  .price {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
    overflow-wrap: anywhere;
  }

  .chart-card,
  .analysis-card {
    padding: 1rem;
  }

  .chart-container {
    height: 260px;
    min-width: 0;
  }

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

  .reasoning {
    overflow-wrap: anywhere;
  }

  footer {
    width: 100%;
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 420px) {
  .layout {
    padding: 0.75rem;
  }

  aside {
    padding: 0.85rem;
  }

  .quick-buttons,
  .pair-selector {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .crypto-card {
    padding: 0.85rem;
  }

  .chart-container {
    height: 220px;
  }
}
