/*  cBB Follower StyleSheet
    --------------------------------------------------------------
    Style:	All
    Copyright (c) 2025 CaniDev ( https://www.canidev.com )
    --------------------------------------------------------------
*/

/* Helpers
------------------------ */
.fw-pullcenter { text-align: center; }
.fw-pullright { float: right; }

/* Wall and Dialog
----------------------------- */
body {
    --wall-background-color: #fff;
    --wall-border-color: #e1e8ed;
}
#wall-content {
    color: #000;
    font-size: 1.1em;
    margin: 10px 0;
}

#wall-content,
#wall-content *,
#fwdialog * {
    box-sizing: border-box;
}

.wall-top-buttons {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    clear: both;
    display: block;
    height: auto;
    line-height: 1px;
    text-align: left;
}

.wall-top-buttons {
    background: var(--wall-background-color);
    padding: 8px;
}

.wall-top-buttons a.fwbutton {
    display: inline-block;
    font-weight: bold;
    line-height: 1.6em;
    margin: 0 6px;
    padding: 4px;
    text-decoration: none;
    vertical-align: middle;
}

.wall-top-buttons .fwbutton .fa {
    font-size: 1.6em;
    margin-right: 5px;
    vertical-align: middle;
}

#wall-header {
    background-size: 100% 100%;
    border: none;
    border-radius: 0;
    display: block;
    /* CHANGE: Added min-height to ensure header doesn't collapse */
    min-height: 145px;
    margin: 0;
    padding-top: 5px;
    text-align: left;
    /* CHANGE: Added !important to enforce black background */
    background-color: #000 !important;
}

#wall-header.has-image {
    /* CHANGE: Changed background color from #b5b5b5 to #000000 */
    background: #000000 none 50% 50% no-repeat;
    background-size: 100% auto;
}

#wall-tabs {
    background-color: var(--wall-background-color);
    font-size: 0.9em;
    padding: 0 10px;
}

#wall-tabs a.tab {
    border-bottom: 4px solid transparent;
    display: inline-block;
    height: 50px;
    line-height: 1em;
    margin: 0 2px;
    text-align: center;
    text-transform: uppercase;
    padding: 10px 15px 7px;
    text-decoration: none;
    vertical-align: bottom;
}

#wall-tabs a.tab.active {
    font-weight: bold;
}

#wall-tabs a.tab.fw-tab-menu,
#wall-tabs a.tab.fw-tab-info {
    display: none;
}

#wall-tabs a.tab.fw-tab-menu {
    border-bottom: none;
    font-size: 24px;
    line-height: 28px;
    margin-right: 10px;
}

#wall-tabs a.tab .fw-counter {
    display: block;
    font-size: 1.35em;
    font-weight: bold;
    margin-top: 0.45em;
}

#wall-tabs a.tab.titleonly {
    line-height: 30px;
}

#wall-tabs .fwbutton {
    margin-top: 12px;
}

.cbb-menu.wall-tabs-menu {
    width: 180px;
}

.cbb-menu.wall-tabs-menu a {
    padding: 10px 14px;
}

.cbb-menu.wall-tabs-menu a .fw-counter {
    float: right;
    font-weight: bold;
}

#wall-wrap {
    border-top: 1px solid var(--wall-border-color);
    padding: 8px 8px 4px 8px;
}

.wall-main-content {
    background-color: var(--wall-background-color);
    float: left;
    width: 69%;
    min-height: 400px;
    margin-bottom: 8px;
}

.wall-right-side {
    background-color: var(--wall-background-color);
    width: 30%;
    padding: 10px;
    margin-bottom: 8px;
    float: right;
    clear: right;
}

.fw-info-mode .wall-right-side {
    display: block;
    float: none;
    width: auto;
}

.wall-right-side dl {
    font-size: 1em;
}

.wall-right-side dt {
    width: 40%;
}

.wall-right-side dd {
    text-align: left;
    width: 55%;
}

.wall-main-content h2,
.wall-right-side h2 {
    font-family: Arial;
    font-size: 1.4em;
    font-weight: bold;
    margin: 0 0 10px 0;
}

.wall-main-content h2 {
    margin: 10px;
}

.wall-user-details {
    list-style-type: none;
    padding: 0;
}

.wall-user-details li {
    display: block;
    padding: 5px;
}

.wall-user-details .fa {
    font-size: 1.4em;
    vertical-align: middle;
    width: 20px;
}

#wall-content,
.wall-main-content,
.wall-right-side,
#wall-user-stats {
    border: 1px solid var(--wall-border-color);
}

.wall-row {
    border-bottom: 1px solid var(--wall-border-color);
    line-height: 15px;
    padding: 10px 20px;
    text-align: left;
    min-height: 48px;
    font-family: Verdana, Helvetica, Arial, sans-serif;
    position: relative;
}

.wall-row:last-child {
    border-bottom-width: 0;
}

.wall-row.main {
    border-bottom: none;
    padding: 0 20px 10px 20px;
}

.wall-row.main .comment-text {
    font-size: 18px;
    font-weight: normal;
    line-height: 24px;
    padding: 8px 0px 2px;
}

.wall-row .fw-content {
    margin-left: 64px;
}

.wall-row .fw-counter {
    font-size: 0.9em;
}

.wall-row .fw-row-user-buttons {
    float: right;
}

.wall-row,
.wall-user-details {
    font-size: 1.1em;
}

#wall-avatar {
    float: left;
    margin: 18px;
    position: relative;
}

#wall-avatar,
#wall-avatar .fw-user-avatar {
    width: 100px;
    height: 100px;
    /* CHANGE: Added object-fit and object-position for better image scaling */
    object-fit: cover;
    object-position: center;
}

/* CHANGE: Completely revamped wall-user-online with animated metallic silver effect */
#wall-avatar .wall-user-online {
    background: #A5ACAF; /* Starting color (Raiders silver) */
    bottom: 8px;
    border-radius: 50%;
    height: 16px;
    position: absolute;
    right: 6px;
    width: 16px;
    -webkit-animation: backgroundTransition 2.8s infinite ease-in-out; /* Smoother timing, vendor prefix */
    animation: backgroundTransition 2.8s infinite ease-in-out; /* Apply animation */
}
/* CHANGE: Added keyframes for smoother metallic silver background transition */
@keyframes backgroundTransition {
    0% {
        background: #A5ACAF; /* Raiders silver */
    }
    25% {
        background: #B2BBC0; /* Intermediate: medium to bright silver */
    }
    50% {
        background: #C0C7CC; /* Brighter silver for highlight */
    }
    75% {
        background: #9CA7AE; /* Intermediate: bright to dark silver */
    }
    100% {
        background: #8A9299; /* Darker silver for depth */
    }
}

#wall-aboutme {
    margin-left: 135px;
    /* CHANGE: Uncommented and set color to white, added enhanced text-shadow */
    color: #fff;
    padding-top: 12px;
    text-shadow: 2px 2px 4px rgb(0, 0, 0), 
                 -2px -2px 4px rgb(0, 0, 0), 
                 2px -2px 4px rgb(0, 0, 0), 
                 -2px 2px 4px rgb(0, 0, 0);
}

/* CHANGE: Updated text-shadow to match #wall-aboutme for consistency */
.has-image #wall-aboutme {
    text-shadow: 2px 2px 4px rgb(0, 0, 0), 
                 -2px -2px 4px rgb(0, 0, 0), 
                 2px -2px 4px rgb(0, 0, 0), 
                 -2px 2px 4px rgb(0, 0, 0);
}

#wall-aboutme .full-name {
    font-size: 18px;
    font-weight: bold;
}

.wall-row .fw-user-avatar {
    margin-top: 3px;
    /* CHANGE: Added !important to enforce size, added min-height/width and object-fit/position */
    width: 48px !important;
    height: 48px !important;
    min-height: 48px !important;
    min-width: 48px !important;
    object-fit: cover;
    object-position: center;
}

.fw-user-avatar {
    border-radius: 50%;
    float: left;
    overflow: hidden;
    position: relative;
}

.fw-user-avatar img {
    /* CHANGE: Reordered and refined properties for clarity and consistency */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* CHANGE: Added explicit circular container styling for clarity */
.fw-user-avatar {
    position: relative;
    width: 100%; /* Or a fixed size, e.g., 40px */
    height: 100%; /* Or a fixed size, e.g., 40px */
    border-radius: 50%;
    overflow: hidden; /* Clip any overflow */
}

.fw-user-avatar .cbb-no-avatar {
    height: 100%;
}

.wall-row .row-share-info {
    padding: 0 0 5px 40px;
}

.wall-row .fw-row-header .fw-icon {
    margin: 0 5px 0 2px;
}

.wall-row .row-text {
    margin-top: 5px;
}

.wall-row[data-type="comment"] .row-text {
    cursor: pointer;
}

.wall-row .row-small,
.fwsmall-text {
    font-size: 0.9em;
    color: #999;
}

.wall-row .row-actions {
    align-items: center;
    display: flex;
    gap: 30px;
    margin-top: 12px;
}

.wall-row .row-actions a {
    align-items: center;
    display: flex;
    gap: 5px;
    opacity: 0.4;
    text-decoration: none;
    white-space: nowrap;
}

.wall-row .row-actions a i {
    font-size: 16px;
}

.wall-row .row-actions a.disabled {
    cursor: default;
}

.wall-row .fw-options-dropdown {
    float: right;
    font-size: 1.1em;
    margin-right: -5px;
    opacity: 0.4;
}

.wall-row .row-actions a:not(.disabled):hover,
.wall-row .fw-options-dropdown:hover,
.wall-row .row-actions a.active {
    opacity: 1;
}

a[data-action="share"].active {
    color: #17bf63;
}

a[data-action="like"].active,
a[data-action="like"].active .icon {
    /* CHANGE: Removed color property to allow default or theme-based styling */
}

.fw-pagination-container {
    margin: 10px 0 5px 0;
    text-align: center;
}

.post-buttons .fw-counter {
    font-size: 0.8em !important;
    vertical-align: top;
    line-height: 16px
}

#fwdialog .cbb-dialog-content {
    min-height: 80px;
}

#fwdialog .cbb-dialog-content > .cbb-loading {
    height: 40px;
    margin: 0 auto;
    width: 40px;
}

#fwdialog .cbb-dialog-content > .cbb-loading > span {
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    width: 40px;
}

#fwdialog .wall-row {
    border: none;
    margin-bottom: 10px;
    padding-top: 0;
}

.fw-replies-separator {
    border-bottom: 1px solid var(--wall-border-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
    margin-top: 20px;
}

.avatar-inline {
    display: inline-block;
    float: none;
    overflow: hidden;
    width: 24px;
    height: 24px;
}

.who-follow-row {
    margin-bottom: 15px;
}

.who-follow-row .fw-user-avatar {
    width: 32px;
    height: 32px;
}

.who-follow-row .row-content {
    margin-left: 40px;
    text-align: left;
}

.wall-notice {
    font-size: 12px;
    padding: 10px 20px;
}

.fw-comment-extra {
    float: left;
}

.fw-comment-extra a.cbb-btn {
    font-size: 1.2em;
    min-width: 34px;
    text-align: center;
}

#wall-content,
.wall-main-content,
.wall-right-side,
#wall-user-stats {
    border-radius: 6px;
}

.fw-row-attachments {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.fw-row-attachments li {
    display: inline-block;
    margin-right: 5px;
    max-width: 20%;
}

.fw-row-attachments img {
    height: auto;
    max-width: 100%;
}

/* Follow button
-------------------------*/
.follow-text,
.unfollow-text,
.following-text {
    display: none;
}

.follow .follow-text,
.following .following-text,
.unfollow .unfollow-text {
    display: inline;
}

.fwbutton.follow .fa:before		{ content: "\f055"; }
.fwbutton.following .fa:before	{ content: "\f00c"; }
.fwbutton.unfollow .fa:before	{ content: "\f057"; }

/* Trend list
-------------------------*/
.trendlist {
    list-style-type: none;
    padding: 0;
    text-align:left;
}

.trendlist li {
    padding: 4px;
}

/* Menu
-------------------------*/
.fw-user-selector {
    max-height: 200px;
    overflow: auto;
}

.fw-user-selector li a {
    line-height: 16px;
    padding: 6px 10px;
}

.fw-user-selector .fw-user-avatar {
    height: 20px;
    width: 20px;
}

.fw-user-selector li a > span {
    margin-left: 5px;
}

.fw-user-selector .fw-user-avatar,
.fw-user-selector li a > span {
    vertical-align: middle;
}

/* Editor, mentions and tags
------------------------- */
.fw-comment-box {
    position: relative;
}

.fw-comment-box textarea,
.fw-comment-box .fw-editor {
    border: 1px solid #ccc;
    height: 2.5em;
    outline: none;
    scrollbar-width: thin;
    width: 100%;
}

.fw-comment-box.active textarea,
.fw-comment-box.active .fw-editor {
    height: 65px;
    width: 100%;
}

.fw-comment-box .fw-editor-buttons {
    display: none;
    margin-top: 5px;
    text-align: right;
}

.fw-comment-box.active .fw-editor-buttons {
    display: block;
}

.fw-editor {
    overflow: hidden;
    padding: 5px 40px 5px 5px;
}

.fw-editor-smilies {
    position: absolute;
    right: 13px;
    top: 6px;
    font-size: 1.5em;
}

.fw-editor-counter {
    align-items: center;
    gap: 2px;
    position: absolute;
    right: 12px;
    top: 40px;
}

.fw-editor-counter > svg {
    overflow: visible;
    transform: rotate(-90deg);
}

.fw-editor-counter > span {
    /* CHANGE: Removed color property to allow default or theme-based styling */
    font-size: 0.8em;
}

.fw-editor-smilies,
.fw-editor-counter {
    display: none;
    line-height: 1.2em;
}

.fw-comment-box.active .fw-editor {
    overflow: auto;
}

.fw-comment-box.active .fw-editor-smilies {
    display: block;
}

.fw-comment-box.active .fw-editor-counter {
    display: flex;
}

.fw-editor-counter .safe {
    stroke: #1da1f2;
}

.fw-editor-counter .warn {
    stroke: #ffad1f;
}

.fw-editor-counter .danger {
    /* CHANGE: Removed color property to allow default or theme-based styling */
}

.fw-editor-counter .mask {
    stroke: #ccd6dd;
}

a.mention {
    font-weight: bold;
}

.fw-editor a.mention:hover {
    text-decoration: none;
}

.fw-editor-attachments .attachment {
    margin: 4px;
}

.fw-smiley-container {
    max-height: 200px;
    max-width: 250px;
    overflow: auto;
}

.fw-smiley-container > a {
    display: inline-block;
    margin: 4px;
}

.fw-editor[placeholder]:empty:before {
    content: attr(placeholder);
    cursor: text;
    display: block;
    line-height: 1.5em;
    opacity: 0.7;
}

/* User card
------------------------------ */
.fw-user-card {
    font-size: 12px;
    width: 250px;
    /* CHANGE: Added max-width and box-sizing for better responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.fw-card-header {
    align-items: center;
    border-radius: 4px 4px 0 0;
    display: flex;
    /* CHANGE: Changed justify-content to space-between for better layout */
    justify-content: space-between; /* Space for left and right float */
    margin: -2px;
    /* CHANGE: Reduced margin-bottom to fit stats better */
    margin-bottom: 25px; /* Slightly reduced to fit stats */
    padding: 0 8px;
    position: relative;
}

.fw-card-header.navbar {
    border: none;
    float: none;
    overflow: visible;
    width: auto;
}

.fw-card-header.navbar:before,
.fw-card-header.navbar:after {
    display: none;
}

.fw-user-card .screen-name {
    font-size: 1.1em;
    font-weight: bold;
    /* CHANGE: Added max-width, ellipsis, and float for better layout */
    max-width: 140px; /* Adjusted to fit with button */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 50px; /* Closer to avatar */
    float: left; /* Float left, overflow to right */
}

.fw-user-card .fw-user-avatar {
    width: 40px;
    height: 40px;
    position: absolute;
    /* CHANGE: Adjusted positioning and added box-sizing */
    left: 8px;
    top: 10px;
    border: 2px solid #fff;
    box-sizing: border-box;
}

.fw-user-card .fwbutton {
    /* CHANGE: Changed positioning to float for better alignment */
    float: right; /* Float right next to screen name */
    padding: 3px 6px;
    margin-right: 12px;
}

.fw-card-text {
    padding: 4px;
    /* CHANGE: Increased top padding for better spacing */
    padding-top: 12px;
}

.fw-card-stats {
    /* CHANGE: Reduced font-size and margin for compactness */
    font-size: 0.9em;
    list-style-type: none;
    margin: 5px 0;
    padding: 0;
    text-align: center;
}

.fw-card-stats li {
    display: inline-block;
    vertical-align: top;
    /* CHANGE: Reduced margin for tighter layout */
    margin: 0 6px;
}

.fw-card-stats li > span {
    display: block;
    font-weight: bold;
    /* CHANGE: Slightly reduced font-size for better fit */
    font-size: 1.4em;
}

/* Embed mode
------------------------------- */
html.embedmode {
    height: auto;
}

.embedmode body {
    margin: 0;
    padding: 0;
}

.embedmode #wall-content {
    border: none;
    margin: 0;
}

.embedmode #wall-content,
.embedmode .wall-top-buttons {
    border-radius: 0;
}

/* Clear
------------------------------ */
#wall-wrap:after,
.wall-top-buttons:after,
.wall-right-side:after,
.wall-row:after,
.who-follow-row:after,
.fw-comment-box:after,
.fw-user-selector li a:after {
    content: "";
    display: block;
    clear: both;
}

/* RTL
------------------------------ */
.rtl .wall-right-side,
.rtl .fw-pullright,
.rtl .wall-row .fw-row-user-buttons,
.rtl .cbb-menu.wall-tabs-menu a .fw-counter {
    float: left;
}

.rtl .fw-pullleft,
.rtl .wall-main-content,
.rtl .fw-user-avatar,
.rtl #wall-avatar,
.rtl .fw-comment-extra {
    float: right;
}

.rtl .wall-right-side {
    clear: left;
}

.rtl #wall-avatar .wall-user-online {
    left: 6px;
    right: unset;
}

.rtl #wall-aboutme {
    margin-left: auto;
    margin-right: 135px;
}

.rtl .wall-top-buttons,
.rtl #wall-header,
.rtl .wall-row,
.rtl .trendlist {
    text-align: right;
}

.rtl .wall-top-buttons .fwbutton .fa {
    margin-left: 5px;
    margin-right: unset;
}

.rtl .wall-row .fw-content {
    margin-left: 0;
    margin-right: 64px;
}

.rtl .wall-row .fw-options-dropdown {
    float: left;
}

.rtl .wall-row .row-actions a {
    margin-left: 28px;
    margin-right: unset;
}

.rtl .wall-user-details li > strong {
    float: right;
    margin-left: 5px;
}

.rtl .fw-editor {
    padding-left: 40px;
    padding-right: 5px;
}

.rtl .fw-editor-smilies {
    left: 14px;
    right: unset;
}

.rtl .fw-editor-counter {
    left: 12px;
    right: unset;
}

.rtl .who-follow-row .row-content {
    margin-left: 0;
    margin-right: 40px;
    text-align: right;
}

.rtl .fw-user-card .fw-user-avatar {
    left: unset;
    right: 10px;
}

/* Dark Theme
------------------------------ */
.dark-theme #wall-content {
    --wall-background-color: #262626;
    --wall-border-color: #282828;
}

.dark-theme #wall-content {
    color: #a9a9a9;
}

.dark-theme .wall-main-content,
.dark-theme .wall-right-side {
    --wall-background-color: #2f2f2f;
}

.dark-theme .fw-user-card .fw-user-avatar {
    border-color: #1f1f1f;
}

.dark-theme .fw-comment-box textarea,
.dark-theme .fw-comment-box .fw-editor,
.dark-theme .fw-replies-separator {
    border-color: #444;
}

.dark-theme .fw-editor-counter .mask {
    stroke: #444;
}

.dark-theme .fw-editor-counter .safe {
    stroke: #cecece;
}

/* Responsive Layout
------------------------------- */
@media only screen and (max-width: 768px) {
    #wall-tabs a.tab,
    .wall-right-side {
        display: none;
    }
    
    .fw-info-mode .wall-right-side {
        display: block;
    }
    
    #wall-tabs a.tab.active,
    #wall-tabs a.tab.fw-tab-menu	{
        display: inline-block;
    }
    
    .wall-main-content,
    .rtl .wall-main-content,
    .wall-right-side {
        float: none;
        width: auto;
    }
}

@media only screen and (max-width: 500px) {
    .wall-top-buttons > a > span {
        display: none;
    }
}

@media only screen and (max-width: 425px) {
    #wall-header {
        /* CHANGE: Changed height to min-height for consistency with main #wall-header */
        min-height: 80px;
    }

    #wall-avatar {
        margin: 16px;
    }
    
    #wall-avatar,
    #wall-avatar .fw-user-avatar {
        width: 40px;
        height: 40px;
    }
    
    #wall-avatar .wall-user-online {
        bottom: 0;
        height: 14px;
        right: 0;
        width: 14px;
    }
    
    #wall-aboutme {
        margin-left: 90px;
    }

    .rtl #wall-aboutme {
        margin-right: 90px;
    }
    
    #wall-aboutme .full-name {
        font-size: 14px;
    }

    .wall-row .fw-row-user-buttons {
        left: 35%;
        position: absolute;
        top: 35px;
    }
}