
/* =========================
   TEA TIME ARCHIVE PAGE
   ========================= */

.tea-archive-body {
  /* keep everything inside .tea-body as requested */
}

/* Back button harmonized with Tea Time theme */
.back-btn-top-left {
    margin-top: -5px;
    position: absolute;
    display: inline-block;
    width: auto;
    white-space: nowrap;
    padding: 4px 10px;
    font-family: DejaVuSansMono, monospace;
    font-size: 13px;       /* small and unobtrusive */
    font-weight: 600;

    /* recolored to harmonize with the lilac & sky theme */
    color: rgba(47,95,156,0.85);              /* friendly storybook ink */
    text-decoration: none;
    background: rgba(248,232,255,0.28);       /* soft lilac overlay like cards */
    
    border-radius: 6px;    /* gentle rounding */
    border: 1px solid rgba(47,95,156,0.4);    /* subtle storybook ink border */
    
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.15), 
        inset 0 1px 2px rgba(255,255,255,0.25);  /* soft inner glow */
    opacity: 0.5;
    z-index: 10;           /* above archive cards */
        transition: transform 0.25s ease, 
                box-shadow 0.25s ease, 
                opacity 0.25s ease;
}

.back-btn-top-left:hover {
    opacity: 1;
    box-shadow: 
        0 3px 8px rgba(0,0,0,0.25),
        inset 0 1px 2px rgba(255,255,255,0.3);
    opacity: 1.0;
    text-decoration: underline;
}




.tea-archive-selector {
  display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: fit-content;
  max-width: 100%;
    min-width: 25%;
  margin: 0 auto 1.25rem;
    margin-top: 40px;
  padding: 14px 14px 12px;
  opacity: 1; /* selector should feel “present” */
      margin-left: max(20px, auto);
  margin-right: max(20px, auto);
    margin-bottom: 33px;
    box-sizing: border-box;
}

.tea-archive-title {
  font-family: "IM Fell English", "Georgia", "Times New Roman", serif;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin: 2px 0 10px;
  font-size: 18px;
    text-align: center;
}

.tea-archive-years,
.tea-archive-months {
  width: fit-content;
display: grid;
  gap: 8px;
  margin-bottom: 10px;
    justify-content: center;
    padding: 2px;
}

.tea-archive-years {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  width: fit-content;
  justify-content: center;
}

.tea-archive-years .tea-archive-btn {
  width: 76px;
  text-align: center;
}


.tea-archive-months {
  /* JS sets --month-cols to fit available months */
  grid-template-columns: repeat(var(--month-cols, 6), 58px);
    overflow-x: auto;
    max-width: 100%;
}

.tea-archive-btn {
  font-family: DejaVuSansMono, monospace;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
    width: 100%;
    text-align: center;

  /* “recycle” the card vibe without fighting your theme colors */
  border: 1px solid rgba(192,128,197,0.24);
  background: rgba(255,255,255,0.55);
}

.tea-archive-btn:hover { filter: brightness(1.03); }
.tea-archive-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.tea-archive-btn.is-active {
  outline: 2px solid rgba(192,128,197,0.35);
  filter: brightness(1.05);
}

.archive-date-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
background: rgba(246,255,248,0.92);
 /* slightly more visible */
 color: #5c3818; 
  font-size: 0.75rem;
  padding: 6px 6px;
  border-radius: 4px;
  font-family: 'IM Fell English', serif;
  pointer-events: none; /* won't interfere with clicks */
  transition: opacity 0.5s ease; /* smooth fade */
  opacity: 0.96; /* fully visible by default */
      text-shadow:
    0 0 0 #5c3818,
    0 0 0 #5c3818;

}

.archive-date-weekday {
  font-size: 0.7rem; /* subtle differentiation from numbers */
  opacity: 0.7; /* slightly less prominent if you want */
    padding-left: 3px;
    text-shadow: none;
}

.previous.tea-archive-card:hover .archive-date-indicator {
  opacity: 0; /* fade away on hover */
}


.tea-archive-card .image-wrap {
  position: relative; /* ensure the overlay is positioned correctly */
}


.tea-archive-grid {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.tea-archive-card {
  margin: 0;
  min-width: 0;
}

/* ===== Archive “face-down” slots ===== */
.tea-archive-card.is-empty {
    background-color: rgba(255, 214, 102, 0.1);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 0.5;
    transition: box-shadow 0.5s ease, opacity 0.5s ease;
}

/* reserve the same image height as a real <img aspect-ratio: 3/4> */
.tea-archive-card.is-empty .tea-archive-ghost {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  background: transparent;
    pointer-events: none;
}

.tea-archive-card.is-empty .tea-archive-ghost img {
    opacity:0;
}

.previous {
    opacity: 0.65;
}

/* don’t add the darker film overlay on empties */
.tea-archive-card.is-empty .image-wrap::before { opacity: 0; }

/* keep overall card height matching real cards (footer space) */
.tea-archive-card.is-empty .post-footer { height: 34px; }




/* keep your existing responsive behavior, but make archive adapt too */
@media (max-width: 980px) {
    .tea-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); 
    
    
    }
    
}

@media (max-width: 640px) {
  .tea-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
