:root {
  --bg: #f4efe7;
  --panel: rgba(255, 250, 243, 0.82);
  --panel-border: rgba(63, 47, 33, 0.12);
  --text: #22170e;
  --muted: #6f5a48;
  --shadow: 0 24px 60px rgba(72, 52, 27, 0.12);
  --need-to-apply: #f5a65b;
  --applied: #4d9a8b;
  --interviewing: #4f7cf2;
  --rejected: #cf5f5f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 205, 146, 0.55), transparent 28%),
    radial-gradient(circle at top right, rgba(96, 159, 255, 0.25), transparent 24%),
    linear-gradient(180deg, #f8f3ec 0%, #efe6d9 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
}

.hero-copy,
.hero-stats,
.panel {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 36px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--muted);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  line-height: 1;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 7vw, 5.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.hero-text {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-stats {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.stat-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(34, 23, 14, 0.08);
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  margin-bottom: 4px;
}

.stat-card span {
  color: var(--muted);
}

.layout {
  display: grid;
  grid-template-columns: minmax(310px, 360px) minmax(0, 1fr);
  gap: 24px;
}

.panel {
  padding: 28px;
}

.board-heading,
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.internship-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.internship-form label,
.status-control {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(34, 23, 14, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  padding: 14px 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(79, 124, 242, 0.8);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.primary-button,
.ghost-button,
.delete-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.primary-button:hover,
.ghost-button:hover,
.delete-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  padding: 14px 18px;
  background: linear-gradient(135deg, #22170e, #5e4534);
  color: #fffaf4;
}

.ghost-button {
  padding: 12px 16px;
  background: rgba(34, 23, 14, 0.06);
  color: var(--text);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.status-chip {
  padding: 16px;
  border-radius: 20px;
  color: #fff;
  min-height: 100px;
  display: grid;
  align-content: end;
  gap: 4px;
}

.status-chip strong {
  font-size: 1.9rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
}

.internship-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(34, 23, 14, 0.08);
  min-height: 280px;
}

.card-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
}

.card-content {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 20px 20px 20px 24px;
}

.card-header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.logo-shell {
  width: 56px;
  height: 56px;
  position: relative;
  border-radius: 18px;
  background: rgba(34, 23, 14, 0.06);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.company-logo,
.logo-fallback {
  width: 100%;
  height: 100%;
}

.company-logo {
  object-fit: cover;
}

.logo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}

.company-name {
  color: var(--muted);
  font-size: 0.9rem;
}

.role-name {
  margin-top: 3px;
  font-size: 1.15rem;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(34, 23, 14, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
}

.notes-copy {
  color: var(--muted);
  line-height: 1.55;
  min-height: 48px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  margin-top: auto;
}

.delete-button {
  padding: 12px 14px;
  background: rgba(207, 95, 95, 0.14);
  color: #9f3434;
}

.empty-state {
  padding: 34px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  border: 1px dashed rgba(34, 23, 14, 0.2);
  background: rgba(255, 255, 255, 0.45);
}

.need-to-apply {
  background: linear-gradient(180deg, rgba(245, 166, 91, 0.28), rgba(245, 166, 91, 0.12));
}

.applied {
  background: linear-gradient(180deg, rgba(77, 154, 139, 0.25), rgba(77, 154, 139, 0.12));
}

.interviewing {
  background: linear-gradient(180deg, rgba(79, 124, 242, 0.22), rgba(79, 124, 242, 0.1));
}

.rejected {
  background: linear-gradient(180deg, rgba(207, 95, 95, 0.22), rgba(207, 95, 95, 0.1));
}

.status-chip.need-to-apply {
  background: linear-gradient(135deg, #e58b33, #f5a65b);
}

.status-chip.applied {
  background: linear-gradient(135deg, #327a6d, #4d9a8b);
}

.status-chip.interviewing {
  background: linear-gradient(135deg, #355fd3, #4f7cf2);
}

.status-chip.rejected {
  background: linear-gradient(135deg, #ab4040, #cf5f5f);
}

@media (max-width: 980px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1220px);
    padding-top: 20px;
  }

  .hero-copy,
  .panel {
    padding: 22px;
  }

  h1 {
    max-width: 100%;
  }

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-footer {
    flex-direction: column;
    align-items: stretch;
  }
}
