/* ===== Estils globals del manual ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #c0c0c0;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #000000;
  line-height: 1.5;
  padding: 1.5rem 1rem;
}

/* Enllaços */
a {
  color: #000099;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: #006600;
}
a:link {
  color: #3333ff;
}
a:visited {
  color: #cc33cc;
}
a:active {
  color: #ff0000;
}

/* Capçaleres i títols */
h1, .title-main {
  font-size: 1.8rem;
  text-align: center;
  color: #006600;
  margin: 1rem 0;
  font-weight: 600;
}


/* Capçaleres i títols */
h2, .section-title {
  font-size: 1.4rem;
  text-align: center;
  color: #000000;
  margin: 1rem 0;
  font-weight: 600;
}


/* Capçaleres i títols */
h3, .subsection-title {
  font-size: 1.2rem;
  text-align: center;
  color: #000099;
  margin: 1rem 0;
  font-weight: 600;
}


/* Centrat */
.center {
  text-align: center;
}
.center-block {
  display: flex;
  justify-content: center;
  margin: 1rem 0;
}

/* Imatges */
img {
  max-width: 100%;
  height: auto;
}
.img-frame {
  border: 1px solid #555;
  background: #b0b0b0;
  padding: 4px;
  border-radius: 10px;
}
.image-caption {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.3rem;
  margin-bottom: 1.2rem;
  color: #2c2c2c;
}

/* Caixes de text */
.text-boxl {
  text-align: left;
  background: #a9a9a9;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  margin: 1rem 0;
}
.text-boxc {
  text-align: center;
  background: #a9a9a9;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  margin: 1rem 0;
}
.text-boxc li {
  margin: 0.5rem 0;
}

/* Llistes d'actualitzacions */
.updates-list {
  background: #a9a9a9;
  padding: 1rem 1.5rem;
  border-radius: 20px;
  margin: 1rem 0;
}
.updates-list li {
  margin: 0.5rem 0;
}

/* Barra de navegació principal */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 1.5rem 0;
  padding: 0.5rem 0.8rem;
  background: #a0a0a0;
  border-radius: 50px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}
.main-nav a {
  font-weight: 600;
  text-decoration: none;
  color: #000066;
  padding: 0.3rem 0.9rem;
  border-radius: 40px;
  transition: all 0.2s;
  font-size: 0.85rem;
  background: #c8c8c8;
}
.main-nav a:hover {
  background-color: #2c6e2c;
  color: white;
  text-decoration: none;
}

/* Enllaços d'idioma */
.lang-links a, .translate-btn {
  font-weight: bold;
  background-color: #d4d4d4;
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  text-decoration: none;
  color: #1a3e6f;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.lang-links a:hover, .translate-btn:hover {
  background-color: #b0b0b0;
  color: #000;
}

/* Barra superior */
.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0.8rem;
}

/* Contenidor */
.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: transparent;
}

/* Capçalera */
.header {
  text-align: center;
  margin-bottom: 1rem;
}
.logo {
  max-width: 100%;
  width: 506px;
  height: auto;
  margin-bottom: 0.5rem;
}

/* Peu de pàgina */
.footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #777;
  font-size: 0.8rem;
}

/* Separador */
hr {
  border: 0.5px solid #888;
  margin: 1rem 0;
}

/* Elements ocults */
.ya-share2, .b-iframe, .translate-banner {
  display: none !important;
}

/* Estils específics del manual (per a les llistes de seccions, etc.) */
.section-index {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
}
.section-index a {
  font-weight: bold;
}

/* Marges per a llistes de contingut */
.content-list {
  margin-left: 40px;
}
.content-list li {
  margin: 0.25rem 0;
}

/* Estils per a codi o blocs de text tècnic */
.monospace {
  font-family: 'Courier New', Courier, monospace;
}

/* ===== Nous estils per a les seccions del manual ===== */

/* Títols de secció (blau fosc) */
.section-title {
  font-family: Helvetica, Arial, sans-serif;
  font-weight: bold;
}

/* Comentaris en blau (estil codi) */
.comment-blue {
  color: #3333ff;
}

/* Text en verd fosc per a exemples o codi */
.code-green {
  color: #006600;
}

/* Caixes amb vora de codi (simula el codi font) */
.code-block {
  font-family: 'Courier New', Courier, monospace;
  color: #3333ff;
  background: #e8e8e8;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin: 0.5rem 0;
  white-space: pre-wrap;
}

/* Línies de comentari en el codi */
.comment-line {
  color: #3333ff;
  font-family: 'Courier New', Courier, monospace;
}

/* Estil per a les descripcions de paràmetres (cursiva + blau) */
.param-label {
  font-style: italic;
  color: #000099;
}

/* Text en negreta per a èmfasi */
.strong {
  font-weight: bold;
}

/* Blocs de codi d'exemple (amb fons gris clar i vora) */
.example-code {
  font-family: 'Courier New', Courier, monospace;
  background: #e8e8e8;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  margin: 0.5rem 0;
  white-space: pre-wrap;
  border-left: 4px solid #3333ff;
  line-height: 1.2;   /* <--- Afegir això */
}

/* Etiquetes de paràmetres (estil llista) */
.param-list {
  margin-left: 40px;
  list-style: none;
}
.param-list li {
  margin-bottom: 0.25rem;
}
.param-list .param-name {
  font-style: italic;
  color: #000099;
}

/* Taules (per a les definicions de marques) */
.param-table {
  border-collapse: collapse;
  margin: 0.5rem 0;
}
.param-table td, .param-table th {
  border: 1px solid #666;
  padding: 0.3rem 0.6rem;
  background: #d0d0d0;
}

/* Estils per a notes i exemples */
.note-box {
  background: #d0d0d0;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  margin: 0.5rem 0;
}
.note-box .note-label {
  font-weight: bold;
  color: #000099;
}

/* Per a les llistes de paràmetres amb indentació */
.param-indent {
  margin-left: 40px;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    border-radius: 20px;
    gap: 0.3rem;
  }
  .main-nav a {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
  }
}
