@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --bg:           #090f10;
  --surface:      #101a1b;
  --surface-2:    #152122;
  --surface-3:    #1d2e2f;
  --surface-4:    #243839;
  --border:       rgba(255,255,255,0.07);
  --border-md:    rgba(255,255,255,0.12);
  --violet:       #9f53ec;
  --violet-dim:   rgba(159,83,236,0.15);
  --orange:       #ff9d00;
  --orange-dim:   rgba(255,157,0,0.15);
  --blue:         #4fc3f7;
  --blue-dim:     rgba(79,195,247,0.12);
  --blue-glow:    rgba(79,195,247,0.25);
  --green:        #4caf82;
  --green-dim:    rgba(76,175,130,0.15);
  --red:          #ef5350;
  --red-dim:      rgba(239,83,80,0.12);
  --yellow:       #ffd740;
  --yellow-dim:   rgba(255,215,64,0.15);
  --text:         #cfe0e2;
  --text-dim:     #5a7577;
  --text-mid:     #8aacaf;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-xs:    5px;
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.6);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.4);
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 2rem 2rem 4rem;
  margin-left: 250px;
  transition: margin-left 0.3s ease;
}
body.sidebar-collapsed { margin-left: 0; }

/* Subtle grid bg — same as home.css / tierlist.css / draft.css */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,195,247,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,195,247,0.018) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 4rem 2rem 3rem;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at center, rgba(159,83,236,0.08), transparent 70%);
  pointer-events: none;
  animation: pulse-glow 8s infinite alternate;
}

@keyframes pulse-glow {
  0%   { opacity: 0.4; }
  100% { opacity: 0.9; }
}

.hero-eyebrow {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.6rem;
}

.hero h1 {
  font-family: 'Exo 2', sans-serif;
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  animation: title-pulse 6s infinite alternate;
}

@keyframes title-pulse {
  0%   { filter: drop-shadow(0 0 12px rgba(159,83,236,0.4)); }
  100% { filter: drop-shadow(0 0 28px rgba(159,83,236,0.6)); }
}

.hero-subtitle {
  font-family: 'Exo 2', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}

.hero-desc {
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── Layout ── */
.feedback-layout {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 1.8rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ── Form Card ── */
.feedback-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid rgba(159,83,236,0.25);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(159,83,236,0.07);
}

.feedback-card h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-bright);
  margin-bottom: 1.6rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* ── Type Selector ── */
.type-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.type-btn {
  font-family: 'Exo 2', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 8px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.type-btn .type-icon { font-size: 1.3rem; }

.type-btn:hover {
  background: var(--surface-3);
  color: var(--text);
}

.type-btn.active[data-type="bug"] {
  background: var(--red-dim);
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 12px rgba(239,83,80,0.15);
}

.type-btn.active[data-type="suggestion"] {
  background: var(--yellow-dim);
  border-color: var(--yellow);
  color: var(--yellow);
  box-shadow: 0 0 12px rgba(255,215,64,0.15);
}

.type-btn.active[data-type="other"] {
  background: var(--blue-dim);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 12px rgba(79,195,247,0.15);
}

/* ── Fields ── */
.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.45rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }

.field input:focus,
.field textarea:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(159,83,236,0.12);
}

.field textarea { min-height: 130px; }

/* ── Submit ── */
.submit-btn {
  width: 100%;
  font-family: 'Exo 2', sans-serif;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 28px;
  background: linear-gradient(135deg, var(--violet), rgba(159,83,236,0.7));
  color: var(--text-bright);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(159,83,236,0.25);
  margin-top: 0.4rem;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.submit-btn:hover::before { opacity: 1; }
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(159,83,236,0.4); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Status message ── */
.status-msg {
  display: none;
  margin-top: 1rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Exo 2', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.status-msg.success {
  display: block;
  background: var(--green-dim);
  border: 1px solid rgba(76,175,130,0.35);
  color: var(--green);
}

.status-msg.error {
  display: block;
  background: var(--red-dim);
  border: 1px solid rgba(239,83,80,0.3);
  color: var(--red);
}

/* ── Sidebar Info ── */
.sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.info-card h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.info-item:last-child { border-bottom: none; }

.info-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.info-text strong {
  display: block;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.info-text span {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.4;
}

.github-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 0.2s;
}

.github-link:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: var(--violet-dim);
}

.github-link svg {
  width: 18px; height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.78rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

/* ── Global scrollbar — same as home.css / tierlist.css / draft.css ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 3px; }

/* ── Responsive ── */
@media (max-width: 860px) {
  body { margin-left: 0; padding: 1rem 0.75rem 2rem; }
}

@media (max-width: 768px) {
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero h1 { font-size: 2rem; }
  .feedback-layout { grid-template-columns: 1fr; }
  .sidebar-info { order: -1; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; letter-spacing: 0; }
  .sidebar-info { grid-template-columns: 1fr; }
}

/* ── Image Upload ── */
.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.55;
  font-size: 0.7rem;
  margin-left: 4px;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--violet);
  background: var(--violet-dim);
}

.drop-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  pointer-events: none;
}

.drop-icon { font-size: 1.6rem; }

.drop-text {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  text-align: center;
}

.drop-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  opacity: 0.6;
}

.image-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.preview-item {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: var(--radius-sm);
  overflow: visible;
  flex-shrink: 0;
}

.preview-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: block;
}

.preview-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--red);
  border: 2px solid var(--bg);
  color: var(--text-bright);
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  font-weight: 900;
  transition: transform 0.15s, background 0.15s;
}

.preview-remove:hover {
  transform: scale(1.15);
  background: #ff7470;
}