
/* Make body full screen for Secret Spot */
body {
    margin: 0;
    padding: 0;
    background: #000;
    height: 100vh;
    overflow: hidden;
}

/* Full viewport container for the achievement */
.single-achievement.achievement-wrap {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* Fullscreen background image with immersive pulse */
.wriwoods-secret-spot-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: 100vh;
    min-width: 100vw;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    z-index: -1;
    animation: secretSpotPulse 10s ease-in-out infinite;
    transform-origin: center center;
}

/* Gentle breathing effect — combines scale and brightness */
@keyframes secretSpotPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        filter: brightness(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.03);
        filter: brightness(1.08);
    }
}

/* Achievement text container */
.Xgamipress-achievement-description {
    position: relative;
    z-index: 2;
    max-width: 650px;
    padding: 2rem;
    line-height: 1.5;
    border-radius: 15px;

    /* Smooth transition for background and other properties */
    transition: background-color 0.4s ease, transform 0.4s ease;
}

/* Profile link */
.secret-spot-profile-link {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: underline;
}
.secret-spot-profile-link:hover {
    text-decoration: none;
}

/* Prefixed secret spot line */
.secret-spot-prefix {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #fff;
    margin-top: 0;
}

/* Achievement title */
.entry-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1rem;
    color: #fff;
}

/* Earned text */
.gamipress-achievement-earned {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Paragraph content */
.Xgamipress-achievement-description p {
    font-size: 1.25rem;
    color: #fff;
}
/* Floating Back to Trailhead button */
.secret-spot-back-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    padding: 0.75rem 1.5rem;
    background-color: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 300;
    letter-spacing: 0.1rem;
    transition: all 0.3s ease;
    z-index: 999; /* make sure it floats above everything */
}

.secret-spot-back-btn:hover {
    background-color: rgba(0,0,0,0.85);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}






/** NEW BAR IDEA **/
/* Bar container */
.achievement-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #fff;
    transition: transform 0.4s ease, background 0.4s ease;
    transform: translateY(calc(100% - 60px)); /* Only title visible */
    z-index: 10;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    overflow: hidden;
}

/* Bar lifts up on hover */
.achievement-bar:hover {
    transform: translateY(0);
    background: rgba(0,0,0,0.85);
}

/* Title always visible */
.achievement-bar-title {
    font-size: 1.75rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
}

/* Details hidden initially */
.achievement-bar-details {
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    line-height: 1.5;
    max-width: 800px;
    margin: auto;
    text-align: left;
}

/* Make details scrollable */
.achievement-bar-details {
    max-height: 40vh;
    overflow-y: auto;
}

/* Optional: smooth mobile tap */
@media (hover: none) {
    .achievement-bar {
        transform: translateY(calc(100% - 60px));
    }
    .achievement-bar:active {
        transform: translateY(0);
    }
}








/** Animation **/
/* Page load animation */
.single-achievement.achievement-wrap {
    opacity: 0;
    transform: translateY(20px); /* Start slightly lower */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Active state when page loaded */
.single-achievement.achievement-wrap.loaded {
    opacity: 1;
    transform: translateY(0);
}












/** Comments **/

/* Hide default title */
.comments-title {
    display: none;
}


/* ===== Secret Spot Comments ===== */
.wriwoods-secret-spot-comments {
    margin: 2em auto 4em auto;
    background: #00000000;
    padding: 2em 2.5em;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    color: #F5F1E6;
    line-height: 1.6;
}


/* Inline comment form */
.wriwoods-secret-spot-comments .comment-form {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between textarea and button */
}

/* Make textarea flexible to take up remaining space */
.wriwoods-secret-spot-comments .comment-form textarea {
    flex: 1;
    height: 40px; /* shrink for inline style */
    resize: vertical;
    margin: 0; /* remove default spacing */
    padding: 12px;
    border-radius: 5px;
    resize: vertical;
    font-size: 1em;
    background-color: #F5F1E6;
    font-family:Arial, Helvetica, sans-serif;
    font-size: 14px;
}

.wriwoods-secret-spot-comments .comment-form textarea:focus {
    outline: none;
    border: none;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Publish button inline with textarea */
.wriwoods-secret-spot-comments .comment-form input[type="submit"] {
    margin: 0; /* remove top margin */
    flex-shrink: 0; /* prevent shrinking */
    height: 40px; /* match textarea height */
    padding: 0 20px;
    background-color: #4a644c;
    color: #F5F1E6;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    transition: background-color 0.3s;
    cursor: pointer;
}

.wriwoods-secret-spot-comments .comment-form input[type="submit"]:hover {
    background-color: #2a7f62; /* slightly darker variant */
}

.wriwoods-secret-spot-comments a {
    color: #4a644c;
    outline: 0;
    text-decoration: none;
}

/* Comments section title */
.wriwoods-secret-spot-comments .comments-title {
    text-align: center;
    font-style: italic;
    font-size: 1.5em;
    margin-bottom: 1.8em;
    color: #2a2a2a;
}

/* Comment form */
.wriwoods-secret-spot-comments #respond {
    margin-top: 2em;
}

.comment-author {
    font-weight: 500;
    color: #F5F1E6;
    font-family:Arial, Helvetica, sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1;
    font-style: normal;
}

/* Logged in as */
.wriwoods-secret-spot-comments .logged-in-as {
    display: none !important;
}

.wriwoods-secret-spot-comments .logged-in-as {
    display: flex;
    align-items: center; /* vertical center */
    margin-bottom: 10px;
    font-size: 16px;
    color: #ccc; /* lighter for dark bg */
    gap: 0.5em; /* space between avatar and name */
}

.wriwoods-secret-spot-comments .logged-in-as .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0; /* prevent shrinking */
    display: block;
}

.wriwoods-secret-spot-comments .logged-in-as .comment-author,
.wriwoods-secret-spot-comments .logged-in-as .name {
    line-height: 1; /* align text vertically with avatar */
    display: flex;
    align-items: center;
}

/* Comment list */
.wriwoods-secret-spot-comments .comment-list {
    list-style: none;
    padding: 0;
    margin-top: 2em;
}

/* Individual comment */

.wriwoods-secret-spot-comments .comment-list li.comment .comment-author {
    font-weight: 500;
}

/* Comment author avatar */
.wriwoods-secret-spot-comments img.avatar {
    border-radius: 100%;
    width: 42px;
    height: 42px;
    margin-right: 10px;
}

/* Comment content */
.wriwoods-secret-spot-comments .comment-content-wrap {
    flex: 1;
    position: relative;
    padding-left: 12px;
    text-align: left;
}

/* Stack author name and date vertically */
.wriwoods-secret-spot-comments .comment-meta.comment-metadata {
    display: block; /* overrides flex if applied */
}

.wriwoods-secret-spot-comments .comment-meta.comment-metadata .comment-author,
.wriwoods-secret-spot-comments .comment-meta.comment-metadata .comment-date {
    display: block;
    margin: 0; /* optional spacing */
}

.wriwoods-secret-spot-comments .comment-meta.comment-metadata .comment-date {
    font-size: 0.85em;
    color: #ccc; /* lighter for dark bg */
    margin-top: 2px; /* small gap under name */
}

.comments-area .comment-content-wrap .comment-meta {
    margin-right: 35px;
}

a.comment-date {
    font-size: 14px;
    color: #F5F1E6;
    letter-spacing: -.24px;
}

#comments .comment-body {
    position: relative;
}

.comment-body {
    display: flex;
    background: rgba(33, 33, 38, 0.65); /* subtle card effect */
    border-left: 3px solid #a8d5ba; /* note-like accent */
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 15px;

}

/* Comment text */

.comment-text {
    font-size: 16px;
    color: #F5F1E6;
    letter-spacing: -.24px;
    line-height: 24px;
    margin-top: 8px;
    margin-bottom: 8px;
    word-break: break-word;
}

/* Reply/Edit links */
.comment-footer {
    font-size: 14px;
    color: var(--bb-alternate-text-color);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    letter-spacing: -.26px;
    margin-bottom: -8px;
}
.comment-reply-link,
.bb_more_options {
    display: none;
}

.comment-footer a:not(.bb-bookmark) {
    color: inherit;
    margin-right: 20px;
}

/* Subtle fade-in animation */
.wriwoods-secret-spot-comments {
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Mobile adjustments for Secret Spot comment form */
@media (max-width: 600px) {
    .wriwoods-secret-spot-comments .comment-form {
        flex-direction: column; /* stack textarea and button */
        align-items: stretch;   /* stretch items to full width */
        gap: 8px; /* slightly smaller gap for mobile */
    }

    .wriwoods-secret-spot-comments .comment-form textarea {
        width: 100%; /* full width */
        height: 50px; /* slightly taller for touch */
        padding: 10px;
        font-size: 14px;
    }

    .wriwoods-secret-spot-comments .comment-form input[type="submit"] {
        width: 100%; /* button full width under textarea */
        height: 45px;
        padding: 0;
        font-size: 1em;
    }
}


/* Desktop: hover to expand */
@media (hover: hover) {
  .achievement-bar {
      transform: translateY(calc(100% - 60px)); /* only title visible */
      transition: transform 0.4s ease, background 0.4s ease;
  }
  .achievement-bar:hover {
      transform: translateY(0);
      background: rgba(0,0,0,0.85);
  }
}

/* Mobile: use tap (JS adds .open class) */
@media (hover: none) {
  .achievement-bar {
      transform: translateY(calc(100% - 60px));
      transition: transform 0.4s ease, background 0.4s ease;
  }
  .achievement-bar.open {
      transform: translateY(0);
      background: rgba(0,0,0,0.85);
  }
}