/* ============================================================
   PlannGo – Planner Demo Showcase
   Shared by index.html and start.html
   ============================================================ */

/* ── Section wrapper ── */
.planner-showcase { overflow: hidden; }

/* ── Tabs ── */
.demo-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 2rem auto 0;
  width: fit-content;
  background: rgba(0,0,0,0.05);
  padding: 4px;
  border-radius: 30px;
}

.demo-tab {
  padding: 0.5rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  background: transparent;
  color: var(--text-secondary);
  transition: all 0.25s ease;
  font-family: inherit;
  white-space: nowrap;
}

.demo-tab.active {
  background: white;
  color: var(--brand-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.demo-panel { margin-top: 1.5rem; }
.demo-panel.hidden { display: none; }

/* ── Two-column layout (labels left, widget right) ── */
.showcase-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 860px) {
  .showcase-layout { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Step labels ── */
.showcase-labels {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.showcase-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.4);
  border: 2px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.showcase-label.active {
  background: rgba(67,176,179,0.08);
  border-color: var(--brand-primary);
}

.sl-num {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 50%;
  background: rgba(67,176,179,0.12);
  color: var(--brand-primary);
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.4s ease, color 0.4s ease;
}

.showcase-label.active .sl-num {
  background: var(--brand-primary);
  color: white;
}

.sl-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sl-text strong { font-size: 1rem; color: var(--text-primary); }
.sl-text span   { font-size: 0.88rem; color: var(--text-secondary); }

/* ── Planner widget shell ── */
.planner-widget {
  background: #f1f5f9;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 32px rgba(15,23,42,0.12);
  overflow: hidden;
  font-size: 0.88rem;
  /*max-width: 460px;
  margin-left: auto;
  margin-right: auto;*/
}

.pw-header {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  color: white;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pw-title { font-weight: 700; font-size: 0.95rem; }
.pw-meta  { font-size: 0.75rem; opacity: 0.85; }

/* ── Shared: dot bounce animation ── */
.pw-dots { display: flex; gap: 3px; }

.pw-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-primary);
  animation: pwDotBounce 1.1s infinite;
}
.pw-dot:nth-child(2) { animation-delay: 0.18s; }
.pw-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes pwDotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40%           { transform: translateY(-4px); opacity: 1; }
}

.pw-dots-lg { gap: 5px; }
.pw-dots-lg .pw-dot { width: 7px; height: 7px; }

/* ── Shared: accept/reject button pulse ── */
@keyframes pwBtnPulse {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.35); box-shadow: 0 0 0 5px rgba(67,176,179,0.25); }
  100% { transform: scale(1); }
}

/* ══════════════════════════════════════════
   TYPE B  –  Flex reisplan (chunk planner)
══════════════════════════════════════════ */

.pw-chunks {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pw-chunk {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.07);
  background: white;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.pw-chunk.pw-active { box-shadow: 0 4px 14px rgba(15,23,42,0.1); }

.pw-chunk-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
}

.pw-chunk-dot { width: 9px; height: 9px; min-width: 9px; border-radius: 50%; }
.pw-chunk-name  { font-weight: 700; color: var(--text-primary); flex: 1; }
.pw-chunk-dates { font-size: 0.72rem; color: var(--text-secondary); }

.pw-chunk-arrow {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-left: 0.25rem;
  transition: transform 0.35s ease;
}
.pw-chunk.expanded .pw-chunk-arrow { transform: rotate(180deg); }

.pw-chunk-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s ease;
}
.pw-chunk.expanded .pw-chunk-body { max-height: 560px; }

/* Day inside chunk */
.pw-day { padding: 0 0.85rem 0.5rem; }

.pw-day-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0 0.3rem;
  border-top: 1px solid rgba(0,0,0,0.05);
}
.pw-day:first-child .pw-day-header { border-top: none; padding-top: 0.2rem; }

/* Activity row (Type B) */
.pw-activity {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.25rem;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease;
  will-change: opacity, transform;
}
.pw-activity.visible  { opacity: 1; transform: translateY(0); }
.pw-activity.accepted { background: rgba(67,176,179,0.07); }

.pw-act-btns {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}
.pw-activity.accepted .pw-act-btns { opacity: 0; pointer-events: none; }

.pw-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}
.pw-btn-ok  { background: rgba(67,176,179,0.15); color: var(--brand-primary); }
.pw-btn-no  { background: rgba(255,87,87,0.1);   color: #ff5757; }
.pw-btn.pulse { animation: pwBtnPulse 0.5s ease; }

.pw-act-info { flex: 1; min-width: 0; }

.pw-act-name {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  transition: color 0.3s ease;
}
.pw-activity.accepted .pw-act-name { color: var(--brand-primary); }

.pw-act-time {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: monospace;
  flex-shrink: 0;
}

.pw-act-check {
  font-size: 0.78rem;
  color: var(--brand-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
  font-weight: 700;
}
.pw-activity.accepted .pw-act-check { opacity: 1; }

/* Generating indicator (inline, Type B) */
.pw-generating {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.25rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}
.pw-generating.visible { opacity: 1; max-height: 40px; }
.pw-gen-text { font-size: 0.75rem; color: var(--text-secondary); font-style: italic; }

/* ══════════════════════════════════════════
   TYPE A  –  Full-AI reisplan
══════════════════════════════════════════ */

/* Big generating spinner */
.pw-big-gen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  gap: 0.5rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}
.pw-big-gen.visible { opacity: 1; max-height: 120px; }
.pw-big-gen-icon { font-size: 1.4rem; }
.pw-big-gen-text { font-size: 0.82rem; color: var(--text-secondary); font-style: italic; }

/* Day cards */
.pw-days-a {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pw-day-card {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.07);
  background: white;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.pw-day-card.visible { opacity: 1; transform: translateY(0); }

.pw-day-card-hdr {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: rgba(67,176,179,0.05);
}

.pw-day-num-badge {
  font-size: 0.68rem;
  font-weight: 700;
  background: var(--brand-primary);
  color: white;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  flex-shrink: 0;
}

.pw-day-theme { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }

.pw-day-card-acts {
  padding: 0.3rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
}

/* Activity row (Type A) */
.pw-act-a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}
.pw-act-a:last-of-type { border-bottom: none; }
.pw-act-a.visible { opacity: 1; transform: translateY(0); }

.pw-act-a-dot {
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--brand-primary);
  opacity: 0.7;
}

.pw-act-a-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pw-act-a-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pw-act-a-loc { font-size: 0.68rem; color: var(--text-secondary); }

.pw-act-a-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-family: monospace;
  flex-shrink: 0;
}

/* Generate-activity button */
.pw-gen-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1.5px solid var(--brand-primary);
  color: var(--brand-primary);
  background: rgba(67,176,179,0.06);
  border-radius: 20px;
  cursor: pointer;
  margin-top: 0.35rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-family: inherit;
}
.pw-gen-btn.visible { opacity: 1; transform: translateY(0); }
.pw-gen-btn.pulse   { animation: pwBtnPulse 0.55s ease; }

/* ══════════════════════════════════════════
   Standalone section card
   (mirrors .content-section-info from index.css
    so it works on pages that don't load index.css)
══════════════════════════════════════════ */

.demo-standalone-section {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 12px 40px rgba(15,23,42,0.08);
  border-radius: 24px;
  padding: 4rem 2.5rem;
  max-width: 1200px;
  margin: 2rem auto;
  overflow: hidden;
}

@media (max-width: 768px) {
  .demo-standalone-section {
    padding: 2rem 1rem;
    margin: 1rem;
    border-radius: 16px;
  }
}

/* Section heading + subtitle — mirrors .section-title / .section-subtitle */
.demo-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--brand-primary);
  text-align: center;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.demo-section-subtitle {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--brand-primary);
  text-align: center;
  margin: 0 auto;
  max-width: 700px;
}

/* CTA below the demo widget */
.demo-cta-row {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.demo-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: white;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
  border-radius: 50px;
  box-shadow: 0 8px 24px rgba(67,176,179,0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.demo-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(67,176,179,0.45);
}
