.topbunk-main {
    gap: 12px;
    padding: 12px;
}

/* FIRST ROW */

.topbunk-first-row {

    width: 600px;
    margin: 30px auto 0 auto;
    display:flex;
    align-content: center;
    justify-content: center;
    position: relative;
    
}

.row-one-content {
    border-left:  1px solid rgba(245, 241, 230, 0.28);
    border-right:  1px solid rgba(245, 241, 230, 0.28);    
    margin-left: 1em;
    margin-right: 1em;
    padding: 1.5em;
    background: rgba(0, 0, 0, 0.25);
    height: 29em;
    width: 490px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    position:relative;
    overflow: hidden;
}

.arrow {
    position: absolute;
    height: 110px;
    top: 50%;
    transform: translateY(-50%);

}

.arrow-left {
    left: -80px;
}

.arrow-right {
    right: -80px;
}


/* Arrow styling */
.arrow-left,
.arrow-right {
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

/* Hover effect for enabled arrows only */
/* Hover effect for enabled arrows - subtle */
.arrow-left.enabled:hover,
.arrow-right.enabled:hover {
    transform: translateY(-50%) scale(1.05); /* keep centering + scale */
    filter: brightness(1.08);
    transition: transform 0.2s ease, filter 0.2s ease;
}
/* Disabled arrows */
.arrow-left.disabled,
.arrow-right.disabled {
  opacity: 0.4;
  cursor: default;
  transform: left(-80px), scale(1); /* ensure no hover scaling */
}

/* Click animation */
.arrow-click-animate {
    animation: arrowPop 0.2s ease forwards;
}

@keyframes arrowPop {
    0%   { transform: translateY(-50%) scale(1.05); }
    50%  { transform: translateY(-50%) scale(1.12); }
    100% { transform: translateY(-50%) scale(1.05); }
}


.row-one-post {
    border:  1px solid rgba(245, 241, 230, 0.28);
    max-width: 400px;
    padding: 1.5em 3em 0.5em;
    margin: 0 auto 0 auto;
    background: rgba(0, 0, 0, 0.5);    
    white-space: nowrap;
}

.slide-fade-out-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide-fade-out-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide-fade-in-left {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.slide-fade-in-right {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.row-one-post p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 1.5em 0;
}

.row-one-post .last-stanza {
    margin: 0;
}

.post-footer {
    margin-top: 20px;
    margin-bottom: 15px;
    gap: 40px;
}

.sign-off {
    margin-top: 0px;/* Subtle spacing */
    margin-bottom: 20px;
}


.sign-off .profile-img {
    border: 1.5px solid #a43a3a;   /* Gold border, subtle */
}

.sign-off .name {
    color: #a43a3a;              /* Gold color for name */
}

.reactions-container {
    margin-top: 0px; 
    margin-bottom: 20px;
}

.reaction-btn {
    font-size: 0.9em;
    border: 1px dashed #9fc3d9;
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

.reaction-btn span.count {
    font-size: 0.7rem;
    color: #e0b04f;
    transform: translatey(1px);
}

.reaction-popup {
    gap: 4px;                   /* space between emojis */
    padding: 5px;               /* same as buttons */
    border: 1px solid #e0b04f;
    border-radius: 3px;
    background: rgba(0,0,0,0.25);
    bottom: 35px;
    right: 0;
    max-width: fit-content;     /* shrink to content */
    transform: translateY(5px);
}

.reactions .plus-btn {
    font-size: 0.8rem;
    line-height: 1;
    padding: 2px 4px;
    color: #fff1f1;
}


.plus-char {
    transform: translate(0.25px,-1px);
}


.reaction-popup .reaction-option {
    padding: 2px 4px;           /* same as .reaction-btn */
    border: 1px dashed #9fc3d9;
    border-radius: 3px;
}

.reaction-popup .reaction-option:hover {
    background: rgba(255,214,102,0.15);
}

.row-one-post {
    position: relative;
}

.date-tag {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(245, 241, 230, 0.32);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

@keyframes dateDoubleBlink {
  0%   { opacity: 1; }
  20%  { opacity: 0.4; }  /* fades instead of disappears */
  40%  { opacity: 1; }
  60%  { opacity: 0.4; }
  80%  { opacity: 1; }
  100% { opacity: 1; }
}

.date-blink {
  animation: dateDoubleBlink 0.6s ease-in-out 0.4s; /* keeps your delay */
}

/* =========================
   TOP BUNK SPARK
   ========================= */

.row-one-post.spark {
    position: relative;
    overflow: hidden; /* ensure pseudo-element doesn't escape */
    z-index: 0; /* base stacking context */
}

/* subtle colored overlay for unread posts */
.row-one-post.spark::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(164, 58, 58, 0.08); /* very subtle tint */
    pointer-events: none; /* don't block clicks */
    transition: opacity 0.6s ease-out; /* smooth fade */
    z-index: 1; /* above card content but below profile glow */
    opacity: 1;
    border-left: 3px solid #a43a3a; /* subtle gold highlight */

}

/* wrapper around profile image to handle glow */
.row-one-post.spark .profile-wrapper {
    position: relative;
    display: inline-block;
    z-index: 2; /* sits above overlay */
}

/* pulsing glow around profile image without altering the image itself */
.row-one-post.spark .profile-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 3.5px;
    border-radius: 5px; /* matches your profile image border radius */
    box-shadow: 0 0 8px rgba(255, 85, 120, 0.7);
    animation: profileGlow 1.4s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: -1; /* behind the image itself */
}

/* fade overlay and glow on click */
.row-one-post.spark.fading::before,
.row-one-post.spark.fading .profile-wrapper::after {
    opacity: 0.1;
    transition: opacity 0.6s ease-out;
}

/* keyframes for glow animation */
@keyframes profileGlow {
    from { box-shadow: 0 0 4px rgba(255, 85, 120,0.6)}
    to   { box-shadow: 0 0 18px rgba(255, 85, 120,1); }
}


/* =========================
   ROW ONE WATERMARK SEAL
   ========================= */

.watermark {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    color: rgba(245, 241, 230, 0.05);
    pointer-events: none;
    user-select: none;
}


/* SECOND ROW */

.topbunk-second-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 25px 50px 50px 50px;
    gap: 100px;
    max-width: 50em;
    margin: 3em auto 0 auto;   
}

.box h2 {
background: rgba(164, 58, 58, 0.18);
}

.topbunk-second-row h2 {
    color: #a43a3a;
}

.second-row-content {
    padding: 1.5em;
    height: 16em;
    display: flex;
    flex-direction: column;
    justify-content: center;    
}

.second-row-content p {
    font-size: 13px;
    line-height: 2;
    margin: 0 auto 1.5em auto;
}



@media (max-width: 820px) {
    .topbunk-first-row {
        flex-direction: column;
        align-items: center;
    }
    
    .mobile-arrows {
        display:flex;
        justify-content: center;
        align-items: center;
        gap: 155px;
        margin-top: 25px;
    }    
    
    .arrow-left,
.arrow-right {
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

/* Hover effect for enabled arrows only */
/* Hover effect for enabled arrows - subtle */
.arrow-left.enabled:hover,
.arrow-right.enabled:hover {
    transform:scale(1.05); /* keep centering + scale */
    filter: brightness(1.08);
    transition: transform 0.2s ease, filter 0.2s ease;
}
/* Disabled arrows */
.arrow-left.disabled,
.arrow-right.disabled {
  opacity: 0.4;
  cursor: default;
}

/* Click animation */
.arrow-click-animate {
    animation: arrowPop 0.2s ease forwards;
}

@keyframes arrowPop {
    0%   { transform: scale(1.05); }
    50%  { transform: scale(1.15); }
    100% { transform: scale(1.05); }
}    
    
    .row-one-content {
        height: 32em;

        
    }
    
        .topbunk-first-row .box ,
    .row-one-content {
        border: none;
        background: transparent;
        margin: 0;
        padding: 0;
    }
    
        .arrow {
        position: static;       /* return to normal flow */
        transform: none;
        height: 70px;/* optional scale down */
    }


    
    /* Webkit-based browsers (Chrome, Safari, Edge) */
    .row-one-content::-webkit-scrollbar {
        height: 8px;             /* horizontal scrollbar height */
    }

    .row-one-content::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3); /* light translucent thumb */
        border-radius: 4px;
    }

    .row-one-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1); /* subtle track */
        margin: 2px 4px;
    }

    /* Firefox */
    .row-one-content {
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.3) rgba(0,0,0,0.1);
    }
    
    .topbunk-second-row {
        grid-template-columns: 1fr;     /* stack */
        max-width: 23em;
        gap: 65px;
    }
}


.topbunk-archive-row {
    padding: 25px 300px 50px 300px;
}

.topbunk-archive-row h2 {
    color: #a43a3a;
}


/* =========================
   ARCHIVE SECTION
   ========================= */

.topbunk-archive-row .content {
    padding: 1.5em;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}

/* YEAR ROW */

.archive-years {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.archive-years button {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(245, 241, 230, 0.25);
    padding: 6px 12px;
    font-size: 12px;
    color: rgba(245,241,230,0.65);
    cursor: pointer;
    transition: all 0.2s ease;
}

.archive-years button:hover {
    background: rgba(255,255,255,0.06);
}

.archive-years button.active {
    border-color: #a43a3a;
    color: #a43a3a;
}


/* MONTH GRID (MAX 4 PER ROW) */

.archive-month-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.archive-month-grid button {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(245, 241, 230, 0.18);
  padding: 8px 0;
  font-size: 12px;
  color: rgba(245,241,230,0.6);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.archive-month-grid button:hover {
    background: rgba(255,255,255,0.06);
}

.archive-month-grid button.active {
    border-color: #e0b04f;
    color: #e0b04f;
}

.month-empty {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}


/* Floating clone animation */
.month-float {
  transform: translateY(0);
  opacity: 1;

  /* You can tweak this duration */
  transition:
    transform 1.1s cubic-bezier(0.99, 0.1, 1, 0.6),
    opacity 0.05s ease-in 1.05s; /* opacity delayed */
}

/* This controls how far it floats */
.month-float.up {
  transform: translateY(-400px) scale(1.01); /* ← TINKER DISTANCE HERE */
  opacity: 0;
}

.month-grayed {
  background: rgba(0,0,0,0.1) !important;
  color: rgba(245, 241, 230, 0.35) !important;
  border-color: rgba(245, 241, 230, 0.15) !important;
}

.month-highlight {
  background: gold;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
  border-color: gold;
}



/* =========================
   MOBILE TWEAKS
   ========================= */

@media (max-width: 820px) {

    .topbunk-archive-row {
    padding: 25px 100px 50px 100px;
}
    

@media (max-width: 600px) {

  /* -------------------- GLOBAL SETTINGS -------------------- */
  html, body {
    overflow-x: hidden; /* prevent horizontal overflow */
  }
  
  html {
    font-size: 14px; /* global font scale for mobile */
  }

  /* -------------------- FIRST ROW CONTAINER -------------------- */
  .topbunk-first-row {
    width: 100%;
    max-width: 100%;
    margin: 20px auto 0 auto;
    padding: 0 16px; /* small breathing room */
    box-sizing: border-box;
    transform: scale(0.88); /* scale down first-row posts */
    transform-origin: top center;
  }

  /* -------------------- POST FRAME -------------------- */
  .row-one-content {
    width: 100%;
    max-width: 100%;
    height: auto; /* prevent vertical squish */
    box-sizing: border-box;
  }

  /* -------------------- POST CARD -------------------- */
  .row-one-post {
    max-width: 100%;
    white-space: normal; /* allow wrapping on mobile */
    padding: 1em 1em 0em; /* breathing room after scaling */
  }

  /* Base font sizes for posts */
  .row-one-post p,
  .row-one-post .last-stanza {
    font-size: 7px;
    line-height: 1.45; /* slightly tighter but readable */
  }

  /* -------------------- SIGN-OFF AND REACTIONS -------------------- */
  .sign-off .name {
    transform-origin: center;
    white-space: nowrap;
    max-width: 100%;
  }

  .reactions-container {
    transform: scale(0.7);
    transform-origin: center;
    margin-left: -35px;
  }

  .reaction-btn {
    font-size: 0.75rem;
    visibility: hidden;
  }

  .reaction-btn span.count {
    font-size: 0.6rem;
  }

  /* -------------------- DATE -------------------- */
  .date-tag {
    font-size: 7px; /* override earlier 0.65rem */
  }

  /* -------------------- SECOND ROW & ARCHIVE -------------------- */
  .topbunk-second-row,
  .topbunk-archive-row {
    padding: 0px 20px 0px 20px;
    transform: scale(0.88); /* scale similar to first row */
    transform-origin: top center;
  }
    
    .topbunk-archive-row {
        padding: 0px 20px 50px 20px;
    }

  /* Row 2 / Archive content text sizing */
  .topbunk-second-row p,
  .topbunk-second-row .box p,
  .topbunk-archive-row p,
  .topbunk-archive-row .box p {
    font-size: 11px; /* match Row 1 posts */
    line-height: 1.45;
  }

  .topbunk-second-row h2,
  .box h2 {
    font-size: 1rem; /* section headers */
  }

  .archive-years button {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .archive-month-grid button {
    font-size: 10px;
    padding: 6px 0;
  }
    
  /* Ensure floating month matches mobile grid buttons */
.month-float {
    font-size: 9px !important;   
    padding: 6px 0 !important;      
    width: auto;                     
    text-align: center;              
    line-height: 1.2;                
    box-sizing: border-box;          

    /* vertical centering fix */
    display: flex;                    
    align-items: center;              
    justify-content: center;          
}

  /* -------------------- MOBILE ARROWS -------------------- */
  .mobile-arrows {
    gap: 60px; /* instead of 155px */
  }

  .arrow {
    height: 55px;
  }
}
    
