/* ===== HOME PAGE ===== */
/* Identity/theme-toggle/create-trip topbar moved into the global
   header (shared/header.js/.css) — no longer rendered on this page. */

/* Section label */
.home-section-label {
  font-size: 12px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--label3);
  padding: 18px 16px 8px;
}

/* ===== CALENDAR ===== */
.cal-wrap {
  margin: 0 16px;
  background: var(--bg2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: background var(--duration) var(--ease);
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 0.5px solid var(--sep2);
}
.cal-month-name { font-size: 15px; font-weight: 700; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav-btn {
  background: var(--bg3); border: none;
  border-radius: 8px; color: var(--accent);
  width: 28px; height: 28px;
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; transition: background .12s;
}
.cal-nav-btn:active { background: var(--bg4); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 4px 6px 6px;
}
.cal-dow {
  text-align: center; padding: 6px 0 4px;
  font-size: 11px; font-weight: 600; color: var(--label4);
}
.cal-day { text-align: center; padding: 2px 0; cursor: pointer; }
.cal-day .cn {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto; font-size: 13px;
  color: var(--label);
  transition: background .12s;
}
.cal-day.other .cn { color: var(--label4); opacity: .35; }
.cal-day.today .cn { background: var(--accent); color: #fff; font-weight: 700; }
.cal-day.trip-small .cn { background: var(--accent-bg); color: var(--accent); font-weight: 600; }
.cal-day.trip-exp .cn {
  background: var(--accent); color: #fff; font-weight: 700;
  box-shadow: 0 0 0 3px var(--accent-bg);
}
.cal-day.trip-soon .cn {
  background: rgba(255,159,10,.15); color: var(--orange); font-weight: 700;
  box-shadow: 0 0 0 2px var(--orange);
}
.cal-trip-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--green); margin: 1px auto 0;
}
.cal-legend {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: 8px 14px 12px;
  border-top: 0.5px solid var(--sep2);
}
.cal-leg {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--label3);
}
.cal-leg-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ===== UPCOMING BANNER ===== */
.upcoming-banner {
  margin: 0 16px;
  background: var(--bg2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: background var(--duration) var(--ease);
}
.upcoming-main {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 0.5px solid var(--sep2);
}
.upcoming-num {
  font-size: 36px; font-weight: 800;
  color: var(--orange); line-height: 1;
  letter-spacing: -1.5px; min-width: 46px; text-align: center;
}
.upcoming-days-label { font-size: 11px; color: var(--label3); text-align: center; margin-top: 1px; }
.upcoming-info { flex: 1; }
.upcoming-name { font-size: 15px; font-weight: 700; }
.upcoming-sub  { font-size: 12px; color: var(--label3); margin-top: 2px; }
.upcoming-arrow-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg3); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--label3); flex-shrink: 0;
}

/* Readiness */
.readiness-block { padding: 12px 14px 14px; }
.readiness-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.readiness-title { font-size: 13px; font-weight: 600; }
.readiness-pct   { font-size: 13px; font-weight: 700; color: var(--accent); }
.readiness-track {
  height: 5px; background: var(--sep2);
  border-radius: 3px; overflow: hidden; margin-bottom: 10px;
}
.readiness-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width .5s var(--ease);
}
.readiness-list { display: flex; flex-direction: column; gap: 6px; }
.readiness-row  { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.readiness-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--sep); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s var(--spring);
  background: transparent;
  font-size: 10px; color: transparent;
}
.readiness-check.done {
  background: var(--green); border-color: var(--green);
  color: #fff;
}
.readiness-label        { color: var(--label2); }
.readiness-label.crossed { color: var(--label3); text-decoration: line-through; }

/* ===== TRIPS FEED ===== */
.trips-feed { padding: 0 16px 16px; }

.year-section { margin-bottom: 4px; }
.year-section:has(.year-body:not(.hidden)) { margin-bottom: 14px; }
.year-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0 8px; cursor: pointer;
  user-select: none; -webkit-user-select: none;
}
.year-hd-left  { display: flex; align-items: baseline; gap: 8px; }
.year-title    { font-size: 17px; font-weight: 700; }
.year-count    { font-size: 12px; color: var(--label3); }
.year-chevron  {
  color: var(--label4);
  display: flex; align-items: center;
  transition: transform var(--ease) .22s;
}
.year-hd.open .year-chevron { transform: rotate(180deg); }
.year-body {
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows 250ms var(--ease);
}
.year-body.hidden { grid-template-rows: 0fr; }
.year-body-inner { overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.year-month-sep {
  font-size: 12px; font-weight: 600; color: var(--label4);
  letter-spacing: .04em; text-transform: uppercase;
  padding: 8px 0 2px;
}
.year-month-sep:first-child { padding-top: 0; }
.year-month-cards { display: flex; flex-direction: column; gap: 10px; }

/* Expedition card */
.exp-card {
  background: var(--bg2); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform .15s var(--ease), background var(--duration) var(--ease);
  border-left: 3px solid var(--accent);
}
.exp-card.status-done   { border-left-color: var(--sep); }
.exp-card.status-soon   { border-left-color: var(--orange); }
.exp-card.status-active { border-left-color: var(--green); }
.exp-card:active { transform: scale(.985); }

.exp-card-top {
  padding: 14px 16px 12px;
  border-bottom: 0.5px solid var(--sep2);
  background: linear-gradient(135deg, rgba(10,132,255,0.06), transparent);
}
.exp-row1 { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.exp-type { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--accent); text-transform: uppercase; margin-bottom: 3px; }
.exp-name { font-size: 21px; font-weight: 800; letter-spacing: -.4px; line-height: 1.1; }
.exp-meta { display: flex; gap: 12px; font-size: 12px; color: var(--label3); margin-bottom: 10px; flex-wrap: wrap; }
.exp-parts { display: flex; gap: 6px; flex-wrap: wrap; }
.part-tag  { background: var(--bg3); border-radius: 20px; padding: 4px 10px; font-size: 12px; font-weight: 500; }

.exp-card-bot {
  padding: 11px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.score-block   { display: flex; align-items: baseline; gap: 3px; }
.score-num     { font-size: 24px; font-weight: 800; color: var(--green); letter-spacing: -1px; line-height: 1; }
.score-denom   { font-size: 13px; color: var(--label3); }
.score-track   { flex: 1; height: 4px; background: var(--sep2); border-radius: 2px; overflow: hidden; }
.score-fill    { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--green)); }
.card-goto     {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg3); display: flex; align-items: center;
  justify-content: center; font-size: 13px; color: var(--label3); flex-shrink: 0;
}

/* Small fishing card */
.fish-card {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 13px; background: var(--bg2);
  border-radius: var(--radius-md); box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform .12s, background var(--duration) var(--ease);
}
.fish-card:active { transform: scale(.985); }
.fish-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.fish-body  { flex: 1; min-width: 0; }
.fish-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fish-sub   { font-size: 12px; color: var(--label3); }
.fish-score { text-align: right; flex-shrink: 0; }
.fish-score-num { font-size: 19px; font-weight: 800; color: var(--green); line-height: 1; letter-spacing: -.5px; }
.fish-score-max { font-size: 11px; color: var(--label4); }

/* Badge */
.badge {
  border-radius: 20px; padding: 4px 10px;
  font-size: 11px; font-weight: 700;
  white-space: nowrap; flex-shrink: 0; margin-left: 8px; margin-top: 4px;
}
.badge-soon   { background: rgba(255,159,10,.15); color: var(--orange); border: .5px solid rgba(255,159,10,.35); }
.badge-active { background: rgba(48,209,88,.15);  color: var(--green);  border: .5px solid rgba(48,209,88,.35); }
.badge-done   { background: var(--bg3); color: var(--label3); border: .5px solid var(--sep); }
.exp-days-left { font-size: 11px; color: var(--label3); margin-right: 2px; }

/* ===== DESKTOP LAYOUT (Home page only) ===== */
@media (min-width: 880px) {
  .home-top-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    align-items: start;
  }
  .home-col-cal { grid-column: span 7; }
  .home-col-upcoming { grid-column: span 5; }
  .home-top-grid > .home-col-cal:only-child { grid-column: span 12; }

  .year-month-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}
