/* Guide overview page */
.guide-header {
  margin-bottom: 48px;
}

.guide-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.guide-header h1 .emoji {
  margin-right: 8px;
}

.guide-description {
  font-size: 1.1rem;
  color: rgba(26, 23, 20, 0.65);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.guide-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warm-black);
}

.meta-label {
  font-size: 0.8rem;
  color: var(--stone);
  margin-top: 2px;
}

/* Phase grid — overview */
.phases-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 48px;
}

.phases-header {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--amber);
  font-weight: 600;
  margin-bottom: 24px;
}

.phase-card {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  background: var(--off-white);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
}

.phase-card:hover {
  border-color: rgba(212, 137, 10, 0.3);
  background: white;
  transform: translateX(4px);
}

.phase-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--amber);
  text-align: center;
}

.phase-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.phase-info p {
  font-size: 0.85rem;
  color: var(--stone);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.phase-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.phase-stats {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--stone);
}

.phase-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.arrow-icon {
  width: 20px;
  height: 20px;
  color: var(--stone);
  transition: transform 0.2s;
}

.phase-card:hover .arrow-icon {
  transform: translateX(4px);
  color: var(--amber);
}

/* Phase detail page */
.phase-hero {
  margin-bottom: 48px;
}

.phase-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.phase-hero p {
  font-size: 1.05rem;
  color: rgba(26, 23, 20, 0.65);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.phase-hero-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.phase-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.phase-nav-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  background: rgba(26, 23, 20, 0.04);
  color: var(--stone);
  border: 1px solid rgba(26, 23, 20, 0.06);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.phase-nav-btn:hover {
  background: rgba(212, 137, 10, 0.08);
  color: var(--amber);
  border-color: rgba(212, 137, 10, 0.2);
}

.phase-nav-btn.active {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}

/* Pro warning box */
.pro-warning {
  background: rgba(196, 93, 62, 0.06);
  border: 1px solid rgba(196, 93, 62, 0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 40px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pro-warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
}

.pro-warning h4 {
  font-size: 0.95rem;
  color: var(--terra);
  margin-bottom: 4px;
}

.pro-warning p {
  font-size: 0.9rem;
  color: rgba(26, 23, 20, 0.65);
  line-height: 1.6;
}

/* SECTIONS */
.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  margin-bottom: 20px;
}

.section-title.amber { color: var(--amber); }
.section-title.sage { color: var(--sage); }
.section-title.terra { color: var(--terra); }

/* VIDEO SECTION */
.videos-section { margin-bottom: 56px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.video-card {
  border-radius: 14px;
  overflow: hidden;
  background: var(--off-white);
  border: 1px solid rgba(26, 23, 20, 0.06);
  transition: all 0.25s;
}

.video-card:hover {
  border-color: rgba(26, 23, 20, 0.12);
  box-shadow: 0 4px 20px rgba(26, 23, 20, 0.06);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--warm-black);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 16px 20px;
}

.video-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.video-info p {
  font-size: 0.82rem;
  color: var(--stone);
  line-height: 1.5;
}

.video-duration {
  font-size: 0.75rem;
  color: var(--amber);
  font-weight: 500;
  margin-top: 8px;
}

/* CHECKLIST SECTION */
.checklist-section { margin-bottom: 56px; }

.checklist {
  list-style: none;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(26, 23, 20, 0.06);
}

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

.check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(26, 23, 20, 0.2);
  flex-shrink: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 1px;
}

.check-box:hover {
  border-color: var(--amber);
}

.check-box.checked {
  background: var(--green);
  border-color: var(--green);
}

.check-box.checked::after {
  content: '\2713';
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.checklist-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.checklist-text.checked-text {
  text-decoration: line-through;
  opacity: 0.5;
}

.critical-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(196, 93, 62, 0.1);
  color: var(--terra);
  margin-left: 8px;
  vertical-align: middle;
}

/* MATERIALS SECTION */
.materials-section { margin-bottom: 56px; }

.materials-table {
  width: 100%;
  border-collapse: collapse;
}

.materials-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--stone);
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(26, 23, 20, 0.1);
}

.materials-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(26, 23, 20, 0.05);
}

.materials-table tr:hover td {
  background: rgba(26, 23, 20, 0.02);
}

.materials-table .notes {
  font-size: 0.8rem;
  color: var(--stone);
}

.materials-table .price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--amber);
}

.materials-total {
  display: flex;
  justify-content: flex-end;
  padding: 20px 16px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--warm-black);
  border-top: 2px solid rgba(26, 23, 20, 0.1);
}

/* BOTTOM NAV */
.bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  margin-top: 32px;
  border-top: 1px solid rgba(26, 23, 20, 0.08);
}

.bottom-nav a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--stone);
  transition: color 0.2s;
}

.bottom-nav a:hover { color: var(--amber); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .phase-card {
    grid-template-columns: 40px 1fr;
    gap: 16px;
    padding: 18px 20px;
  }
  .phase-right { display: none; }
  .phase-number { font-size: 1.3rem; }
  .video-grid { grid-template-columns: 1fr; }
  .guide-meta { gap: 20px; }
  .materials-table { font-size: 0.8rem; }
  .materials-table th, .materials-table td { padding: 8px 10px; }
  .bottom-nav { flex-direction: column; gap: 16px; }
}
