/* === WYGLĄD STRONY JAK W bonusy.html === */
body {
  background: #0b0f14;
  color: #e0d6b3;
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 20px;
}

h1 {
  text-align: center;
  color: #00ffae;
  text-shadow: 0 0 10px #00ffae55;
  margin-bottom: 25px;
}

/* --- LEWY PANEL GENERATORA --- */
.generator-panel {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #222;
  border-radius: 10px;
  padding: 25px;
  margin: 0 auto 35px;
  max-width: 950px;
  line-height: 1.7;
  box-shadow: 0 0 10px rgba(0,255,174,0.1);
}

.generator-panel h2 {
  color: #00ffae;
  text-shadow: 0 0 8px #00ffae33;
  margin-top: 0;
}

/* --- FILTRY --- */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 20px 0;
}

select {
  background: #111;
  color: #00ffae;
  border: 1px solid #00ffae44;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: #00ffae;
  box-shadow: 0 0 8px #00ffae55;
}

/* --- BONUS PICKER --- */
.bonus-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.bonus-picker label {
  background: rgba(0, 255, 174, 0.05);
  border: 1px solid #00ffae33;
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.bonus-picker label:hover {
  background: rgba(0,255,174,0.12);
}

/* --- PODGLĄD KAMIENIA --- */
.stone-preview {
  text-align: center;
  margin: 20px auto 10px;
  background: rgba(0, 255, 174, 0.05);
  border: 1px solid #00ffae33;
  border-radius: 8px;
  width: 180px;
  padding: 12px 8px;
  box-shadow: 0 0 10px rgba(0, 255, 174, 0.1);
  transition: box-shadow 0.3s ease;
  animation: fadeIn 0.6s ease;
}

.stone-preview:hover {
  box-shadow: 0 0 20px rgba(0, 255, 174, 0.25);
}

.stone-preview img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 8px #00ffae55);
  transition: transform 0.2s ease, filter 0.3s ease;
}

.stone-preview img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 12px #00ffaeaa);
}

#previewLabel {
  color: #00ffae;
  font-weight: 600;
  font-size: 14px;
  text-shadow: 0 0 8px #00ffae33;
}

/* --- PRZYCISKI --- */
.generator-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.bonusy-btn {
  background: linear-gradient(180deg, #007a47, #004c2e);
  color: #00ffae;
  border: 1px solid #00ffae55;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  text-shadow: 0 0 6px #00ffae33;
  transition: 0.2s;
}

.bonusy-btn:hover {
  background: linear-gradient(180deg, #00b06b, #007a47);
  color: #fff;
  box-shadow: 0 0 10px #00ffae;
}

.bonusy-btn.danger {
  background: linear-gradient(180deg, #5e1b1b, #3c0e0e);
  border-color: #ff555533;
  color: #ff7b7b;
}

.bonusy-btn.danger:hover {
  background: linear-gradient(180deg, #a62828, #5e1b1b);
  color: #fff;
  box-shadow: 0 0 10px #ff5555;
}

/* --- KARTY WYNIKÓW --- */
.results {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  text-align: center;
}

.stone-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid #1b1b1b;
  border-radius: 10px;
  padding: 18px 20px;
  width: 260px;
  box-shadow: 0 0 12px rgba(0, 255, 174, 0.15);
  transition: 0.25s ease;
  opacity: 0;
  transform: translateY(10px);
  animation: appear 0.5s ease forwards;
}

.stone-card:hover {
  background: rgba(0, 255, 174, 0.05);
  box-shadow: 0 0 16px rgba(0, 255, 174, 0.25);
  transform: translateY(-3px);
}

/* --- Nagłówek kamienia --- */
.stone-card h3 {
  color: #00ffae;
  font-weight: 700;
  margin: 8px 0 10px;
  border-bottom: 1px solid #00ffae33;
  padding-bottom: 4px;
  text-shadow: 0 0 8px #00ffae55;
}

.stone-card h3 span {
  color: #ffd166;
  font-weight: 500;
}

/* --- Ikona kamienia --- */
.stone-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 0 6px #00ffae55);
  transition: 0.3s;
}

.stone-card:hover .stone-icon {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px #00ffaeaa);
}

/* --- Lista bonusów --- */
.stone-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: #e0d6b3;
  text-align: left;
}

.stone-card li {
  font-size: 14px;
  margin: 3px 0;
}

/* --- PRZYCISKI GÓRNE --- */
.buttons-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
}

.buttons-row a {
  background: linear-gradient(180deg, #007a47, #004c2e);
  color: #00ffae;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #00ffae55;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.buttons-row a:hover {
  background: linear-gradient(180deg, #00b06b, #007a47);
  color: #fff;
  box-shadow: 0 0 10px #00ffae;
}

/* --- ANIMACJE --- */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 880px) {
  .filters {
    flex-direction: column;
    align-items: center;
  }
  .generator-panel {
    max-width: 100%;
  }
  .stone-preview {
    width: 150px;
  }
}

/* --- Sekcje bonusów --- */
.bonus-section {
  margin-top: 8px;
}

.bonus-header {
  color: #00ffae;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  text-align: center;
  text-shadow: 0 0 6px #00ffae55;
}

.bonus-separator {
  text-align: center;
  margin: 8px 0;
  color: #00ffae99;
  font-size: 13px;
  letter-spacing: 2px;
  user-select: none;
  opacity: 0.8;
}

.bonus-separator span {
  display: inline-block;
  text-shadow: 0 0 8px #00ffae33;
}
