/*** START EVENTS PAGE ***/
.activityFeed .activityFeedComments .highlight {
    background-color: #ffff96;
}

.activityFeed ul.rsvpList {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.activityFeed .description {
    font-size: 15px;
}

.activityFeed .direct-link {
    font-size: 0.5em;
}

.activityFeed ul.rsvpList li {
    display: inline-block; /* Or block depending on your layout needs */
}

.activityFeed h3 {
    font-weight: bold;
}
.activityFeed .duration_user_friendly, .activityFeed .link {
    font-weight:bold;
    font-size: 1.1em;
}

.activityFeed .location {
    font-weight: bold;
    font-size: 1.1em;
}
.activityFeed ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.activityFeed .comment-thread ul {
    margin-left: 20px;
    padding-left: 10px;
    border-left: 2px solid #eee;
}

.activityFeed .comment-thread li {
    margin-bottom: 20px;
}

.activityFeed .comment-box {
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    position: relative;
}

.activityFeed .poster-info a.viewProfile img {
    width: 16px;
    height: 16px;
}

.activityFeed .poster-info i {
    color: gray;
    font-size: 0.8em;
}

.activityFeed .comment-box .profile-picture {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
}

.activityFeed .comment-box strong {
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.activityFeed .comment-box .comment {
    margin-top: 4px;
    font-size: 15px;
    color: #333;
}

.activityFeed .comment-box .timeAgoSpan {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    display: inline-block;
}

.activityFeed .comment-box a.reply-link {
    font-size: 13px;
    color: #3498db;
    text-decoration: none;
    display: inline-block;
    margin-top: 6px;
}

.activityFeed .comment-box a.reply-link:hover {
    text-decoration: underline;
}

/* Forms */
.activityFeed form[data-no-ajax="true"] {
    margin-top: 10px;
}

.activityFeed form textarea {
    width: 100%;
    max-width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    font-family: sans-serif;
    box-sizing: border-box;
}

.activityFeed form button {
    background-color: var(--button-bg-color);
    color: white;
    border: none;
    padding: 8px 16px;
    margin-top: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.activityFeed form button:hover {
    background-color: var(--button-hover-bg-color);
}

.activityFeed form .fetched-link-image img {
    max-width: 200px !important;
    width: 100%;
}

/* Comment section header */
.activityFeed h4 {
    margin-top: 20px;
    font-size: 18px;
    color: #2c3e50;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

/* Activity Feed Container Itself (already used but enhanced here) */
.activityFeed, .addProfilePost {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    background-color: #fff;
    margin-left: 10px;
}

.activityFeed h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-top: 0;
}

.activityFeed p {
    font-size: 15px;
    color: #555;
    margin: 5px 0;
}

.addActivityFeedPost {
    border: 1px solid #e8d4d4;
    border-radius: 14px;
    padding: 18px 22px;
    margin: 24px 10px 24px 10px;
    background: linear-gradient(180deg, #fff7f5 0%, #fffcfa 100%);
    max-width: 700px;
    box-shadow: 0 2px 6px rgba(183, 40, 40, 0.06);
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.addActivityFeedPost:hover {
    border-color: #d4b0b0;
    box-shadow: 0 4px 14px rgba(183, 40, 40, 0.12);
}

/* Collapsed-state rollup heading is a large inviting call-to-action.
   The gptRollUpToggle plugin turns this <h3> into a clickable header
   with a rotating arrow; style it so it reads as a friendly CTA
   rather than a generic "Label ▸" row. */
.addActivityFeedPost h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #B72828;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    letter-spacing: 0.2px;
}
.addActivityFeedPost h3::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #B72828;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'><path d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/></svg>");
    background-repeat: no-repeat;
    background-size: 18px 18px;
    background-position: center;
    box-shadow: 0 2px 4px rgba(183, 40, 40, 0.25);
}
.addActivityFeedPost h3:hover {
    color: #8f1e1e;
}
/* The plugin injects a trailing arrow character ▸; make sure it
   doesn't look bolted-on. */
.addActivityFeedPost h3 .rolluparrow,
.addActivityFeedPost h3 > span:last-child {
    margin-left: auto;
    color: #999;
    font-size: 14px;
    transition: transform 0.2s ease;
}

/* Expanded state: tighten the heading since the form is the focus. */
.addActivityFeedPost.rolled-open h3,
.addActivityFeedPost:not(.rolled-closed) h3 {
    margin-bottom: 12px;
}

.addActivityFeedPost form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.addActivityFeedPost form label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
    display: block;
}

.addActivityFeedPost form input[type="text"],
.addActivityFeedPost form input[type="url"],
.addActivityFeedPost form input[type="date"],
.addActivityFeedPost form input[type="datetime-local"],
.addActivityFeedPost form textarea {
    width: 100%;
    padding: 10px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: sans-serif;
    box-sizing: border-box;
}

.addActivityFeedPost form textarea {
    resize: vertical;
    min-height: 80px;
}

.addActivityFeedPost form button[type="submit"] {
    align-self: flex-start;
    background-color: var(--button-bg-color);
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.addActivityFeedPost form button[type="submit"]:hover {
    background-color: var(--button-hover-bg-color);
}

/* ── Comment thread layout ──────────────────────────────────────
   HTML shape (from ActivityFeed::renderComments):
     <li>
       <div .afcomment_X_container>
         <div .comment_before_replies> <avatar> <strong>name</strong>: <div .comment>text</div> </div>
         <div .commentInfo>just now</div>
       </div>
       <div .commentOwnerOptions> Delete + Reply </div>
     </li>
   Goal: conversational speech-bubble layout, easy on the eye. */

.activityFeed h4 {
    font-size: 14px;
    font-weight: 600;
    color: #8a4a4a;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 1px solid #f0dfdf;
    padding-bottom: 6px;
    margin: 18px 0 10px;
}

.activityFeed .comment_before_replies {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.activityFeed .comment_before_replies > a,
.activityFeed .comment_before_replies > a img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.activityFeed .comment_before_replies > strong {
    font-size: 14px;
    color: #3a2626;
    align-self: center;
    margin-right: -4px;
}
.activityFeed .comment_before_replies > .comment {
    flex: 1 1 auto;
    min-width: 200px;
}

.activityFeed .commentInfo {
    display: block;
    font-size: 12px;
    color: #9a8f8f;
    font-style: italic;
    margin: 2px 0 4px 46px; /* align under the bubble, past the avatar */
}

.activityFeed .commentOwnerOptions {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin: 0 0 14px 46px;
    flex-wrap: wrap;
}

/* Inline reply / top-level comment form under each post. Tighten it
   so it reads as a quick-reply box rather than a giant form card. */
.activityFeed form.genCommentFrm,
.activityFeed .comments form[action=""] {
    margin: 8px 0 14px 46px;
    padding: 0;
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.activityFeed form.genCommentFrm textarea,
.activityFeed .comments form[action=""] textarea {
    width: 100%;
    min-height: 56px;
    padding: 10px 14px;
    border: 1px solid #e0d3d3;
    border-radius: 20px;
    background: #fff;
    font-size: 14px;
    line-height: 1.45;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.activityFeed form.genCommentFrm textarea:focus,
.activityFeed .comments form[action=""] textarea:focus {
    outline: none;
    border-color: #B72828;
    box-shadow: 0 0 0 3px rgba(183, 40, 40, 0.12);
}
.activityFeed form.genCommentFrm button[type="submit"],
.activityFeed .comments form[action=""] button[type="submit"] {
    align-self: flex-start;
    background-color: #B72828;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.activityFeed form.genCommentFrm button[type="submit"]:hover,
.activityFeed .comments form[action=""] button[type="submit"]:hover {
    background-color: #8f1e1e;
}
.activityFeed a.apostcomment {
    display: inline-block;
    margin: 6px 0 0 46px;
    color: #B72828;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
.activityFeed a.apostcomment:hover {
    text-decoration: underline;
}

.activityFeed .commentItem {
    font-size: 15px;
}

.activityFeed .commentOwnerOptions button {
    font-size: 0.8em;
    padding: 3px;
}

.activityFeed .commentOwnerOptions form {
    display: inline;
    margin: 0;
    padding: 0;
}

.activityFeed .commentOwnerOptions .myOptionsLbl {
    display: none; /* not needed, don't show for now */
    color: silver;
    font-size: 0.85em;
}

.activityFeed .commentOwnerOptions button, .activityFeed button, button[type=submit].link-button{
    text-decoration: underline;
    border: none;
    background-color: transparent;
    margin-top: 0;
    padding-top: 0;
    background: none;
    color: gray;
}

button.danger{
    background-color: red;
    color: white;
    border-radius: 10px;
    padding: 10px;
    height: 42px;
}

button.link-button.danger{
    color: maroon;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

button.link-button.danger:hover{
    color: #cc2626;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
}

.activityFeed button[value="submit_rsvp"] {
    font-size: 0.8em;
    text-decoration: none;
}

.activityFeed .commentOwnerOptions button[value="delete_comment"]{
    color: maroon;
}

.activityFeed button[value="delete_event"]{

}

.activityFeed .commentOwnerOptions button[value="delete_comment"]:hover{
    background-color: maroon;
    color: white;
}

.activityFeed .your_rsvp {
    display: inline-block;
}
.activityFeed select[name="rsvp"] {
    display: inline-block;
    max-width: 300px;
}

.activityFeed.deleted {
    background-color: whitesmoke;
    opacity: 0.5;
}