@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  --red: #fa0f00;
  --red-deep: #c91a10;
  --ink: #131313;
  --ink-soft: #4b4540;
  --stone: #6f6962;
  --paper: #f6f3ef;
  --card: #ffffff;
  --card-alt: #fcfaf7;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --shadow: 0 20px 48px rgba(20, 16, 13, 0.08);
  --success: #177245;
  --warning: #9e5c00;
  --danger: #a61b12;
  --font: 'DM Sans', system-ui, sans-serif;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background:
    radial-gradient(circle at top right, rgba(250, 15, 0, 0.08), transparent 28%),
    linear-gradient(180deg, #fffdfc 0%, #f6f3ef 100%);
  color: var(--ink);
}

body { padding: 18px 18px 40px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.page-shell { max-width: 1740px; margin: 0 auto; }

.site-header,
.toolbar,
.surface,
.strategy-card,
.detail-page,
.gallery-header {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 20px;
  backdrop-filter: blur(14px);
}

.brand-lockup { display: flex; align-items: center; gap: 16px; }
.brand-logo { width: 76px; height: auto; display: block; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }
.brand-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.brand-title { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.header-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.header-link,
.header-link-strong,
.vote-btn,
.detail-btn,
.sort-select,
.segmented button {
  min-height: 40px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.header-link,
.header-link-strong,
.vote-btn,
.detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  cursor: pointer;
}

.header-link:hover,
.vote-btn:hover,
.segmented button:hover,
.sort-select:hover {
  border-color: var(--red);
  color: var(--red);
}

.header-link-strong,
.detail-btn,
.vote-btn.active,
.segmented button.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.header-link-strong:hover,
.detail-btn:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}

.gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 22px;
  margin-bottom: 18px;
}

.gallery-title {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.section-kicker,
.toolbar-label,
.detail-eyebrow,
.prompt-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-kicker,
.prompt-tag { color: var(--red); }
.toolbar-label,
.detail-eyebrow { color: var(--stone); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 340px;
}

.stat-card {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card-alt);
}

.stat-value { font-size: 20px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.stat-label { margin-top: 5px; font-size: 11px; font-weight: 600; line-height: 1.3; color: var(--stone); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.toolbar-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
  justify-content: space-between;
  align-items: flex-end;
}

.toolbar-group { display: flex; flex-direction: column; gap: 6px; }

.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented button { padding: 0 12px; cursor: pointer; }

.sort-select {
  min-width: 170px;
  padding: 0 12px;
  outline: none;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 12px;
}

.strategy-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.strategy-card:hover {
  border-color: rgba(250, 15, 0, 0.26);
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(20, 16, 13, 0.1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-top h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.author-line { margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.author-line strong { color: var(--ink); }

.flag-stack { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

.status-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-top { background: rgba(250, 15, 0, 0.1); color: var(--red); border-color: rgba(250, 15, 0, 0.16); }
.status-new { background: rgba(0, 0, 0, 0.06); color: var(--ink); border-color: rgba(0, 0, 0, 0.08); }
.status-feedback { background: rgba(158, 92, 0, 0.1); color: var(--warning); border-color: rgba(158, 92, 0, 0.18); }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 6px;
}

.meta-card,
.detail-metric,
.detail-row,
.comment-card,
.comment-guidance {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-alt);
}

.meta-card,
.detail-metric { padding: 10px 12px; }

.meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

.meta-value { margin-top: 4px; font-size: 13px; font-weight: 700; line-height: 1.3; }

.summary-copy,
.detail-summary,
.detail-row span,
.comment-card p,
.form-note,
.detail-subline {
  color: var(--ink-soft);
}

.summary-copy,
.detail-summary {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.summary-copy {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.rating-line { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.stars { letter-spacing: 0.08em; color: var(--red); }

.theme-list,
.detail-theme-list,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.theme-item,
.detail-theme-item,
.moderation-chip {
  padding: 5px 8px;
  border-radius: 10px;
  background: var(--card-alt);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.empty-state {
  padding: 34px 24px;
  border-radius: 24px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--stone);
  font-size: 15px;
  line-height: 1.6;
}

.strategy-detail-view[hidden] { display: none; }

.detail-toolbar {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.detail-page {
  border-radius: 28px;
  padding: 28px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-overview {
  padding: 26px;
  border-radius: 22px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 68%, rgba(250, 15, 0, 0.08) 100%),
    url('/assets/adobe-summit-hero-bg.jpg') center/cover no-repeat;
  border: 1px solid var(--line);
}

.detail-title {
  margin: 10px 0 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.detail-subline { margin: 10px 0 0; font-size: 15px; font-weight: 600; }

.detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.detail-action-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 16px;
}

.detail-metric strong { display: block; font-size: 24px; letter-spacing: -0.04em; }
.detail-metric span { font-size: 12px; color: var(--stone); font-weight: 600; }

.detail-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-side-card,
.detail-section {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.detail-side-card { padding: 20px; }
.detail-side-title { margin: 6px 0 0; font-size: 24px; letter-spacing: -0.04em; }

.detail-side-copy {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.detail-section {
  margin-top: 18px;
  padding: 22px;
}

.detail-heading {
  margin: 8px 0 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-row { padding: 14px 16px; }
.detail-row strong { display: block; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.detail-row span { font-size: 14px; line-height: 1.62; }

.comment-list { display: grid; gap: 12px; }

.comment-card { padding: 16px; }
.comment-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.comment-author { font-size: 15px; font-weight: 700; color: var(--ink); }
.comment-meta { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--stone); }
.comment-card p { margin: 10px 0 0; font-size: 14px; line-height: 1.68; }

.comment-guidance {
  padding: 16px;
  margin-bottom: 14px;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

input,
textarea,
select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(250, 15, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(250, 15, 0, 0.08);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card-alt);
}

.checkbox-row input {
  width: auto;
  margin-top: 3px;
}

.checkbox-row span {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.detail-footer-actions {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.form-note {
  font-size: 13px;
  line-height: 1.6;
}

.submission-note {
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
}

.submission-note.show { display: block; }
.submission-note.success { background: rgba(23, 114, 69, 0.1); color: var(--success); }
.submission-note.warning { background: rgba(158, 92, 0, 0.1); color: var(--warning); }
.submission-note.error { background: rgba(166, 27, 18, 0.1); color: var(--danger); }

@media (max-width: 1180px) {
  .gallery-header,
  .detail-hero,
  .field-grid,
  .detail-metrics,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .gallery-header,
  .site-header,
  .toolbar,
  .submit-row,
  .card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .stat-grid {
    min-width: 0;
    width: 100%;
  }

  .flag-stack,
  .header-links {
    align-items: flex-start;
    justify-content: flex-start;
  }
}
