/* Assignment Guide specific styles - extends course.css */

/* ===== Banner ===== */
.guide-banner {
  margin: -54px -36px 40px;
  padding: 56px 36px 36px;
  background: linear-gradient(135deg, #070907 0%, #0f5c39 55%, #1c8a56 100%);
  color: #e7f8ea;
  border-radius: 0 0 24px 24px;
  position: relative;
  overflow: hidden;
  width: calc(100% + 72px);
}

.guide-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.06), transparent 70%);
}

.guide-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.guide-banner .guide-eyebrow {
  color: #86efac;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.guide-banner h1 {
  color: white;
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 650;
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.guide-banner .guide-lede {
  color: rgba(231, 248, 234, 0.85);
  font-family: ui-serif, Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 650px;
  margin: 0;
  position: relative;
  z-index: 1;
}

.guide-banner .guide-lede strong {
  color: #86efac;
}

/* Meta pills */
.guide-meta {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.guide-meta span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(231, 248, 234, 0.9);
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

/* ===== Component Table ===== */
.component-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--paper-raised);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.component-table th {
  background: #18211a;
  color: #e7f8ea;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
  font-weight: 700;
}

.component-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  vertical-align: middle;
}

.component-table tr:last-child td {
  border-bottom: none;
}

.component-table tr:hover td {
  background: var(--accent-soft);
}

.component-table .comp-name {
  font-weight: 700;
  font-family: "SF Mono", "Fira Code", Consolas, monospace;
  font-size: 0.82rem;
  color: var(--accent-dark);
}

.component-table .comp-lec {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ===== Step Cards ===== */
.step-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 24px 24px 60px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(47, 52, 43, 0.12);
}

.step-card .step-number {
  position: absolute;
  left: 16px;
  top: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 230, 140, 0.25);
}

.step-card h3 {
  margin-top: 4px;
  color: var(--accent-dark);
}

/* ===== Pitfall Cards ===== */
.pitfall {
  background: var(--warn-soft);
  border: 1px solid rgba(138, 75, 8, 0.2);
  border-left: 4px solid var(--warn);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 14px 0;
}

.pitfall strong {
  color: var(--warn);
}

/* ===== Connection Map ===== */
.connection-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.connection-item {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s;
}

.connection-item:hover {
  transform: translateY(-2px);
}

.connection-item .conn-lec {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.connection-item .conn-arrow {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 6px 0;
}

.connection-item .conn-apply {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Mindset Banner ===== */
.mindset-banner {
  background: linear-gradient(135deg, var(--accent-soft), rgba(99,230,140,.05));
  border: 1px solid rgba(99, 230, 140, 0.2);
  border-radius: 14px;
  padding: 24px 24px 24px 56px;
  margin: 24px 0;
  position: relative;
}

.mindset-banner::before {
  content: '💡';
  font-size: 1.4rem;
  position: absolute;
  top: 22px;
  left: 18px;
}

.mindset-banner p {
  margin: 0;
  line-height: 1.7;
}

.mindset-banner p + p {
  margin-top: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .guide-banner {
    margin: -34px -20px 28px;
    padding: 36px 20px 24px;
    border-radius: 0 0 16px 16px;
    width: calc(100% + 40px);
  }
  .step-card {
    padding-left: 54px;
  }
  .connection-map {
    grid-template-columns: repeat(2, 1fr);
  }
}
