/*
Theme Name: Divi Child
Theme URI: https://example.com
Description: A custom child theme for Divi
Author: Your Name
Author URI: https://example.com
Template: Divi
Version: 1.0.0
Text Domain: divi-child
*/
/* Reddit-Style Activity Feed Transformation */

/* Main container */
.bbp-activity-feed {
    background: #1a1a1b;
    color: #d7dadc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border-radius: 4px;
    overflow: hidden;
}

/* Activity list container */
.bbp-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #1a1a1b;
}

/* Individual activity item - Reddit card style */
.bbp-activity-item {
    background: #1a1a1b;
    border: 1px solid #343536;
    border-radius: 4px;
    margin-bottom: 8px;
    padding: 0;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    overflow: hidden;
}

.bbp-activity-item:hover {
    border-color: #666;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Left voting section */
.bbp-activity-voting-section {
    background: #161617;
    width: 40px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    border-right: 1px solid #343536;
}

.bbp-activity-voting-section .vote {
    background: none;
    border: none;
    color: #818384;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 2px;
    transition: color 0.2s ease;
    text-decoration: none;
    font-family: 'ETmodules';
}

.bbp-activity-voting-section .vote.up:hover {
    color: #ff4500;
    background: rgba(255, 69, 0, 0.1);
}

.bbp-activity-voting-section .vote.down:hover {
    color: #7193ff;
    background: rgba(113, 147, 255, 0.1);
}

.bbp-activity-voting-section .vote::before {
    content: "▲";
    font-size: 14px;
}

.bbp-activity-voting-section .vote.down::before {
    content: "▼";
}

.bbp-activity-voting-section .score {
    font-size: 12px;
    font-weight: 500;
    color: #d7dadc;
    margin: 4px 0;
    text-align: center;
}

/* Main content area */
.bbp-activity-content {
    flex: 1;
    padding: 12px 16px;
    background: #1a1a1b;
}

/* Remove default avatar styling */
.bbp-activity-avatar {
    display: none; /* We'll use inline avatars instead */
}

/* Header with user info and meta */
.bbp-activity-header {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: #818384;
}

/* User avatar in header */
.bbp-activity-header::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0079d3;
    display: inline-block;
    margin-right: 6px;
}

/* Author name */
.bbp-activity-author {
    color: #0079d3 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
}

.bbp-activity-author:hover {
    text-decoration: underline;
    color: #4493d3 !important;
}

/* Community/forum name styling */
.bbp-activity-in-forum a {
    color: #0079d3;
    text-decoration: none;
    font-weight: 400;
}

.bbp-activity-in-forum a:hover {
    text-decoration: underline;
}

.bbp-activity-in-forum::before {
    content: "r/";
    color: #818384;
}

/* Topic title - make it prominent */
.bbp-activity-topic-title {
    color: #d7dadc !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.3;
    display: block;
    margin: 8px 0 12px 0;
}

.bbp-activity-topic-title:hover {
    color: #0079d3 !important;
    text-decoration: none;
}

/* Content excerpt */
.bbp-activity-excerpt {
    color: #d7dadc;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
    max-height: 100px;
    overflow: hidden;
    position: relative;
}

/* Fade out long content */
.bbp-activity-excerpt::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20px;
    background: linear-gradient(transparent, #1a1a1b);
}

/* Meta information (time, etc.) */
.bbp-activity-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #818384;
    margin-top: auto;
}

.bbp-activity-date {
    font-weight: 400;
}

/* Voting and reply container */
.bbp-voting-reply-container {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #343536;
}

/* Voting buttons in content */
.bbp-voting-reply-container .bbpress-reddit-vote {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    padding: 4px 8px;
    border-radius: 2px;
}

.bbp-voting-reply-container .vote {
    background: none;
    border: none;
    color: #818384;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 2px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.bbp-voting-reply-container .vote:hover {
    color: #0079d3;
    background: rgba(0, 121, 211, 0.1);
}

/* Reply button */
.bbp-reply-link .bbp-reply-button {
    background: none;
    border: none;
    color: #818384;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.bbp-reply-link .bbp-reply-button:hover {
    color: #d7dadc;
    background: rgba(215, 218, 220, 0.1);
    text-decoration: none;
}

/* Action buttons (2, 0, 3) - Reddit style */
.bbp-activity-item .reddit-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #343536;
}

.reddit-action-btn {
    background: none;
    border: none;
    color: #818384;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.reddit-action-btn:hover {
    color: #d7dadc;
    background: rgba(215, 218, 220, 0.1);
    text-decoration: none;
}

.reddit-action-btn .icon {
    font-size: 14px;
}

/* Reply button with icon */
.reply-btn::before {
    content: "💬";
    margin-right: 4px;
}

/* Share button */
.share-btn::before {
    content: "📤";
    margin-right: 4px;
}

/* Award button */
.award-btn::before {
    content: "🏆";
    margin-right: 4px;
}

/* Responsive design */
@media (max-width: 768px) {
    .bbp-activity-item {
        flex-direction: column;
    }

    .bbp-activity-voting-section {
        width: 100%;
        flex-direction: row;
        justify-content: center;
        padding: 8px;
        border-right: none;
        border-bottom: 1px solid #343536;
    }

    .bbp-activity-header {
        font-size: 11px;
    }

    .bbp-activity-topic-title {
        font-size: 15px;
    }

    .bbp-activity-excerpt {
        font-size: 13px;
    }
}

/* Dark theme adjustments */
body.dark-theme .bbp-activity-feed,
body.dark-theme .bbp-activity-item {
    background: #1a1a1b;
    border-color: #343536;
    color: #d7dadc;
}

/* Loading states */
.bbp-activity-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.bbp-activity-item.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #343536;
    border-top: 2px solid #0079d3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


/* 🟢 ALL VOTING CSS */
.bbp-voting, .bbpress-reddit-vote {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
}

/* Voting Buttons */
.bbp-voting .vote, .bbpress-reddit-vote .vote {
    font-family: 'ETmodules'; /* Divi Icon Font */
    font-size: 18px;
    color: #888;
    cursor: pointer;
    transition: color 0.2s;
    text-decoration: none;
    border-radius: 5px;
    padding: 5px 10px;
    text-indent: -9999px; /* Hide text-based arrows */
    position: relative;
}

/* Upvote & Downvote Icons */
.bbp-voting .vote.up::before, .bbpress-reddit-vote .vote.up::before {
    content: "\32"; /* Divi Upvote Icon */
}

.bbp-voting .vote.down::before, .bbpress-reddit-vote .vote.down::before {
    content: "\33"; /* Divi Downvote Icon */
}

/* Ensure Divi Icons Show Up */
.bbpress-reddit-vote .vote::before {
    text-indent: 0;
    position: absolute;
    left: 10%;
    bottom: -3px;
}

/* Hover Effects */
.bbp-voting .vote:hover, 
.bbpress-reddit-vote .vote:hover {
    color: #0073aa !important;
}

/* Score & Vote Count */
.bbp-voting .score, .bbpress-reddit-vote .vote-count {
    font-size: 14px;
    font-weight: 500;
    text-shadow:unset;
    color:white;
}

/* Remove Default bbPress Voting Plugin Arrows */
.bbp-voting a.vote, .bbpress-reddit-vote a.vote {
    border: unset !important;
    color: white !important;
}

/* Voting & Stats Section */
.reddit-topic-bottom {
    display: flex;
        flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    padding-top: 10px;
    gap: 20px; /* Space between vote and stats */
}

/* Voting Section with Stats */
.bbpress-reddit-vote {
    flex-direction: row;
    background-color: #22548F;
    padding: 3px;
    border-radius: 1000px;
    color: white;
}


.bbp-voting a.vote.up{
    border-bottom: unset !important;
}

.bbp-voting a.vote.down {
  border-top: unset !important;    
}
.bbp-voting a.vote.up:hover {
    border-bottom: unset !important;
}
.bbp-voting a.vote.down:hover {
    border-top: unset !important;
}

.bbp-voting{
margin: unset;
}


.bbpress-reply-options .bbp-voting .vote::before{
bottom: -6px !important;
}

.bbp-voting a.vote.num-hover:hover:after, .bbp-voting a.vote.num-hover:hover:after {
    opacity: 0 !important;
    transition:unset !important; 
}







/* 🟢 ALL FORUMS PAGE CSS */

.bbpress-forum-list-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

/* Individual Forum Row */
.bbpress-forum-item {
    display: flex;
    background-color: #ecf5ff; /* Your chosen background color */
    border: none; /* Removed border */
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    align-items: stretch;
}

/* Forum Image - 30% */
.bbpress-forum-item .forum-image {
    width: 24%;
    max-width: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    overflow: hidden;
}

.bbpress-forum-item .forum-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    image-rendering: auto;
}

/* Forum Content - 70% */
.bbpress-forum-item .forum-content {
    width: 70%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Forum Header (Title & Description at the top) */
.forum-header {
    margin-bottom: 15px;
}

.forum-title {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.forum-description {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* Bottom Section (Stats + Learn More Button) */
.forum-bottom-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

/* Stats Grid - 4 columns */
.forum-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, auto);
    gap: 100px;
    align-items: center;
}

/* Stat Box (number and label) */
.stat-box {
    text-align: center;
}

.stat-number {
    font-size: 20px;
    font-weight: bold;
    line-height: 1;
    color: #222;
}

.stat-label {
    font-size: 12px;
    color: #555;
}

/* Learn More Button (on the right) */
.forum-learn-more .learn-more-button {
    padding: 8px 15px;
    background-color: #0073aa;
    color: #fff !important;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.forum-learn-more .learn-more-button:hover {
    background-color: #005f87;
}

/* Mobile - Stack Layout */
@media (max-width: 768px) {
    .bbpress-forum-item {
        flex-direction: column;
    }

    .bbpress-forum-item .forum-image {
        width: 100%;
        max-width: none;
    }

    .bbpress-forum-item .forum-content {
        width: 100%;
    }

    /* Stack Stats and Learn More vertically on mobile */
    .forum-bottom-section {
        flex-direction: column;
        align-items: flex-start;
    }

    .forum-stats-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller screens */
        margin-bottom: 10px;
    }

    .forum-learn-more {
        width: 100%;
    }

    .learn-more-button {
        display: block;
        width: 100%;
        text-align: center;
    }
}

#bbpress-forums div.bbp-search-form {
    display: none !important;
}












/* 🟢 Single Forum Page - Reddit Style Topics Grid */

.bbpress-reddit-grid {
    display: block;
    gap: 20px;
    margin:20px 0px !important;
	width:100% !important;
	max-width:100%;
}

/* Individual Topic Card */
.bbpress-reddit-card {
    display: flex;
    flex-direction: column; /* Ensure content stacks vertically */
    background-color: #ECF5FF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: unset;
    padding: 15px;
    transition: all 0.3s ease;
    margin-top:20px;
}

.bbpress-reddit-card:hover {
    box-shadow: unset;
}

/* Topic Content Area */
.bbpress-reddit-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
}

/* Topic Title */
.reddit-topic-title a {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
    text-decoration: none;
}

.reddit-topic-title a:hover {
    text-decoration: underline;
}

/* Metadata */
.reddit-topic-meta {
    font-size: 12px;
    color: #777;
}

/* Excerpt */
.reddit-topic-excerpt {
    font-size: 14px;
    color: #444;
    margin: 5px 0;
}


/* Stats Section */
.reddit-topic-stats {
    font-size: 12px;
    color: #555;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.reddit-topic-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    background-color: #22548f;
    padding: 4px 20px;
    border-radius: 100px;
}













/* 🟢 Single Topic Page */
.bbpress-topic-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    margin-bottom: 30px !important;
}

/* Author Section */
.bbpress-topic-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #555;
}

.bbpress-topic-author img {
    border-radius: 50%;
}

/* 3 Dots Menu */
.bbpress-topic-options {
    position: relative;
    cursor: pointer;
}

.bbpress-topic-menu-icon {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.bbpress-topic-menu {
    position: absolute;
    top: 20px;
    right: 0;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 10;
    padding: 5px 10px;
}

.bbpress-topic-options:hover .bbpress-topic-menu {
    display: block;
}

.bbpress-topic-menu a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 5px 10px;
}

.bbpress-topic-menu a:hover {
    background: #ddd;
}

/* Topic Title */
.bbpress-topic-title {
    font-size: 20px;
    font-weight: bold;
    color: #222;
    margin-bottom: 10px;
}


 
/* Topic Content */
.bbpress-topic-content {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

/* Replies Section */
.bbpress-topic-replies {
    margin-top: 20px;
}

/* Voting & Stats */
.bbpress-topic-bottom {
    display: flex;
    flex-wrap:wrap;
    gap: 20px;
    align-items: center;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
}

/* Reply Options Row */
.bbpress-reply-options {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #555;
}

/* Reply Button */
.bbpress-reply-btn {
    background-color: #0073aa;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.bbpress-reply-btn:hover {
    background-color: #005f8c;
}

/* Comment Count */
.bbpress-reply-count {
    color: #777;
    font-size: 14px;
}

/* Reply Options Row */
.bbpress-reply-options {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
    color: #555;
}

/* Reply Button */
.bbpress-reply-btn {
    background-color: #0073aa;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.bbpress-reply-btn:hover {
    background-color: #005f8c;
}

/* Comment Count */
.bbpress-reply-count {
    color: #777;
    font-size: 14px;
}

.bbp-admin-links{
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

 .bbp-admin-links a {
    color: white !important;
    background-color: #22548f;
    padding: 6px 14px !important;
    height: 28px !important;
    line-height: 17px !important;
    border-radius: 1000px;
}

/* Comment Box */
.bbpress-comment-input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    margin-top: 10px;
}





.bbp-pagination{
    padding-bottom: 20px;
    padding-top: 20px;
    background: white;
}


.bbpress-reply-card{
background-color: #ECF5FF !important;
border-radius: 10px !important;
padding: 15px !important;
margin-bottom:20px !important;

}
.bbpress-replies-grid{
margin-top: 65px !important;
}



.logged-in-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logged-in-user-info img {
    border-radius: 50%;
    width: 140px;
    height: 140px;
    border:10px solid rgba(255,255,255,0.2);
}

.logged-in-user-info .username {
    font-weight: 500;
    font-size: 20px;
    color:white;
}

.bbp-topic-revision-log{
    padding-top: 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}



.bbpress-reply-form{
padding-top:20px !important;
}


.bbpress-reply-content{
    font-size: 14px !important;
    padding: 20px 0px;
    }



/* ============================================
 * REDDIT 3-COLUMN LAYOUT SYSTEM - ADDED NEW
 * ============================================
 * Added for new 3-column Reddit layout
 */

/* MAIN LAYOUT CONTAINER */
.reddit-main-container {
    display: grid;
    grid-template-columns: 300px 1fr 320px;
    grid-template-areas: "left-sidebar main-content right-sidebar";
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    min-height: calc(100vh - 100px);
}

/* GRID AREAS */
.reddit-sidebar-left {
    grid-area: left-sidebar;
    background: #ffffff;
}

.reddit-main-content {
    grid-area: main-content;
    background: #ffffff;
    min-width: 0; /* Prevents grid overflow */
}

.reddit-sidebar-right {
    grid-area: right-sidebar;
    background: #ffffff;
}

/* FEED CONTAINER */
.reddit-feed-container {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}

/* FEED HEADER */
.reddit-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid #edeff1;
    margin-bottom: 8px;
    border-radius: 4px 4px 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.reddit-feed-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #7c7c7c;
}

.reddit-feed-icon {
    font-size: 18px;
}

.reddit-feed-text {
    font-weight: 600;
    color: #1c1c1c;
    font-size: 16px;
}

.reddit-post-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reddit-create-post-btn {
    background: #0079d3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.reddit-create-post-btn:hover {
    background: #0060a8;
}

/* ACTIVITY CONTAINER */
.reddit-activity-container {
    background: #ffffff;
}

/* ============================================
 * LEFT SIDEBAR STYLING
 * ============================================ */

.reddit-left-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}

/* SECTION CONTAINERS */
.reddit-nav-section,
.reddit-forums-section,
.reddit-resources-section,
.reddit-create-section {
    background: #ffffff;
    border: 1px solid #edeff1;
    border-radius: 4px;
    overflow: hidden;
}

.reddit-section-title {
    background: #f6f7f8;
    color: #1c1c1c;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 16px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #edeff1;
}

.section-icon {
    margin-right: 8px;
    font-size: 14px;
}

.section-collapse {
    background: none;
    border: none;
    color: #7c7c7c;
    cursor: pointer;
    font-size: 16px;
    padding: 2px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.section-collapse:hover {
    color: #1c1c1c;
    background: rgba(0, 0, 0, 0.05);
}

/* NAVIGATION MENU */
.reddit-nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reddit-nav-item {
    border-bottom: 1px solid #f6f7f8;
}

.reddit-nav-item:last-child {
    border-bottom: none;
}

.reddit-nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #7c7c7c;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.reddit-nav-link:hover {
    background: #f6f7f8;
    color: #1c1c1c;
    text-decoration: none;
}

.nav-icon {
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* FORUMS LIST */
.reddit-forums-content,
.reddit-resources-content {
    max-height: 400px;
    overflow-y: auto;
}

.reddit-forums-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reddit-forum-item {
    border-bottom: 1px solid #f6f7f8;
}

.reddit-forum-item:last-child {
    border-bottom: none;
}

.reddit-forum-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    color: #1c1c1c;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.reddit-forum-link:hover {
    background: #f6f7f8;
    text-decoration: none;
}

.forum-info {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.forum-icon {
    margin-right: 12px;
    font-size: 16px;
    color: #7c7c7c;
}

.forum-details {
    display: flex;
    flex-direction: column;
}

.forum-name {
    font-size: 14px;
    font-weight: 500;
    color: #1c1c1c;
}

.reddit-prefix {
    color: #7c7c7c;
    font-weight: normal;
}

.forum-meta {
    font-size: 11px;
    color: #7c7c7c;
    margin-top: 2px;
}

.forum-status .visibility-icon {
    font-size: 12px;
    opacity: 0.7;
}

/* RESOURCES SECTION */
.resource-category {
    margin-bottom: 12px;
}

.resource-category:last-child {
    margin-bottom: 8px;
}

.resource-category-title {
    font-size: 11px;
    font-weight: 600;
    color: #7c7c7c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 16px 4px;
    margin: 0;
    display: flex;
    align-items: center;
}

.resource-icon {
    margin-right: 8px;
    font-size: 12px;
}

.resource-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-item {
    padding: 2px 0;
}

.resource-link {
    display: block;
    padding: 6px 16px;
    color: #7c7c7c;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.resource-link:hover {
    background: #f6f7f8;
    color: #0079d3;
    text-decoration: none;
}

.resource-info {
    display: flex;
    flex-direction: column;
}

.resource-name {
    color: #1c1c1c;
    font-weight: 500;
    margin-bottom: 2px;
}

.resource-meta {
    font-size: 10px;
    color: #7c7c7c;
}

/* FOOTER LINKS */
.reddit-forums-footer,
.reddit-resources-footer {
    padding: 8px 16px;
    border-top: 1px solid #f6f7f8;
}

.view-all-link {
    display: block;
    text-align: center;
    color: #0079d3;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 4px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    background: rgba(0, 121, 211, 0.1);
    text-decoration: none;
}

/* CREATE COMMUNITY BUTTON */
.reddit-create-section {
    padding: 16px;
}

.reddit-create-community-btn {
    width: 100%;
    background: #0079d3;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background-color 0.2s ease;
}

.reddit-create-community-btn:hover {
    background: #0060a8;
}

.plus-icon {
    font-size: 18px;
    font-weight: bold;
}

/* ============================================
 * RIGHT SIDEBAR STYLING
 * ============================================ */

.reddit-right-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 20px;
}

/* USER WIDGET */
.reddit-user-widget,
.reddit-login-widget {
    background: #ffffff;
    border: 1px solid #edeff1;
    border-radius: 4px;
    overflow: hidden;
}

.reddit-user-banner,
.login-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px;
    text-align: center;
    position: relative;
}

.banner-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 121, 211, 0.8) 0%, rgba(102, 126, 234, 0.8) 100%);
}

.banner-text {
    position: relative;
    font-size: 14px;
    font-weight: 500;
}

.reddit-user-profile {
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.user-avatar-section img {
    border-radius: 50%;
    border: 3px solid #ffffff;
    margin-top: -20px;
    position: relative;
    z-index: 1;
}

.user-info-section {
    margin-top: 12px;
}

.user-display-name {
    font-size: 18px;
    font-weight: 600;
    color: #1c1c1c;
    margin: 0 0 4px 0;
}

.user-username {
    font-size: 14px;
    color: #7c7c7c;
    margin: 0 0 12px 0;
}

.user-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.user-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 16px;
    font-weight: 700;
    color: #1c1c1c;
}

.stat-label {
    font-size: 12px;
    color: #7c7c7c;
    text-transform: capitalize;
}

/* LOGIN WIDGET */
.login-banner h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.login-banner p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.4;
}

.login-actions {
    padding: 16px;
    display: flex;
    gap: 8px;
}

.reddit-login-btn,
.reddit-register-btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.reddit-login-btn {
    background: #0079d3;
    color: white;
    border: 1px solid #0079d3;
}

.reddit-login-btn:hover {
    background: #0060a8;
    text-decoration: none;
}

.reddit-register-btn {
    background: transparent;
    color: #0079d3;
    border: 1px solid #0079d3;
}

.reddit-register-btn:hover {
    background: rgba(0, 121, 211, 0.1);
    text-decoration: none;
}

/* QUICK ACTIONS */
.reddit-quick-actions,
.reddit-activity-summary,
.reddit-community-info,
.reddit-mod-tools {
    background: #ffffff;
    border: 1px solid #edeff1;
    border-radius: 4px;
    overflow: hidden;
}

.quick-actions-grid {
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-action-item {
    border-radius: 4px;
    overflow: hidden;
}

.quick-action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #f6f7f8;
    color: #7c7c7c;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s ease;
}

.quick-action-link:hover {
    background: #edeff1;
    color: #1c1c1c;
    text-decoration: none;
}

.action-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.action-text {
    font-weight: 500;
}

/* ACTIVITY SUMMARY */
.activity-summary-content {
    padding: 12px;
}

.recent-activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-summary-item {
    padding: 8px 0;
    border-bottom: 1px solid #f6f7f8;
}

.activity-summary-item:last-child {
    border-bottom: none;
}

.activity-content {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.activity-author {
    font-weight: 500;
    color: #1c1c1c;
}

.activity-action {
    color: #7c7c7c;
}

.activity-forum {
    color: #0079d3;
    text-decoration: none;
}

.activity-forum:hover {
    text-decoration: underline;
}

.activity-meta {
    font-size: 11px;
    color: #7c7c7c;
}

.activity-summary-footer {
    padding-top: 8px;
    border-top: 1px solid #f6f7f8;
    margin-top: 8px;
}

.view-all-activity {
    display: block;
    text-align: center;
    color: #0079d3;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

/* COMMUNITY INFO */
.community-info-content {
    padding: 12px;
}

.community-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f6f7f8;
}

.community-stat {
    text-align: center;
}

.community-stat .stat-number {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1c1c1c;
}

.community-stat .stat-label {
    font-size: 11px;
    color: #7c7c7c;
    text-transform: uppercase;
}

.community-description {
    margin-bottom: 12px;
}

.community-description p {
    font-size: 12px;
    color: #7c7c7c;
    line-height: 1.4;
    margin: 0;
}

.community-join-btn {
    width: 100%;
    background: #0079d3;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.community-join-btn:hover {
    background: #0060a8;
}

/* MOD TOOLS */
.mod-tools-content {
    padding: 12px;
}

.mod-tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mod-tools-list li {
    padding: 6px 0;
}

.mod-tools-list a {
    color: #0079d3;
    text-decoration: none;
    font-size: 12px;
}

.mod-tools-list a:hover {
    text-decoration: underline;
}

/* ============================================
 * RESPONSIVE DESIGN
 * ============================================ */

/* Large Desktop */
@media (min-width: 1600px) {
    .reddit-main-container {
        grid-template-columns: 320px 1fr 350px;
        max-width: 1600px;
    }
}

/* Standard Desktop */
@media (max-width: 1400px) {
    .reddit-main-container {
        max-width: 1200px;
        padding: 15px;
    }
}

/* Small Desktop / Large Tablet */
@media (max-width: 1200px) {
    .reddit-main-container {
        grid-template-columns: 280px 1fr 300px;
        gap: 15px;
    }
}

/* Tablet Portrait */
@media (max-width: 1024px) {
    .reddit-main-container {
        grid-template-columns: 260px 1fr 280px;
        gap: 12px;
        padding: 12px;
    }

    .reddit-feed-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .reddit-post-controls {
        width: 100%;
        justify-content: space-between;
    }
}

/* Small Tablet */
@media (max-width: 900px) {
    .reddit-main-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main-content"
            "left-sidebar"
            "right-sidebar";
        gap: 16px;
    }

    .reddit-sidebar-left,
    .reddit-sidebar-right {
        position: static;
    }

    .reddit-left-sidebar-content,
    .reddit-right-sidebar-content {
        position: static;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .reddit-main-container {
        padding: 8px;
        gap: 12px;
    }

    .reddit-feed-header {
        padding: 8px 12px;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr;
    }

    .community-stats {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .user-stats {
        flex-direction: column;
        gap: 8px;
    }

    .login-actions {
        flex-direction: column;
    }

    .reddit-forums-content,
    .reddit-resources-content {
        max-height: 300px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .reddit-main-container {
        padding: 4px;
        gap: 8px;
    }

    .reddit-section-title {
        font-size: 10px;
        padding: 8px 12px;
    }

    .reddit-nav-link,
    .reddit-forum-link {
        padding: 8px 12px;
        font-size: 13px;
    }

    .reddit-feed-header {
        padding: 6px 8px;
    }

    .reddit-feed-text {
        font-size: 14px;
    }
}

/* ============================================
 * UTILITY CLASSES
 * ============================================ */

.no-forums-message,
.no-activity,
.no-resources {
    padding: 16px;
    text-align: center;
    color: #7c7c7c;
    font-size: 14px;
    font-style: italic;
}

/* Scrollbar Styling */
.reddit-forums-content::-webkit-scrollbar,
.reddit-resources-content::-webkit-scrollbar {
    width: 4px;
}

.reddit-forums-content::-webkit-scrollbar-track,
.reddit-resources-content::-webkit-scrollbar-track {
    background: #f6f7f8;
}

.reddit-forums-content::-webkit-scrollbar-thumb,
.reddit-resources-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.reddit-forums-content::-webkit-scrollbar-thumb:hover,
.reddit-resources-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}