/* ===========================
   Weekly Plan Page (Mobile XL)
   =========================== */

.page-section {
  width: 100%;
  padding: 3rem 2rem;
  margin: 0 auto 3rem;
  box-sizing: border-box;
}

/* Header section with overlay image */
.weekly-plan-header {
  position: relative;
  text-align: center;
}

.weekly-plan-header .section-image.overlay-mode {
  position: relative;
  width: 100%;
  height: auto;          /* let it expand */
  overflow: visible;     /* don’t clip children */
}


.weekly-plan-header .section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.weekly-plan-header .overlay-text {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.95);
  padding: 2rem 2.5rem;
  border-radius: 12px;
  max-width: 90%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.weekly-plan-header .overlay-text h2 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.weekly-plan-header .overlay-text h3 {
  font-size: 2rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.weekly-plan-header .overlay-text p {
  font-size: 1.8rem;
  line-height: 2.3;
  color: #333;
}

/* Content section */
.weekly-plan-content {
  text-align: center;
}

.weekly-plan-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.weekly-plan-content h3 {
  font-size: 2rem;
  color: #444;
  margin-bottom: 2.5rem;
}

.plan-buttons.recent-plans {
  display: grid;
  grid-template-columns: 1fr; /* single column on mobile */
  gap: 2rem;
  justify-items: center;
}

.plan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem;                  /* large tap area */
  margin-bottom: 2rem;
  border-radius: 12px;
  font-size: 1.8rem;              /* oversized text */
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.plan-button.plan-available {
  background: var(--primary-green);
  border: none;
}

.plan-button.plan-available a {
  color: #fff;
  text-decoration: none;
  width: 100%;
}

.plan-button.plan-available:active {
  transform: scale(0.96);
  box-shadow: inset 5px 5px 10px rgba(0,0,0,0.25);
}

.plan-button.plan-unavailable {
  background: #f5f5f5;
  border: 2px solid #ccc;
  color: #999;
  cursor: not-allowed;
}

.plan-button.plan-unavailable span {
  font-size: 1.6rem;
  color: #999;
}


/* Archive section */
.weekly-plan-archive {
  text-align: center;
}

.weekly-plan-archive h2 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 2rem;
}
.archive-button {
  display: inline-block;
  width: 100%;                  /* full‑width on mobile */
  padding: 1.5rem 2rem;          /* big tap area */
  margin-bottom: 1.5rem;
  border-radius: 12px;
  background: #fff;
  border: 2px solid var(--primary-green);
  color: var(--primary-green);
  font-size: 1.8rem;             /* oversized text */
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.archive-button:active {
  transform: scale(0.96);
  box-shadow: inset 5px 5px 10px rgba(0,0,0,0.25);
  background: var(--primary-green);
  color: #fff;
}

/* Back link variant */
.archive-button.back-link {
  background: #f5f5f5;
  border: 2px solid #ccc;
  color: #666;
  font-weight: 600;
  position: relative;
}

.archive-button.back-link::before {
  content: "←";
  position: absolute;
  left: 1rem;
  font-size: 1.6rem;
  color: #666;
}
