/* === Grundlayout, samma tänk som about.css === */

/* Bakgrund runt info-kortet */
.info-section {
  padding: 3rem 1rem;
  background: #eaf6ff;
}

/* Vit box med två kolumner på desktop */
.info-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  max-width: 1000px;          /* lite bredare än about, men fortfarande safe */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;  /* text + formulär/resultat */
  gap: 2rem;
  padding: 2rem;
}

/* Rubriker & text i kolumnerna */
.info-column h2,
.info-column h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.info-column p {
  font-size: 1rem;
  line-height: 1.5;
  color: #444;
}

/* Breadcrumbs – samma tänk som about.css */
.breadcrumb-container {
  max-width: 1000px;
  margin: 1rem auto;
  padding: 0 1rem;
}
.breadcrumb {
  background: none;
  margin: 0;
  padding: 0;
}
.breadcrumb-item a {
  text-decoration: none;
  color: #1976d2;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #444;
  font-weight: 600;
}

/* Shortener-box ska fylla kolumnen (inte ha egen max-width från style.css) */
.info-column .shortener-box {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Liten spacing ovanför resultat */
#verifyResult {
  margin-top: 1rem;
}

/* VIKTIGT: gör så att långa URL:er radbryts istället för att spränga layouten */
#verifyResult p,
#result-url,
#result-shorturl {
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* === Mobilanpassning – enkel & robust === */
@media (max-width: 768px) {

  /* Vit box blir enkelkolumn på mobil */
  .info-container {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 1.5rem 1rem;
  }

  /* Lite extra luft mellan textkolumn och formulär/resultat-kolumn */
  .info-column + .info-column {
    margin-top: 1.5rem;
  }

  /* Shortener-box i kolumnlayout på mobil */
  .shortener-box {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .shortener-box input {
    width: 100%;
  }

  .shortener-box button {
    width: 100%;
  }

  /* Resultatrutan fyller bredden och håller sig innanför */
  #verifyResult {
    width: 100%;
    box-sizing: border-box;
  }
}