:root {
  --bg-1: #fef6e4;
  --bg-2: #f3d2c1;
  --bg-3: #8bd3dd;
  --paper: rgba(255, 255, 255, 0.82);
  --ink: #172c66;
  --ink-soft: #3f4f85;
  --accent: #f582ae;
  --accent-2: #001858;
  --line: rgba(23, 44, 102, 0.15);
  --danger-bg: #ffe4e6;
  --danger-text: #be123c;
  --ok-bg: #dcfce7;
  --ok-text: #166534;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, rgba(245, 130, 174, 0.35), transparent 38%),
    radial-gradient(circle at 85% 15%, rgba(139, 211, 221, 0.45), transparent 35%),
    linear-gradient(130deg, var(--bg-1), var(--bg-2));
  padding: 24px 14px 60px;
}

.bg-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(2px);
}

.bg-shape-1 {
  width: 280px;
  height: 280px;
  background: rgba(0, 24, 88, 0.12);
  top: -90px;
  right: 8%;
  animation: floatA 7s ease-in-out infinite;
}

.bg-shape-2 {
  width: 220px;
  height: 220px;
  background: rgba(245, 130, 174, 0.2);
  bottom: 6%;
  left: -60px;
  animation: floatB 9s ease-in-out infinite;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.hero {
  margin-bottom: 18px;
}

.hero-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #fff;
  background: var(--accent-2);
}

.hero h1 {
  margin: 0;
  font-family: "Nanum Myeongjo", serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.hero-desc {
  margin-top: 10px;
  color: var(--ink-soft);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 12px 25px rgba(23, 44, 102, 0.08);
  backdrop-filter: blur(6px);
}

.compose-card {
  padding: 18px;
}

.compose-card h2,
.list-header h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.form-grid {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(245, 130, 174, 0.4);
  border-color: var(--accent);
}

.full-width {
  grid-column: 1 / -1;
}

button {
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 700;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(120deg, #ef476f, #f582ae);
}

.secondary-btn {
  color: #fff;
  background: linear-gradient(120deg, #205295, #2c74b3);
}

.ghost-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.list-header {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.post-list {
  margin-top: 12px;
  display: grid;
  gap: 14px;
}

.post-card {
  padding: 16px;
  animation: riseIn 0.35s ease both;
}

.post-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.post-title {
  margin: 0;
  font-size: 1.18rem;
}

.post-meta {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.post-content {
  margin: 10px 0 0;
  white-space: pre-wrap;
  line-height: 1.55;
}

.feedback-block {
  margin-top: 14px;
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}

.feedback-block h4 {
  margin: 0 0 10px;
}

.feedback-list {
  margin: 0;
  padding-left: 18px;
}

.feedback-list li {
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.feedback-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.status-panel,
.error-panel {
  margin: 10px 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
}

.status-panel {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.error-panel {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.hidden {
  display: none;
}

@keyframes riseIn {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes floatA {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

@keyframes floatB {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (max-width: 680px) {
  body {
    padding: 16px 10px 42px;
  }

  .post-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .compose-card,
  .post-card {
    padding: 14px;
  }
}
