@charset "UTF-8";

/* ==========================================================================
   Daily Life Page Styles
   ========================================================================== */

/* ---------- Hero Section ---------- */
/* ---------- Hero Section (Matching work-hero) ---------- */
.daily-hero {
  position: relative;
  overflow: hidden;
  background-image: var(--g-hero-band);
  padding: 92px 20px 40px;
  text-align: center;
}

.daily-hero__inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.daily-hero__label {
  font-family: var(--f-gothic);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background-image: var(--g-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.daily-hero__title {
  font-family: var(--f-mincho);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.7;
  margin-bottom: 24px;
}

.daily-hero__title-em {
  font-style: normal;
  border-bottom: 2px solid var(--c-accent-1);
  padding-bottom: 2px;
}

.daily-hero__lead {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.8;
}

@media (min-width: 721px) {
  .daily-hero {
    padding: 145px 40px 60px;
  }
  .daily-hero__title {
    font-size: 32px;
  }
  .daily-hero__lead {
    font-size: 16px;
  }
}

.daily-hero__bg-decor {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ---------- Profile Switcher (Tabs & Banner Combined) ---------- */
.daily-tabs-section {
  position: relative;
  z-index: 0;
  padding: 20px 20px 100px;
  background-color: var(--c-surface);
}

.daily-profile-switcher {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1024px;
  margin: 0 auto 60px;
  position: sticky;
  top: 88px; /* 72px header + 16px */
  z-index: 20;
}

@media (min-width: 768px) {
  .daily-profile-switcher {
    flex-direction: row;
    gap: 24px;
  }
}

@media (min-width: 1025px) {
  .daily-profile-switcher {
    top: 120px; /* 96px header + 24px */
  }
}

.daily-tab-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 0;
  height: 0;
  overflow: visible;
  color: var(--c-accent-1);
  z-index: 10;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  align-self: center;
}

@keyframes twistPiko {
  0%   { transform: rotate(45deg); }
  50%  { transform: rotate(-45deg); }
  100% { transform: rotate(45deg); }
}

.daily-tab-switch span {
  font-size: 40px;
  font-weight: 300;
  transition: transform 0.3s;
  animation: twistPiko 3s ease-in-out infinite;
}

@media (min-width: 768px) {
  .daily-tab-switch span {
    font-size: 48px;
  }
}

.profile-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  text-align: left;
  border: none;
  background-color: var(--c-surface);
  border-radius: 24px;
  padding: 24px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03), 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: padding 0.4s ease, opacity 0.3s, background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

@keyframes cardActivateFade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.profile-card--a.is-active {
  background-image: linear-gradient(150deg, #fff8f2 0%, var(--c-surface-persona-a) 55%, #fdeee6 100%);
  box-shadow: inset 0 8px 24px rgba(170, 130, 110, 0.12), inset 0 2px 8px rgba(170, 130, 110, 0.08);
  flex: 3;
  animation: cardActivateFade 1.8s ease-out;
}

.profile-card--b.is-active {
  background-image: linear-gradient(150deg, #fbf6fa 0%, var(--c-surface-persona-b) 55%, #f7eef0 100%);
  box-shadow: inset 0 8px 24px rgba(160, 120, 140, 0.12), inset 0 2px 8px rgba(160, 120, 140, 0.08);
  flex: 3;
  animation: cardActivateFade 1.8s ease-out;
}

@keyframes pikoPiko {
  0% { transform: translateY(0); }
  5% { transform: translateY(-4px); }
  10% { transform: translateY(0); }
  15% { transform: translateY(-4px); }
  20% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

@keyframes cardDeactivateFade {
  0% { opacity: 0; }
  100% { opacity: 0.7; }
}

.profile-card:not(.is-active) {
  flex: 1.15;
  opacity: 0.7;
  align-items: center;
  animation: cardDeactivateFade 1.8s ease-out;
}

.profile-card:not(.is-active):hover {
  opacity: 1;
  background-color: #fff;
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  animation-play-state: paused;
}

.profile-card__icon-plus {
  display: none;
}

.profile-card:not(.is-active) .profile-card__icon-plus {
  display: flex;
  position: absolute;
  top: 16px;
  right: 16px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  color: var(--c-accent-dark);
}

.profile-card__avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-right: 20px;
  transition: width 0.4s ease, height 0.4s ease, border-width 0.4s ease;
}

.profile-card.is-active .profile-card__avatar {
  width: 100px;
  height: 100px;
  border-width: 4px;
}

@media (min-width: 768px) {
  .profile-card.is-active .profile-card__avatar {
    width: 140px;
    height: 140px;
  }
}

.profile-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  display: block;
}

.profile-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.profile-card__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.profile-card__main {
  font-family: var(--f-gothic);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
}

.profile-card__sub {
  font-size: 13px;
  color: var(--c-muted);
}

.profile-card__details {
  margin-top: 24px;
  display: none;
}

/* ---------- Compact Mode (Scroll) ---------- */
.daily-tabs-section {
  transition: transform 0.4s ease;
}

.daily-tabs-section.is-compact .daily-profile-switcher {
  transform: translateY(0);
}

.daily-tabs-section.is-compact .profile-card {
  padding: 12px 24px;
}

.daily-tabs-section.is-compact .profile-card__avatar {
  width: 48px !important;
  height: 48px !important;
  border-width: 2px !important;
  margin-right: 16px;
}

@media (min-width: 768px) {
  .daily-tabs-section.is-compact .profile-card__avatar {
    width: 60px !important;
    height: 60px !important;
  }
}

.daily-tabs-section.is-compact .profile-card__desc,
.daily-tabs-section.is-compact .profile-card__tags {
  display: none !important;
}

.daily-tabs-section.is-compact .profile-card__sub {
  display: inline-block;
  font-size: 12px;
  color: var(--c-muted);
}

.daily-tabs-section.is-compact .profile-card__details {
  margin-top: 0;
}

.daily-tabs-section.is-compact .profile-card__content {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.daily-tabs-section.is-compact .profile-card__header {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.daily-tabs-section.is-compact .profile-card__name {
  margin-bottom: 0;
  font-size: 16px;
}

.daily-tabs-section.is-compact .profile-card__main {
  font-size: 16px;
}

/* ---------- Scroll Indicator ---------- */
.daily-scroll-indicator {
  display: none !important;
}

.daily-scroll-indicator.is-hidden {
  opacity: 0;
}

.daily-scroll-indicator__text {
  font-family: var(--f-gothic);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--c-muted);
  text-transform: uppercase;
}

.daily-scroll-indicator__line {
  width: 1px;
  height: 40px;
  background-color: rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}

.daily-scroll-indicator__line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, transparent, var(--c-accent-dark), transparent);
  animation: scrollLineAnim 2s infinite ease-in-out;
}

@keyframes scrollLineAnim {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.decor--schedule {
  overflow: visible;
  z-index: -1;
}

.profile-card.is-active .profile-card__details {
  display: block;
  animation: simpleFadeIn 1.8s ease-out both;
}

@keyframes simpleFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.profile-card__name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.profile-card__desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 16px;
}

.profile-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.daily-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.daily-pill--a {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--c-accent-dark);
}

.daily-pill--b {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--c-accent-dark);
}

.daily-panels {
  max-width: 1024px;
  margin: 0 auto;
}

/* ---------- Timeline & Scenes ---------- */
.timeline {
  position: sticky;
  top: 480px;
  height: calc(100vh - 260px);
  min-height: 400px;
  width: 100%;
  padding: 0 20px; /* Add padding to prevent cutoffs */
  overflow: hidden;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.4s ease;
}

@media (min-width: 1025px) {
  .timeline {
    top: 520px;
    height: calc(100vh - 220px);
    padding: 0 40px; /* Add padding to prevent cutoffs */
  }
}

.daily-tabs-section.is-compact .timeline {
  top: 220px;
}
@media (min-width: 1025px) {
  .daily-tabs-section.is-compact .timeline {
    top: 180px;
    height: calc(100vh - 180px);
  }
}

.scene {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-top: 0;
  width: 100%;
  max-width: 500px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Ensure the time column stays on the left */
  text-align: left; /* Ensure text starts clearly separated from the line */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.scene:not(.is-active) {
  transform: translate(-50%, -45%);
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.scene__time-col {
  padding: 0;
  margin-bottom: 16px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.scene__time {
  font-family: var(--f-mincho);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  line-height: 1;
  display: inline-block;
  background-image: linear-gradient(120deg, #eac5c4 0%, #f9ccbd 50%, #f2c094 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.scene__dot {
  display: block;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 10px;
  height: 10px;
  background: #f9ccbd;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.8);
  z-index: 1;
}

.scene__line {
  display: block;
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 2px;
  height: 220px;
  background: linear-gradient(to bottom, #f9ccbd, transparent);
  z-index: 0;
}

/* K-san (Type B) variations */
.scene__time--b {
  background-image: var(--g-accent-cool);
}

.scene__dot--b {
  background: #d2b3d2; /* Slightly darker than scene__highlight--b */
}

.scene__line--b {
  background: linear-gradient(to bottom, #d2b3d2, transparent);
}

.scene__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  width: 100%;
}

.scene__photo-bg {
  width: 100%;
  max-width: 320px; /* reasonably sized */
  aspect-ratio: 4/3;
  background-color: var(--c-surface-warm);
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  margin: 0 auto 24px;
}

.scene__glass-card {
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0 16px 0 90px; /* Huge padding on mobile to clear the time column on the left */
  margin: 0;
  text-align: left;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (min-width: 768px) {
  .scene {
    max-width: 1100px;
    min-height: 280px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 80px;
    text-align: left;
  }
  
  .scene__time-col {
    flex: 0 0 120px; /* Increased from 80px to accommodate 2-digit times like 10:00 */
    width: 120px;
    align-items: center; 
    margin-bottom: 0;
  }
  
  .scene__content {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
  
  .scene__photo-bg {
    flex: 0 0 25%; /* Exactly 25% width */
    width: 25%;
    max-width: none;
    margin: 0;
    height: 240px; 
    order: 1; /* Put photo on the left */
  }
  
  .scene__glass-card {
    flex: 0 0 68%; /* Exactly 68% width (leaving room for gap) */
    width: 68%;
    text-align: left;
    padding: 0; 
    order: 2; /* Put text on the right */
  }
}

.scene__illust-box {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--c-hairline);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.03);
}

.scene__emoji {
  font-size: 64px;
  opacity: 0.8;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.scene__heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.5;
  margin-bottom: 12px;
}
@media (min-width: 768px) {
  .scene__heading {
    font-size: 22px; /* User explicitly requested 22px on PC */
  }
}

.scene__text {
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.8;
  margin-bottom: 16px;
}

.scene__highlight {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  position: relative;
}

.scene__highlight::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 24px;
  border-width: 0 8px 8px 8px;
  border-style: solid;
}

.scene__highlight--teal {
  background-color: #E1F5EE;
  color: #085041;
}

.scene__highlight--a {
  background-color: var(--c-surface-warm);
  color: var(--c-text);
}

.scene__highlight--a::before {
  border-color: transparent transparent var(--c-surface-warm) transparent;
}

.scene__highlight--b {
  background-color: var(--c-surface-persona-b);
  color: var(--c-text);
}

.scene__highlight--b::before {
  border-color: transparent transparent var(--c-surface-persona-b) transparent;
}
.scene__highlight--teal::before { border-color: transparent transparent #E1F5EE transparent; }

.scene__highlight--pink {
  background-color: #FBEAF0;
  color: #72243E;
}
.scene__highlight--pink::before { border-color: transparent transparent #FBEAF0 transparent; }

/* ---------- Next Hint Arrow ---------- */
.scene__next-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding: 6px 14px 6px 16px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-family: var(--f-gothic);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--c-muted);
  text-transform: uppercase;
  transition: all 0.3s ease;
  user-select: none;
  cursor: pointer;
}

.scene__next-hint:hover {
  background-color: #ffffff;
  color: var(--c-accent-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@keyframes hintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.scene__next-hint .material-symbols-outlined {
  font-size: 18px;
  color: var(--c-accent-dark);
  animation: hintBounce 1.8s infinite ease-in-out;
}


/* ---------- Editor's Note ---------- */
.editor-note {
  position: relative;
  margin-top: 60px;
  margin-bottom: 80px;
  padding: 56px 48px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(234, 197, 196, 0.2) 0%, rgba(255, 234, 167, 0.15) 100%);
  box-shadow: 0 4px 24px rgba(0,0,0,0.02);
  text-align: center;
  overflow: hidden;
  z-index: 10;
}

.editor-note__border { display: none; }
.editor-note__border--a { display: none; }
.editor-note__border--b { display: none; }
.editor-note__icon { display: none; }

.editor-note__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.editor-note__label {
  display: block;
  align-self: flex-start; /* Align to the left */
  font-family: 'League Script', cursive; 
  font-size: 40px;
  color: var(--c-muted); 
  transform: rotate(-8deg) translateX(10px); /* Adjust position slightly so it doesn't hit the edge */
  opacity: 0.85; 
  margin-bottom: 4px;
  letter-spacing: 0;
  font-weight: 400;
  text-transform: none;
}

.editor-note__title {
  font-family: var(--f-mincho);
  font-size: clamp(24px, 2.8vw, 32px); /* Modest increase, avoids wrapping to 2 lines */
  font-weight: 600;
  background-image: var(--g-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 32px;
  line-height: 1.4;
  letter-spacing: 0.05em;
}

.editor-note__body {
  font-size: 15px;
  color: var(--c-muted);
  line-height: 1.8;
  text-align: left;
}
@media (min-width: 768px) {
  .editor-note__body {
    text-align: center;
    max-width: 80%;
    margin: 0 auto;
  }
}

/* Animations */
.scene.is-visible .scene__dot {
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
