#opiniaForm {
  background-color: white;
  padding: 2vw;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin-bottom: 40px;
  margin: auto;
  margin-top: 150px;
}

#opinia-nick, #opinia-email,#tresc-opinia, #opinia-send {
  margin: 10px 0;
  padding: 10px;
  font-size: 16px;
  resize: vertical;
}

#opinia-send {
  background: #c31010;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#opinia-send:hover {
  background: #911f1f;
}

.gwiazdki-box {
  display: flex;
  gap: 10px;
  font-size: 40px;
  cursor: pointer;
}

.gwiazdka {
  color: gold;
  transition: color 0.2s;
  user-select: none;
}

.gwiazdka:hover,
.gwiazdka.hover {
  color: gold;
}

.opinia {
  background: #fff;
  padding: 15px 20px;
  margin-bottom: 1vw;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.opinia:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
}

.opinia-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin-bottom: 8px;
  color: #111827;
}
.opinie-text-header{
  color: rgb(40, 54, 123);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 2.5vw;
  margin-bottom: 30px;
  margin-top: 30px;
  text-align: center;
}
.opinia-tresc{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.opinia-data{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
/* Gwiazdki */
.srednia-ocena .gwiazdki {
  font-size: 1.5rem;
  color: gold;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Liczba opinii */
/* Kontener statystyk – pasujący do białego kontenera i czerwonej akcji */
.opinie-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5vw;
  background: #f7f7f7; /* delikatny szary */
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin-bottom: 30px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Średnia ocena */
.srednia-ocena {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2a3d85; /* ciemnoniebieski pasujący do nagłówków */
}

.srednia-ocena .gwiazdki {
  font-size: 1.4rem;
  color: #f5c518; /* złote gwiazdki */
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Liczba opinii */
.liczba-opinii {
  background: #c31010; /* czerwony pasujący do przycisku */
  color: #fff;
  padding: 6px 15px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.2s, background 0.2s;
  font-size: 0.95rem;
}

.liczba-opinii:hover {
  transform: scale(1.05);
  background: #911f1f;
}

/* Responsywność */
@media screen and (max-width:500px){
  .opinie-stats {
    flex-direction: column;
    gap: 10px;
    width: fit-content;
  }
  .srednia-ocena { font-size: 1rem; }
  .srednia-ocena .gwiazdki { font-size: 1.2rem; }
  .liczba-opinii { font-size: 0.85rem; padding: 5px 12px; }
}

.opinia-stars {
  color: #facc15;
  font-size: 1.2rem;
}

.opinia-content {
  font-size: 1rem;
  color: #374151;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin-bottom: 8px;
  line-height: 1.5;
}

.opinia-date {
  font-size: 0.85rem;
  color: #5b606b;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  text-align: right;
}
.opinia-email {
  font-size: 0.9rem;
  color: #444;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin-top: 5px;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 6px;
}
.opinia-reactions span {
  cursor: pointer;
  transition: transform 0.2s, color 0.2s;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  user-select: none;
}

.opinia-reactions span:hover {
  transform: scale(1.2);
  color: #c31010;
}

.opinia-reactions span.reacted {
  transform: scale(1.3);
  color: #ff9900;
}

/* Kontener statystyk */
.opinie-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, #4e54c8, #8f94fb);
  color: white;
  padding: 15px 25px;
  border-radius: 15px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin-bottom: 30px;
  flex-wrap: wrap;
}

/* Średnia ocena */
.srednia-ocena {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}


/* Responsywność */
@media (max-width: 600px) {
  #opiniaForm {
    padding: 20px;
    margin-top: 80px;
  }

  .gwiazdki-box {
    font-size: 1.8rem;
  }

  .opinie-text-header {
    font-size: 1.6rem;
  }

  .opinia {
    padding: 12px 15px;
  }

  .opinia-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}