/* ============================================
   tool-timeline.css — Timeline tool
   ============================================ */

/* Timeline Tool Layout */
.timeline-tool {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 768px) {
  .timeline-tool {
    grid-template-columns: 1fr;
  }
}

/* Timeline Main Panel */
.timeline-main {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.timeline-main h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-main > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Grade Tabs */
.timeline-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.timeline-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.timeline-tab svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.timeline-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.timeline-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* Timeline Phases */
.timeline-phases {
  position: relative;
}

.timeline-phase {
  position: relative;
  padding-left: 32px;
  padding-bottom: 32px;
  border-left: 2px solid var(--gray-200);
}

.timeline-phase:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.timeline-phase::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.timeline-phase-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.timeline-phase-month {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-bg);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.timeline-phase-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-phase-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
}

.timeline-phase-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.timeline-phase-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.timeline-phase-tasks {
  list-style: none;
}

.timeline-phase-tasks li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.timeline-phase-tasks li svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.timeline-phase-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: 8px;
}

.timeline-phase-tag.important {
  background: var(--accent-bg);
  color: var(--accent);
}

.timeline-phase-tag.normal {
  background: var(--secondary-bg);
  color: var(--secondary);
}

.timeline-phase-tag.tip {
  background: var(--primary-bg);
  color: var(--primary);
}

/* Sidebar Panel */
.timeline-sidebar {
  position: sticky;
  top: 100px;
}

/* Countdown */
.timeline-countdown {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.timeline-countdown h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.timeline-countdown h3 svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.countdown-item {
  margin: 12px 0;
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.2;
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 4px;
}

.timeline-countdown p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.countdown-date {
  color: var(--text-secondary);
}

/* Timeline Tips */
.timeline-tips {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.timeline-tips h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-tips h3 svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.timeline-tips-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.timeline-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-tip-item svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  color: var(--white);
}

.cta-box h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.cta-box p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 16px;
}

.cta-box .btn {
  width: 100%;
}
