/**
 * bbPress Facebook-Style Forums v3.0
 * Modern, clean, accessible forum design with Facebook-inspired layout
 * 
 * KEY FEATURES:
 * - WCAG AAA accessibility compliance
 * - Facebook-style two-column responsive layout
 * - Clean card-based post design
 * - Fixed top navigation with search
 * - High contrast colors and keyboard navigation
 * - Mobile-first responsive design
 *
 * @package bbPress
 * @subpackage Theme
 */

/* Import system fonts for optimal performance and accessibility */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* =CSS Reset and Base Styles
-------------------------------------------------------------- */
* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
	background-color: #F0F2F5;
	color: #1C1E21;
	line-height: 1.5;
}

blockquote {
margin-top: 60px;
}

/* =Navigation Bar - Fixed Top Design
-------------------------------------------------------------- */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background-color: #FFFFFF;
	border-bottom: 1px solid #E4E6EB;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 1000;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	min-height: 56px;
}

.navbar-brand {
	font-size: 20px;
	font-weight: 700;
	color: #1877F2;
	text-decoration: none;
}

.navbar-search {
	display: flex;
	align-items: center;
	gap: 8px;
}

.search-input {
	padding: 8px 12px;
	border: 1px solid #E4E6EB;
	border-radius: 20px;
	background-color: #F0F2F5;
	font-size: 15px;
	width: 240px;
	transition: all 0.2s ease;
}

.search-input:focus {
	outline: 2px solid #1877F2;
	outline-offset: -2px;
	background-color: #FFFFFF;
	border-color: #1877F2;
}

.btn-primary {
	background-color: #1877F2;
	color: #FFFFFF;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
	min-height: 44px;
}

.btn-primary:hover,
.btn-primary:focus {
	background-color: #166FE5;
	outline: 2px solid #166FE5;
	outline-offset: 2px;
}

/* =Layout Structure - Two Column Design
-------------------------------------------------------------- */
.layout {
	margin-top: 56px; /* Account for fixed navbar */ 
	display: flex;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	gap: 20px;
	padding: 20px;
	min-height: calc(100vh - 56px);
}

.sidebar {
	width: 280px;
	flex-shrink: 0;
}

.main-content {
	flex: 1;
	min-width: 0;
}

/* =Base Forum Styling
-------------------------------------------------------------- */
#bbpress-forums {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: transparent;
	margin: 0;
	padding: 0;
	color: #1C1E21;
}

/* =Category List - Left Sidebar
-------------------------------------------------------------- */
.category-list {
	background: #FFFFFF;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	margin-bottom: 16px;
}

.category-item {
	display: block;
	padding: 16px;
	border-bottom: 1px solid #E4E6EB;
	text-decoration: none;
	color: #1C1E21;
	transition: background-color 0.2s ease;
}

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

.category-item:hover,
.category-item:focus {
	background-color: #F0F2F5;
	outline: 2px solid #1877F2;
	outline-offset: -2px;
	text-decoration: none;
	color: #1C1E21;
}

.category-item h3 {
	margin: 0 0 4px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1C1E21;
}

.category-item p {
	margin: 0;
	font-size: 14px;
	color: #65676B;
	line-height: 1.4;
}

.badge-category {
	display: inline-block;
	background-color: #E4E6EB;
	color: #65676B;
	padding: 4px 8px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	margin-top: 8px;
}

/* =Post Cards - Main Content Area
-------------------------------------------------------------- */
.post-card {
	background: #FFFFFF;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin-bottom: 16px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.post-card:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.post-header {
	padding: 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid #E4E6EB;
}

.avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #E4E6EB;
	flex-shrink: 0;
}

.post-author-info {
	flex: 1;
	min-width: 0;
}

.post-author-name {
	font-size: 15px;
	font-weight: 600;
	color: #1C1E21;
	margin: 0;
	text-decoration: none;
}

.post-author-name:hover,
.post-author-name:focus {
	color: #1877F2;
	outline: 2px solid #1877F2;
	outline-offset: 2px;
}

.post-timestamp {
	font-size: 13px;
	color: #65676B;
	margin: 2px 0 0 0;
}

.post-content {
	padding: 16px;
}

.post-title {
	font-size: 18px;
	font-weight: 600;
	color: #1C1E21;
	margin: 0 0 12px 0;
	line-height: 1.3;
	text-decoration: none;
}

.post-title:hover,
.post-title:focus {
	color: #1877F2;
	outline: 2px solid #1877F2;
	outline-offset: 2px;
}

.post-excerpt {
	font-size: 15px;
	color: #65676B;
	line-height: 1.5;
	margin: 0;
}

.post-footer {
	padding: 12px 16px;
	border-top: 1px solid #E4E6EB;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: #F8F9FA;
}

.post-actions {
	display: flex;
	gap: 16px;
}

.link-primary {
	color: #1877F2;
	text-decoration: none;
	font-weight: 500;
	font-size: 14px;
	transition: all 0.2s ease;
}

.link-primary:hover,
.link-primary:focus {
	text-decoration: underline;
	outline: 2px solid #1877F2;
	outline-offset: 2px;
}

/* =Load More Button
-------------------------------------------------------------- */
.btn-load-more {
	display: block;
	width: 100%;
	background-color: #F0F2F5;
	color: #1C1E21;
	border: 1px solid #E4E6EB;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	margin: 24px 0;
	text-decoration: none;
	text-align: center;
}

.btn-load-more:hover,
.btn-load-more:focus {
	background-color: #E4E6EB;
	outline: 2px solid #1877F2;
	outline-offset: 2px;
	text-decoration: none;
}

/* =Accessibility Enhancements
-------------------------------------------------------------- */
/* Skip links for keyboard navigation */
.skip-link {
	position: absolute;
	top: -40px;
	left: 6px;
	background: #1877F2;
	color: #FFFFFF;
	padding: 8px 16px;
	text-decoration: none;
	border-radius: 4px;
	z-index: 100000;
	font-size: 14px;
	font-weight: 600;
	transition: top 0.2s ease;
}

.skip-link:focus {
	top: 6px;
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
}

/* High contrast focus indicators */
*:focus {
	outline: 2px solid #1877F2;
	outline-offset: 2px;
}

/* Screen reader only text */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* =Forms and Inputs
-------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
	padding: 12px;
	border: 1px solid #E4E6EB;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	background-color: #F7F8FA;
	color: #1C1E21;
	transition: all 0.2s ease;
	width: 100%;
	box-sizing: border-box;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
	background-color: #FFFFFF;
	border-color: #1877F2;
	outline: 2px solid #1877F2;
	outline-offset: -2px;
}

button,
.button {
	background-color: #1877F2;
	color: #FFFFFF;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease;
	text-decoration: none;
	display: inline-block;
	min-height: 44px;
}

button:hover,
button:focus,
.button:hover,
.button:focus {
	background-color: #166FE5;
	outline: 2px solid #166FE5;
	outline-offset: 2px;
}

/* =Mobile Responsive Design
-------------------------------------------------------------- */
@media (max-width: 768px) {
	.navbar {
		padding: 8px 16px;
		flex-direction: column;
		gap: 8px;
		min-height: auto;
	}
	
	.navbar-search {
		width: 100%;
		justify-content: center;
	}
	
	.search-input {
		width: 100%;
		max-width: 300px;
	}
	
	.btn-primary {
		width: 100px;
	}
	
	.layout {
		flex-direction: column;
		padding: 16px;
		margin-top: 120px; /* Adjust for taller mobile navbar */
	}
	
	.sidebar {
		width: 100%;
		order: 2;
	}
	
	.main-content {
		order: 1;
	}
	
	.post-header {
		padding: 12px;
	}
	
	.post-content {
		padding: 12px;
	}
	
	.post-footer {
		padding: 8px 12px;
	}
	
	.category-item {
		padding: 12px;
	}
}

@media (max-width: 480px) {
	.layout {
		padding: 12px;
	}
	
	.post-title {
		font-size: 16px;
	}
	
	.avatar {
		width: 32px;
		height: 32px;
	}
	
	.post-header {
		gap: 8px;
	}
	
	.btn-primary,
	.btn-load-more {
		width: 100%;
	}
}

/* =Reduced Motion Support
-------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* =bbPress Integration Styles
-------------------------------------------------------------- */

/* Clean base styles for bbPress elements */
#bbpress-forums ul,
#bbpress-forums.bbpress-wrapper ul {
	background: none;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Apply post card styling to bbPress forum lists */
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results {
	background: transparent;
	border: none;
	margin: 0;
	padding: 0;
}

#bbpress-search-form {
    margin-bottom: 5px;
    
}


/* Style individual forum/topic items as post cards */
#bbpress-forums li.bbp-body ul.forum,
#bbpress-forums li.bbp-body ul.topic,
#bbpress-forums li.bbp-body {
	background: #FFFFFF;
	border: none;
	border-radius: 8px;
	margin-bottom: 16px;
	padding: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.2s ease;
	overflow: hidden;
}

#bbpress-forums li.bbp-body ul.forum:hover,
#bbpress-forums li.bbp-body ul.topic:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Header styling */
#bbpress-forums li.bbp-header {
	background: #F8F9FA;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	padding: 12px 16px;
	text-align: left;
	margin-bottom: 16px;
	font-size: 14px;
	color: #65676B;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Footer styling */
#bbpress-forums li.bbp-footer {
	display: none;
	background: #F8F9FA;
	border: none;
	border-radius: 8px;
	padding: 12px 16px;
	margin-top: 16px;
	font-size: 13px;
	color: #65676B;
}

/* Author section styling */
#bbpress-forums div.bbp-forum-author,
#bbpress-forums div.bbp-topic-author,
#bbpress-forums div.bbp-reply-author {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	border-bottom: 1px solid #E4E6EB;
	background: #FFFFFF;
}

/* Avatar styling */
#bbpress-forums div.bbp-forum-author img.avatar,
#bbpress-forums div.bbp-topic-author img.avatar,
#bbpress-forums div.bbp-reply-author img.avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #E4E6EB;
	flex-shrink: 0;
}

/* Author name styling */
#bbpress-forums div.bbp-forum-author .bbp-author-name,
#bbpress-forums div.bbp-topic-author .bbp-author-name,
#bbpress-forums div.bbp-reply-author .bbp-author-name {
	font-size: 15px;
	font-weight: 600;
	color: #1C1E21;
	margin: 0;
	text-decoration: none;
}

#bbpress-forums div.bbp-forum-author .bbp-author-name:hover,
#bbpress-forums div.bbp-topic-author .bbp-author-name:hover,
#bbpress-forums div.bbp-reply-author .bbp-author-name:hover {
	color: #1877F2;
}

/* Content styling */
#bbpress-forums div.bbp-forum-content,
#bbpress-forums div.bbp-topic-content,
#bbpress-forums div.bbp-reply-content {
	display: inline;
	padding: 16px;
	font-size: 1.5em;
	line-height: 1.5;
	color: #1C1E21;
}

/* Topic/Forum titles */
#bbpress-forums div.bbp-forum-title h3,
#bbpress-forums div.bbp-topic-title h3,
#bbpress-forums div.bbp-reply-title h3 {
	font-size: 1.5em;
	font-weight: 800;
	color: #1C1E21;
	margin: 0 0 12px 0;
	text-decoration: none;
}

#bbpress-forums div.bbp-forum-title h3:hover,
#bbpress-forums div.bbp-topic-title h3:hover,
#bbpress-forums div.bbp-reply-title h3:hover {
	color: #1877F2;
}

/* Links styling */
#bbpress-forums a {
	color: #1877F2;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
}

#bbpress-forums a:hover,
#bbpress-forums a:focus {
	color: #166FE5;
	text-decoration: underline;
	outline: 2px solid #1877F2;
	outline-offset: 2px;
}

/* Forum info and stats */
li.bbp-forum-info,
li.bbp-topic-title {
    color: #000000;
    font-size: 1.7em;
	padding: 16px;
	width: 100%;
}

.bbp-search-form {
    margin-top: 0px;
    margin-bottom: 15px;
}

li.bbp-forum-topic-count,
li.bbp-topic-voice-count,
li.bbp-forum-reply-count,
li.bbp-topic-reply-count {
	display: none; /* Hide for cleaner Facebook-style appearance */
}

.bbp-author-role {
    display: none;
}


li.bbp-forum-freshness,
li.bbp-topic-freshness {
	display: inline;
	float: right;
	padding:10px;
	font-size: 13px;
	color: #65676B;
}

span.bbp-topic-freshness-author {
    width: 104px;
    height: 104px;
    font-size: 1.5em;
}

#bbpress-forums 

/* Pagination styling */
.bbp-pagination {
	margin: 24px 0;
	text-align: center;
}

.bbp-pagination-count {
	margin-bottom: 12px;
	font-size: 14px;
	color: #65676B;
}

.bbp-pagination-links {
	display: inline-flex;
	gap: 4px;
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span.current {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 6px;
	background: #E4E6EB;
	color: #65676B;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.2s ease;
	min-width: 36px;
	text-align: center;
}

#bbpress-forums .bbp-pagination-links a:hover,
#bbpress-forums .bbp-pagination-links a:focus {
	background: #1877F2;
	color: #FFFFFF;
}

#bbpress-forums .bbp-pagination-links span.current {
	background: #1877F2;
	color: #FFFFFF;
}

/* Form styling */
#bbpress-forums fieldset.bbp-form {
	background: #FFFFFF;
	border: none;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#bbpress-forums fieldset.bbp-form legend {
	font-size: 20px;
	font-weight: 600;
	color: #1C1E21;
	margin-bottom: 16px;
}

#bbpress-forums fieldset.bbp-form label {
	display: block;
	font-weight: 500;
	color: #1C1E21;
	margin-bottom: 8px;
}

/* Textarea styling for replies/topics */
textarea#bbp_reply_content,
textarea#bbp_topic_content,
textarea#bbp_forum_content {
	min-height: 120px;
	font-family: inherit;
	resize: vertical;
}

/* Notices and alerts */
div.bbp-template-notice {
	background: #E7F3FF;
	border: 1px solid #1877F2;
	color: #1C1E21;
	padding: 12px 16px;
	border-radius: 6px;
	margin: 12px 0;
	font-size: 14px;
}

div.bbp-template-notice.error {
	background: #FFEBEE;
	border-color: #F44336;
	color: #D32F2F;
}

/* Admin links styling */
span.bbp-admin-links {
	float: right;
	margin: 8px 16px 0 0;
}

span.bbp-admin-links a {
	color: #65676B;
	font-size: 13px;
	padding: 4px 8px;
	border-radius: 4px;
	transition: all 0.2s ease;
	text-decoration: none;
}

span.bbp-admin-links a:hover,
span.bbp-admin-links a:focus {
	color: #1877F2;
	background-color: rgba(24, 119, 242, 0.1);
}

/* User profile pages */
#bbpress-forums #bbp-single-user-details {
	width: 100%;
	margin-bottom: 20px;
}

#bbpress-forums #bbp-single-user-details #bbp-user-avatar img.avatar {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border: 3px solid #E4E6EB;
}

#bbpress-forums #bbp-user-navigation {
	background: #FFFFFF;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

#bbpress-forums #bbp-user-navigation a {
	display: block;
	padding: 12px 16px;
	border-bottom: 1px solid #E4E6EB;
	color: #1C1E21;
	text-decoration: none;
}

#bbpress-forums #bbp-user-navigation a:hover,
#bbpress-forums #bbp-user-navigation a:focus {
	background-color: #F0F2F5;
}

#bbpress-forums #bbp-user-navigation li.current a {
	background-color: #1877F2;
	color: #FFFFFF;
}

/* Hide elements for cleaner design */
.bbp-forums-list,
div.bbp-breadcrumb,
#bbpress-forums div.bbp-topic-tags,
span.bbp-author-ip,
#bbpress-forums #subscription-toggle,
#bbpress-forums #favorite-toggle {
	display: none;
}

/* Mobile responsiveness for bbPress elements */
@media (max-width: 768px) {
	#bbpress-forums div.bbp-forum-author,
	#bbpress-forums div.bbp-topic-author,
	#bbpress-forums div.bbp-reply-author {
		padding: 12px;
	}
	
	#bbpress-forums div.bbp-forum-content,
	#bbpress-forums div.bbp-topic-content,
	#bbpress-forums div.bbp-reply-content {
		padding: 12px;
		font-size: 1.5em;
	}
	
	li.bbp-forum-info,
	li.bbp-topic-title {
		padding: 12px;
	}
	
	li.bbp-forum-freshness,
	li.bbp-topic-freshness {
	    display: inline;
	    float: right;
		padding:10px;
	}
	
	#bbpress-forums fieldset.bbp-form {
		padding: 12px;
	}
}

@media (max-width: 480px) {
	#bbpress-forums div.bbp-forum-author img.avatar,
	#bbpress-forums div.bbp-topic-author img.avatar,
	#bbpress-forums div.bbp-reply-author img.avatar {
		width: 32px;
		height: 32px;
	}
	
	#bbpress-forums div.bbp-forum-title h3,
	#bbpress-forums div.bbp-topic-title h3,
	#bbpress-forums div.bbp-reply-title h3 {
		font-size: 1.5em;
	}
	
	.bbp-pagination-links {
		flex-wrap: wrap;
		justify-content: center;
	}
}

#bbpress-forums p.bbp-topic-meta {
    font-size: 70%;
}


#bbpress-forums p.bbp-topic-meta img.avatar {
    max-width: 100px !important;
    max-height: 100px;
}

a.bbp-author-link{
    
} 

#bbpress-forums .bbp-forum-info .bbp-forum-content {
    font-size: 0.8em;
}

div.bbp-template-notice.info {
    display: none;
}