/*  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;
    min-height: 145px;
    margin: 0;
    padding-top: 5px;
    text-align: left;
    background-color: #000 !important;
}

#wall-header.has-image {
    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;
    object-fit: cover;
    object-position: center;
}

#wall-avatar .wall-user-online {
    background: #A5ACAF;
    bottom: 8px;
    border-radius: 50%;
    height: 16px;
    position: absolute;
    right: 6px;
    width: 16px;
    -webkit-animation: backgroundTransition 2.8s infinite ease-in-out;
    animation: backgroundTransition 2.8s infinite ease-in-out;
}

@keyframes backgroundTransition {
    0% { background: #A5ACAF; }
    25% { background: #B2BBC0; }
    50% { background: #C0C7CC; }
    75% { background: #9CA7AE; }
    100% { background: #8A9299; }
}

#wall-aboutme {
    margin-left: 135px;
    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);
}

.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;
    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 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.fw-user-avatar {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
}

.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;
}

.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-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"; }

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

.trendlist li {
    padding: 4px;
}

.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;
}

.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 {
    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 .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;
}

.fw-user-card {
    font-size: 12px;
    width: 250px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.fw-card-header {
    align-items: center;
    border-radius: 4px 4px 0 0;
    display: flex;
    justify-content: space-between;
    margin: -2px;
    margin-bottom: 25px;
    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;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: 50px;
    float: left;
}

.fw-user-card .fw-user-avatar {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 8px;
    top: 10px;
    border: 2px solid #fff;
    box-sizing: border-box;
}

.fw-user-card .fwbutton {
    float: right;
    padding: 3px 6px;
    margin-right: 12px;
}

.fw-card-text {
    padding: 4px;
    padding-top: 12px;
}

.fw-card-stats {
    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;
    margin: 0 6px;
}

.fw-card-stats li > span {
    display: block;
    font-weight: bold;
    font-size: 1.4em;
}

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; }

#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 .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 – fixed to use html.darkmode */
html.darkmode #wall-content {
    --wall-background-color: #262626;
    --wall-border-color: #282828;
    color: #a9a9a9;
}

/* Email / PM / Follow buttons on wall */
html.darkmode .wall-top-buttons a.fwbutton,
html.darkmode .wall-row .row-actions a,
html.darkmode .fwbutton.follow,
html.darkmode .fwbutton.following,
html.darkmode .fwbutton.unfollow,
html.darkmode .wall-user-details .fa,
html.darkmode .cbb-btn {
    color: #fff !important;
    background-color: #222 !important;
    border-color: #333 !important;
}

html.darkmode .wall-top-buttons a.fwbutton:hover,
html.darkmode .wall-row .row-actions a:hover,
html.darkmode .fwbutton.follow:hover,
html.darkmode .fwbutton.following:hover,
html.darkmode .fwbutton.unfollow:hover,
html.darkmode .cbb-btn:hover {
    background-color: #a5acaf !important;
    color: #000 !important;
    border-color: #a5acaf !important;
}
html.darkmode .wall-main-content,
html.darkmode .wall-right-side {
    --wall-background-color: #2f2f2f;
}

html.darkmode .fw-user-card .fw-user-avatar {
    border-color: #1f1f1f;
}

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

html.darkmode .fw-editor-counter .mask {
    stroke: #444;
}

html.darkmode .fw-editor-counter .safe {
    stroke: #cecece;
}

@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 { 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; }
}

/* Wall search bar – match viewforum style */
.wall-top-buttons .cbb-group {
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
}

.wall-top-buttons .cbb-group .cbb-inputbox {
    border-radius: 0 8px 8px 0 !important;
    border-left: none !important;
    height: 32px !important;
    padding: 0 12px !important;
    background: #f0f0f0 !important;
    border: 1px solid #e0e0e0 !important;
    box-sizing: border-box;
}

.wall-top-buttons .cbb-group .cbb-btn {
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
    height: 32px !important;
    padding: 0 12px !important;
    background: #f0f0f0 !important;
    border: 1px solid #e0e0e0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #111 !important;
}

.wall-top-buttons .cbb-group .cbb-btn i {
    font-size: 14px;
}

html.darkmode .wall-top-buttons .cbb-group .cbb-inputbox,
html.darkmode .wall-top-buttons .cbb-group .cbb-btn {
    background: #222 !important;
    border-color: #333 !important;
    color: #fff !important;
}