/* ── Hata Bildir Sayfası ── */

.bugs-hero {
  padding: 72px 0 30px;
  text-align: center;
}

.bugs-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.bugs-hero p {
  margin: 14px auto 0;
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Form Kartı ── */

.bug-form-card {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 32px 40px;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 7px;
  color: var(--text);
}

.form-group label .required {
  color: #d44;
  margin-left: 2px;
}

.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(8, 85, 68, .22);
  border-radius: 14px;
  background: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  min-height: 160px;
  resize: vertical;
}

.form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 122, 99, .14);
}

.form-group textarea::placeholder {
  color: #a0aaa4;
}

.form-group .helper {
  display: block;
  margin-top: 5px;
  font-size: .82rem;
  color: var(--text-muted);
}

/* ── Gönder Butonu ── */

.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(165deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 10px 24px rgba(8, 85, 68, .24);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, opacity .2s;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}

.btn-submit:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-submit .spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}

.btn-submit.is-loading .spinner {
  display: inline-block;
}

.btn-submit.is-loading .btn-label {
  opacity: 0;
  width: 0;
  overflow: hidden;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Bilgilendirme Kutusu ── */

.info-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: .92rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.info-box.info-privacy {
  background: var(--brand-soft);
  color: var(--brand-deep);
  border: 1px solid rgba(8, 85, 68, .16);
}

/* ── Toast Mesajı ── */

.toast-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.toast-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.toast-card {
  background: #fff;
  border-radius: 22px;
  padding: 36px 32px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
  transform: scale(.92);
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}

.toast-overlay.is-active .toast-card {
  transform: scale(1);
}

.toast-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}

.toast-icon.success {
  background: linear-gradient(135deg, #dff2eb 0%, #b8e6d3 100%);
}

.toast-icon.error {
  background: linear-gradient(135deg, #fde8e8 0%, #f5c6c6 100%);
}

.toast-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.toast-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.toast-card .btn-toast-close {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  transition: background .2s;
}

.toast-card .btn-toast-close:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ── Hata Listeleri ── */

.bugs-lists-container {
  max-width: 900px;
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .bugs-lists-container {
    grid-template-columns: 1fr 1fr;
  }
}

.bugs-list h2 {
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--text);
  font-family: var(--font-display);
}

.bug-items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bug-item {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

.bug-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.bug-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.bug-id {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: monospace;
  background: #f1f5f3;
  padding: 4px 8px;
  border-radius: 6px;
}

.bug-date {
  font-size: 0.8rem;
  color: #a0aaa4;
}

.bug-desc {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  margin: 0 0 12px;
  word-break: break-word;
}

.bug-status {
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.bug-status.bekleniyor {
  background: #fff3cd;
  color: #856404;
}

.bug-status.cozuldu {
  background: #d4edda;
  color: #155724;
}

.bug-status.kismi {
  background: #cce5ff;
  color: #004085;
}

.bug-empty {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.95rem;
  padding: 24px;
  text-align: center;
  background: #f8faf9;
  border-radius: 16px;
  border: 1px dashed #cbd5d0;
}

/* ── Responsive ── */

@media (max-width: 700px) {
  .bugs-hero { padding-top: 48px; }
  .bug-form-card { padding: 24px 18px 28px; }
}
