/* B2B BD Community Forum CSS */

:root {
    --primary: #a20a0a;
    --primary-dark: #7c0808;
    --accent: #f3a83b;
    --bg: #f7f4ee;
    --card-bg: #ffffff;
    --text-main: #2b2d42;
    --text-light: #475569;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

body.dark-theme {
    --bg: #0c0707;
    --card-bg: #180f0f;
    --text-main: #f8fafc;
    --text-light: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
}

.community-main {
    padding-top: 40px;
    padding-bottom: 80px;
}

.community-header {
    text-align: center;
    margin-bottom: 40px;
}

.community-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--primary);
    margin: 0;
}

.community-layout {
    display: grid;
    grid-template-columns: 240px 1fr 280px;
    gap: 30px;
}

@media (max-width: 1199px) {
    .community-layout {
        grid-template-columns: 240px 1fr;
    }
    .community-ads-sidebar {
        display: none;
    }
}

@media (max-width: 767px) {
    .community-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .community-sidebar {
        flex-direction: row !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding: 8px 4px !important;
        gap: 8px !important;
        width: 100% !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 10px;
    }
    .community-sidebar::-webkit-scrollbar {
        display: none;
    }
    .community-sidebar {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .category-tab {
        padding: 8px 16px !important;
        font-size: 0.82rem !important;
        border-radius: 20px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        text-align: center !important;
    }
    .profile-card {
        display: none !important;
    }
    .search-bar-row {
        flex-direction: column !important;
        gap: 10px !important;
    }
    .search-bar-row .btn {
        width: 100% !important;
    }
}

/* Sidebar Categories */
.community-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.category-tab {
    padding: 12px 18px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s;
}

.category-tab.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

@media (hover: hover) {
    .category-tab:hover {
        background: var(--primary);
        color: #ffffff;
        border-color: var(--primary);
    }
}

/* Posts Area */
.posts-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-bar-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Post Cards */
.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 20px;
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

/* Upvote Box */
.vote-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    min-width: 60px;
    height: 70px;
    background: var(--bg);
    cursor: pointer;
    transition: all 0.3s;
}

.vote-box:hover, .vote-box.upvoted {
    background: rgba(162, 10, 10, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.vote-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.vote-count {
    font-weight: 700;
    font-size: 1.05rem;
}

/* Post details */
.post-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.post-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-qna {
    background: rgba(162, 10, 10, 0.1);
    color: var(--primary);
}

.badge-pic {
    background: rgba(243, 168, 59, 0.1);
    color: var(--accent);
}

.badge-story {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.post-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    line-height: 1.3;
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.post-footer-row {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 5px;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(243, 168, 59, 0.15);
    color: #e59a18;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.7rem;
}

/* Detailed Post View */
.post-detail-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comments-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-card {
    border-left: 3px solid var(--primary);
    background: var(--bg);
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Submit Modal form styling */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.form-group select, .form-group textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg);
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ==========================================================================
   Notification Bell & Dropdown Styles
   ========================================================================== */
.nav-notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.noti-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 5px rgba(162, 10, 10, 0.5);
    padding: 2px;
    box-sizing: border-box;
    line-height: 1;
}

.noti-badge.hidden {
    display: none;
}

.noti-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 320px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.noti-dropdown.hidden {
    display: none;
}

.noti-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-main);
}

.noti-dropdown-header button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.75rem;
    cursor: pointer;
    font-weight: 700;
    transition: opacity 0.2s;
}

.noti-dropdown-header button:hover {
    opacity: 0.8;
}

.noti-dropdown-list {
    max-height: 280px;
    overflow-y: auto;
}

.noti-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.noti-item:hover {
    background: var(--bg);
}

.noti-item.unread {
    background: rgba(162, 10, 10, 0.03);
    border-left: 3px solid var(--primary);
}

.noti-item-text {
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.4;
}

.noti-item-text b {
    color: var(--primary);
}

.noti-item-time {
    font-size: 0.72rem;
    color: var(--text-light);
}

.noti-empty {
    padding: 30px 16px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ==========================================================================
   Simulated Toast Alerts Styles
   ========================================================================== */
.noti-toast {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent);
    border-radius: 10px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: slideInUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: left;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.noti-toast-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.noti-toast-body {
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.4;
}

.noti-toast-footer {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
    border-top: 1px dashed var(--border-color);
    padding-top: 6px;
}

/* ==========================================================================
   Bounty Point Badge & Accept Reward Button
   ========================================================================== */
.post-bounty-badge {
    background: linear-gradient(135deg, #f3a83b 0%, #e59a18 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(243, 168, 59, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-accept-bounty {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
    margin-left: auto;
}

.btn-accept-bounty:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(16, 185, 129, 0.3);
}

.btn-accept-bounty.accepted {
    background: #6b7280;
    box-shadow: none;
    cursor: default;
    transform: none;
}

/* ==========================================================================
   BeeDee Owl Mascot Animation
   ========================================================================== */
.beedee-owl-mascot {
    animation: floatMascot 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes floatMascot {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* ==========================================================================
   Composer Media & Attachment Styling
   ========================================================================== */
#composerMediaPreview img, #composerMediaPreview video {
    max-width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
}

.post-media-container img, .post-media-container video {
    transition: transform 0.3s ease;
}

.post-media-container img:hover {
    transform: scale(1.015);
}

/* ==========================================================================
   Modal Overlay & Box Centering (Social Composer)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(9, 10, 16, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #0f172a;
}

body.dark-theme .modal-box {
    background: rgba(18, 18, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    color: #f8fafc;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

/* Emojis Reactions Styles (v=2.2.0) */
.reaction-btn {
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reaction-btn:hover {
    background: rgba(162, 10, 10, 0.05) !important;
    border-color: var(--primary) !important;
    transform: translateY(-1px);
}
.reaction-btn.active {
    background: rgba(162, 10, 10, 0.12) !important;
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(162, 10, 10, 0.15);
}
body.dark-theme .reaction-btn.active {
    background: rgba(244, 63, 94, 0.15) !important;
    border-color: #f43f5e !important;
    color: #fca5a5 !important;
}
.reaction-btn:active {
    transform: scale(0.95);
}
.share-post-btn:hover, .details-share-post-btn:hover {
    background: rgba(243, 168, 59, 0.1) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* Quick Emoji Toolbar insert buttons hover effect */
.btn-emoji-insert:hover {
    transform: scale(1.25) !important;
}


