/**
 * bbPress Responsive CSS - Forum & Topic Pages
 * Theme Color: #ff30a0
 * Fully Responsive for All Devices
 */

/* ========================================
   BASE FORUM CONTAINER REDESIGN
   ======================================== */

/* Main bbPress container - FIXED */
#bbpress-forums {
    background: transparent;
    clear: both;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
    overflow-x: auto;
    color: #1f2937 !important;
}

/* Force all text to be visible */
#bbpress-forums,
#bbpress-forums * {
    color: #1f2937 !important;
}

/* Override any theme styles that make text light */
#bbpress-forums p,
#bbpress-forums div,
#bbpress-forums span,
#bbpress-forums a {
    color: #1f2937 !important;
    opacity: 1 !important;
}

/* Links should be theme color */
#bbpress-forums a {
    color: #ff30a0 !important;
}

#bbpress-forums a:hover {
    color: #e91e63 !important;
}

/* COMPLETELY REDESIGNED: Modern Card-Based Topic Layout */
#bbpress-forums ul.bbp-lead-topic,
#bbpress-forums ul.bbp-topics,
#bbpress-forums ul.bbp-forums,
#bbpress-forums ul.bbp-replies,
#bbpress-forums ul.bbp-search-results {
    font-size: 14px;
    overflow: visible;
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    clear: both;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

/* Individual post cards - modern card design */
#bbpress-forums li.bbp-body {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

#bbpress-forums li.bbp-body:hover {
    border-color: #ff30a0;
    box-shadow: 0 4px 16px rgba(255, 48, 160, 0.15);
}

/* Lead topic (first post) special styling */
#bbpress-forums ul.bbp-lead-topic li.bbp-body {
    border: 2px solid #ff30a0;
    box-shadow: 0 4px 20px rgba(255, 48, 160, 0.15);
}

#bbpress-forums ul.bbp-lead-topic li.bbp-body::before {
    content: 'Original Post';
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ff30a0, #ff6bc7);
    color: white;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0 16px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   MODERN FORUM TOPICS LIST DESIGN
   ======================================== */

/* Hide traditional headers and footers for clean look */
#bbpress-forums li.bbp-header,
#bbpress-forums li.bbp-footer {
    display: none !important;
}

/* Modern forum topics container */
#bbpress-forums ul.bbp-topics {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* Individual topic cards */
#bbpress-forums ul.bbp-topics li.bbp-body {
    background: white;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
}

#bbpress-forums ul.bbp-topics li.bbp-body:hover {
    border-color: #ff30a0;
    box-shadow: 0 4px 16px rgba(255, 48, 160, 0.15);
}

/* Forum body items */
#bbpress-forums li.bbp-body {
    clear: both;
}

/* Individual forum items */
#bbpress-forums li.bbp-body ul.forum {
    border-bottom: 1px solid #e5e7eb;
    padding: 16px;
    transition: background-color 0.2s ease;
}

#bbpress-forums li.bbp-body ul.forum:hover {
    background-color: rgba(255, 48, 160, 0.02);
}

#bbpress-forums li.bbp-body ul.forum:last-child {
    border-bottom: none;
}

/* ========================================
   TOPIC LIST RESPONSIVE DESIGN
   ======================================== */

/* MODERN TOPIC CARD LAYOUT */
#bbpress-forums li.bbp-body ul.topic {
    border: none !important;
    padding: 20px !important;
    margin: 0 !important;
    background: white !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    transition: all 0.2s ease !important;
    border-radius: 16px !important;
    position: relative !important;
}

#bbpress-forums li.bbp-body ul.topic:hover {
    background: #f8fafc !important;
}

/* Topic icon/status indicator */
#bbpress-forums .bbp-topic-title::before {
    content: '💬';
    background: linear-gradient(135deg, #ff30a0, #ff6bc7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-right: 16px;
    flex-shrink: 0;
}

/* Modern topic title */
#bbpress-forums .bbp-topic-title {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#bbpress-forums .bbp-topic-title a {
    color: #1f2937 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    transition: color 0.2s ease !important;
    margin-bottom: 4px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#bbpress-forums .bbp-topic-title a:hover {
    color: #ff30a0 !important;
    text-decoration: underline !important;
}

/* Topic meta badges */
#bbpress-forums .bbp-topic-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

#bbpress-forums .bbp-topic-voice-count,
#bbpress-forums .bbp-topic-reply-count,
#bbpress-forums .bbp-topic-freshness {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid #e5e7eb;
}

#bbpress-forums .bbp-topic-reply-count {
    background: #fff;
    color: #ff30a0;
    font-weight: 600;
    border: 1px solid #ff30a0;
}

#bbpress-forums .bbp-topic-voice-count:hover,
#bbpress-forums .bbp-topic-reply-count:hover,
#bbpress-forums .bbp-topic-freshness:hover {
    background: #f8fafc;
    border-color: #ff30a0;
}

/* Topic status indicators */
#bbpress-forums .status-closed .bbp-topic-title::before {
    content: '🔒';
    background: #6b7280;
}

#bbpress-forums .status-sticky .bbp-topic-title::before {
    content: '📌';
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

#bbpress-forums .super-sticky .bbp-topic-title::before {
    content: '⭐';
    background: linear-gradient(135deg, #10b981, #059669);
}

/* Topic author info - NO PROFILE LINKS */
#bbpress-forums .bbp-topic-started-by {
    font-size: 12px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Remove profile links from author section */
#bbpress-forums .bbp-topic-started-by a {
    color: #374151 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    cursor: default !important;
}

#bbpress-forums .bbp-topic-started-by a:hover {
    color: #374151 !important;
    text-decoration: none !important;
}

/* REMOVE PROFILE LINKS FROM TOPIC META */
#bbpress-forums .bbp-topic-meta .bbp-topic-freshness-author a,
#bbpress-forums .bbp-topic-meta .bbp-author-link {
    pointer-events: none !important;
    cursor: default !important;
    text-decoration: none !important;
    color: #374151 !important;
}

#bbpress-forums .bbp-topic-meta .bbp-topic-freshness-author a:hover,
#bbpress-forums .bbp-topic-meta .bbp-author-link:hover {
    color: #374151 !important;
    text-decoration: none !important;
}

/* Style the author name in topic meta */
#bbpress-forums .bbp-topic-meta .bbp-author-name {
    color: #374151 !important;
    font-weight: 500 !important;
    pointer-events: none !important;
    cursor: default !important;
}

/* New topic indicator */
#bbpress-forums .bbp-topic-freshness-time {
    position: relative;
}

#bbpress-forums .bbp-topic-freshness-time::before {
    content: '🆕';
    font-size: 10px;
    margin-right: 4px;
}

/* Forum description/subtitle */
#bbpress-forums .bbp-forum-content {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid #ff30a0;
}

#bbpress-forums .bbp-forum-content p {
    color: #64748b !important;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Forum stats summary */
#bbpress-forums .bbp-forum-info {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

#bbpress-forums .bbp-forum-topic-count,
#bbpress-forums .bbp-forum-reply-count {
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    min-width: 120px;
}

#bbpress-forums .bbp-forum-topic-count strong,
#bbpress-forums .bbp-forum-reply-count strong {
    display: block;
    font-size: 24px;
    color: #ff30a0;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Empty state for no topics */
#bbpress-forums .bbp-no-topics {
    background: white;
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    border: 2px dashed #e5e7eb;
    color: #6b7280;
}

#bbpress-forums .bbp-no-topics::before {
    content: '💭';
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ========================================
   SINGLE TOPIC PAGE DESIGN
   ======================================== */

/* MODERN CARD HEADER - No traditional headers */
#bbpress-forums li.bbp-header {
    display: none !important;
}

#bbpress-forums li.bbp-footer {
    display: none !important;
}

/* Modern post meta bar */
#bbpress-forums .bbp-topic-header,
#bbpress-forums .bbp-reply-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #64748b;
    padding: 16px 20px;
    border: none;
    font-weight: 500;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px 16px 0 0;
    position: relative;
}

/* Post number badge */
#bbpress-forums .bbp-topic-header::before,
#bbpress-forums .bbp-reply-header::before {
    content: '#' attr(data-post-number);
    background: #ff30a0;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    margin-right: 12px;
}

/* Date/time styling */
#bbpress-forums .bbp-topic-header .bbp-topic-permalink,
#bbpress-forums .bbp-reply-header .bbp-reply-permalink {
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.7);
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

#bbpress-forums .bbp-topic-header .bbp-topic-permalink:hover,
#bbpress-forums .bbp-reply-header .bbp-reply-permalink:hover {
    background: #ff30a0;
    color: white !important;
    transform: translateY(-1px);
}

/* Topic content - FIXED TEXT VISIBILITY */
#bbpress-forums div.bbp-topic-content,
#bbpress-forums div.bbp-reply-content {
    padding: 16px;
    background: white;
    border-left: 4px solid #ff30a0;
    margin-bottom: 2px;
    line-height: 1.6;
    color: #1f2937 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Fix all text visibility in topic content */
#bbpress-forums div.bbp-topic-content p,
#bbpress-forums div.bbp-reply-content p,
#bbpress-forums div.bbp-topic-content div,
#bbpress-forums div.bbp-reply-content div {
    color: #1f2937 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px;
}

/* Fix topic/reply text content */
#bbpress-forums .bbp-topic-content,
#bbpress-forums .bbp-reply-content {
    color: #1f2937 !important;
}

/* Fix any inherited light text */
#bbpress-forums .bbp-topic-content *,
#bbpress-forums .bbp-reply-content * {
    color: inherit !important;
}

/* Reply items - IMPROVED DESIGN */
#bbpress-forums div.reply {
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: white;
}

/* FIXED: Topic and reply layout */
#bbpress-forums ul.bbp-lead-topic li.bbp-body,
#bbpress-forums ul.bbp-replies li.bbp-body {
    background: white !important;
    border-bottom: none !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
}

#bbpress-forums ul.bbp-lead-topic li.bbp-body:last-child,
#bbpress-forums ul.bbp-replies li.bbp-body:last-child {
    border-bottom: none !important;
}

/* Ensure proper stacking of author and content */
#bbpress-forums li.bbp-body > * {
    display: block !important;
    width: 100% !important;
}

/* FIXED: MODERN CARD-BASED AUTHOR SECTION */
#bbpress-forums .bbp-reply-author,
#bbpress-forums .bbp-topic-author {
    float: none !important;
    width: 100% !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%) !important;
    border: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    text-align: left !important;
    font-size: 13px !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    position: relative !important;
    min-height: 80px !important;
    box-sizing: border-box !important;
}

/* Modern avatar with status indicator */
#bbpress-forums .bbp-reply-author .avatar,
#bbpress-forums .bbp-topic-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 2px solid rgba(255, 48, 160, 0.1);
    margin-bottom: 0;
    transition: all 0.3s ease;
    position: relative;
}

#bbpress-forums .bbp-reply-author:hover .avatar,
#bbpress-forums .bbp-topic-author:hover .avatar {
    border-color: #ff30a0;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 48, 160, 0.2);
}

/* FIXED: Author info container */
#bbpress-forums .bbp-author-details {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
}

/* Fix for any hidden author content */
#bbpress-forums .bbp-reply-author *,
#bbpress-forums .bbp-topic-author * {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Specific fix for author links and text */
#bbpress-forums .bbp-reply-author span,
#bbpress-forums .bbp-topic-author span,
#bbpress-forums .bbp-reply-author div,
#bbpress-forums .bbp-topic-author div {
    color: #1f2937 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* MODERN CARD CONTENT AREA */
#bbpress-forums .bbp-reply-content,
#bbpress-forums .bbp-topic-content {
    margin-left: 0;
    padding: 24px 20px !important;
    background: white !important;
    color: #1f2937 !important;
    min-height: 80px;
    border: none;
    position: relative;
    border-radius: 0 0 16px 16px;
    font-size: 14px;
    line-height: 1.7;
}

/* Content typography */
#bbpress-forums .bbp-reply-content p,
#bbpress-forums .bbp-topic-content p {
    margin-bottom: 16px;
    color: #374151 !important;
    font-size: 14px;
    line-height: 1.7;
}

#bbpress-forums .bbp-reply-content p:last-child,
#bbpress-forums .bbp-topic-content p:last-child {
    margin-bottom: 0;
}

/* Quote styling */
#bbpress-forums .bbp-reply-content blockquote,
#bbpress-forums .bbp-topic-content blockquote {
    background: #f8fafc;
    border-left: 4px solid #ff30a0;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 8px;
    font-style: italic;
    color: #64748b !important;
}

/* FIXED: Modern author name styling - NO PROFILE LINKS */
#bbpress-forums .bbp-reply-author .bbp-author-name,
#bbpress-forums .bbp-topic-author .bbp-author-name,
#bbpress-forums .bbp-reply-author a,
#bbpress-forums .bbp-topic-author a {
    font-weight: 600 !important;
    color: #1f2937 !important;
    font-size: 15px !important;
    margin-bottom: 2px !important;
    display: block !important;
    text-decoration: none !important;
    line-height: 1.4 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    cursor: default !important;
}

/* Remove hover effects from author names */
#bbpress-forums .bbp-reply-author .bbp-author-name:hover,
#bbpress-forums .bbp-topic-author .bbp-author-name:hover,
#bbpress-forums .bbp-reply-author a:hover,
#bbpress-forums .bbp-topic-author a:hover {
    color: #1f2937 !important;
    text-decoration: none !important;
}

/* Modern author role styling */
#bbpress-forums .bbp-reply-author .bbp-author-role,
#bbpress-forums .bbp-topic-author .bbp-author-role {
    color: #64748b !important;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 48, 160, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    text-transform: capitalize;
}

/* Online status indicator */
#bbpress-forums .bbp-reply-author::after,
#bbpress-forums .bbp-topic-author::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
}

/* Add post meta information styling */
#bbpress-forums .bbp-reply-header .bbp-meta,
#bbpress-forums .bbp-topic-header .bbp-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #6b7280;
}

/* Post number styling */
#bbpress-forums .bbp-reply-header .bbp-reply-post-date,
#bbpress-forums .bbp-topic-header .bbp-topic-post-date {
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: #64748b;
    text-decoration: none;
}

#bbpress-forums .bbp-reply-header .bbp-reply-post-date:hover,
#bbpress-forums .bbp-topic-header .bbp-topic-post-date:hover {
    background: #ff30a0;
    color: white;
}

/* Admin links styling */
#bbpress-forums .bbp-admin-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

#bbpress-forums .bbp-admin-links a {
    font-size: 11px;
    padding: 4px 8px;
    background: #f8fafc;
    border-radius: 4px;
    text-decoration: none;
    color: #64748b !important;
    transition: all 0.2s ease;
}

#bbpress-forums .bbp-admin-links a:hover {
    background: #ff30a0;
    color: white !important;
}

/* ========================================
   MODERN SEARCH FORM STYLING [bbp-search]
   ======================================== */

/* ULTRA SIMPLE SEARCH CONTAINER */
#bbpress-forums .bbp-search-form {
    margin-bottom: 20px;
    max-width: 400px;
}

/* No header needed */
#bbpress-forums .bbp-search-form::before {
    display: none;
}

/* ULTRA SIMPLE SEARCH INPUT */
#bbpress-forums .bbp-search-form input[type="text"],
#bbpress-forums .bbp-search-form input[type="search"] {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    color: #374151 !important;
    background: white !important;
    transition: border-color 0.2s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    height: 40px !important;
    font-family: inherit !important;
}

#bbpress-forums .bbp-search-form input[type="text"]:focus,
#bbpress-forums .bbp-search-form input[type="search"]:focus {
    border-color: #ff30a0 !important;
    outline: none !important;
}

#bbpress-forums .bbp-search-form input[type="text"]:hover,
#bbpress-forums .bbp-search-form input[type="search"]:hover {
    border-color: #9ca3af !important;
}

/* Simple placeholder */
#bbpress-forums .bbp-search-form input::placeholder {
    color: #9ca3af !important;
}

/* SIMPLE SEARCH BUTTON ON RIGHT */
#bbpress-forums .bbp-search-form input[type="submit"],
#bbpress-forums .bbp-search-form button[type="submit"] {
    background: #ff30a0 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    height: 40px !important;
    min-width: 80px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    order: 1 !important;
}

#bbpress-forums .bbp-search-form input[type="submit"]:hover,
#bbpress-forums .bbp-search-form button[type="submit"]:hover {
    background: #e91e63 !important;
}

/* Force override any theme button styles */
#bbpress-forums .bbp-search-form input[type="submit"] {
    background-color: #ff30a0 !important;
    background-image: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    border: none !important;
    outline: none !important;
}

#bbpress-forums .bbp-search-form input[type="submit"]:focus {
    background-color: #ff30a0 !important;
    box-shadow: 0 0 0 2px rgba(255, 48, 160, 0.2) !important;
}

/* SIMPLE SEARCH FORM LAYOUT */
#bbpress-forums .bbp-search-form fieldset {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

#bbpress-forums .bbp-search-form input[type="text"],
#bbpress-forums .bbp-search-form input[type="search"] {
    flex: 1 !important;
}

#bbpress-forums .bbp-search-form input[type="submit"],
#bbpress-forums .bbp-search-form button[type="submit"] {
    flex-shrink: 0 !important;
    margin-left: 0 !important;
}

/* Search form legend */
#bbpress-forums .bbp-search-form legend {
    display: none !important;
}

/* Search form labels */
#bbpress-forums .bbp-search-form label {
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Search results container */
#bbpress-forums .bbp-search-results {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Search result items */
#bbpress-forums .bbp-search-results li.bbp-body {
    background: white;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

#bbpress-forums .bbp-search-results li.bbp-body:hover {
    border-color: #ff30a0;
    box-shadow: 0 4px 16px rgba(255, 48, 160, 0.15);
}

/* Search result content */
#bbpress-forums .bbp-search-results .bbp-search-title {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

#bbpress-forums .bbp-search-results .bbp-search-title::before {
    content: '📄';
    background: linear-gradient(135deg, #ff30a0, #ff6bc7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

#bbpress-forums .bbp-search-results .bbp-search-title a {
    color: #1f2937 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    flex: 1;
}

#bbpress-forums .bbp-search-results .bbp-search-title a:hover {
    color: #ff30a0 !important;
    text-decoration: underline !important;
}

/* Search result meta */
#bbpress-forums .bbp-search-results .bbp-search-content {
    padding: 0 20px 20px 76px;
    color: #6b7280 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

/* No search results */
#bbpress-forums .bbp-no-search {
    background: white;
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    border: 2px dashed #e5e7eb;
    color: #6b7280;
    margin-top: 24px;
}

#bbpress-forums .bbp-no-search::before {
    content: '🔍';
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ========================================
   FORM STYLING (NEW TOPIC/REPLY)
   ======================================== */

/* Form containers */
#bbpress-forums fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#bbpress-forums fieldset legend {
    background: #ff30a0;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Form inputs */
#bbpress-forums input[type="text"],
#bbpress-forums input[type="email"],
#bbpress-forums input[type="url"],
#bbpress-forums textarea,
#bbpress-forums select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

#bbpress-forums input[type="text"]:focus,
#bbpress-forums input[type="email"]:focus,
#bbpress-forums input[type="url"]:focus,
#bbpress-forums textarea:focus,
#bbpress-forums select:focus {
    border-color: #ff30a0;
    box-shadow: 0 0 0 3px rgba(255, 48, 160, 0.1);
    outline: none;
}

/* Submit buttons */
#bbpress-forums input[type="submit"],
#bbpress-forums button[type="submit"],
#bbpress-forums .button {
    background: #ff30a0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-block;
    text-decoration: none;
}

#bbpress-forums input[type="submit"]:hover,
#bbpress-forums button[type="submit"]:hover,
#bbpress-forums .button:hover {
    background: #e91e63;
    transform: translateY(-1px);
}

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

/* Pagination container */
#bbpress-forums .bbp-pagination {
    clear: both;
    float: none;
    margin: 20px 0;
    text-align: center;
}

#bbpress-forums .bbp-pagination-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

#bbpress-forums .bbp-pagination-links a,
#bbpress-forums .bbp-pagination-links span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-decoration: none;
    color: #374151;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

#bbpress-forums .bbp-pagination-links a:hover {
    background: #ff30a0;
    color: white;
    border-color: #ff30a0;
}

#bbpress-forums .bbp-pagination-links span.current {
    background: #ff30a0;
    color: white;
    border-color: #ff30a0;
}

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

#bbpress-forums .bbp-breadcrumb {
    background: #f9fafb;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    border: 1px solid #e5e7eb;
}

#bbpress-forums .bbp-breadcrumb a {
    color: #ff30a0;
    text-decoration: none;
}

#bbpress-forums .bbp-breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Mobile devices (up to 768px) */
@media (max-width: 768px) {
    #bbpress-forums {
        font-size: 13px;
    }
    
    /* MOBILE FORUM TOPICS LAYOUT */
    #bbpress-forums ul.bbp-topics li.bbp-body {
        margin-bottom: 12px;
        border-radius: 12px;
    }
    
    #bbpress-forums li.bbp-body ul.topic {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 16px !important;
        gap: 12px !important;
    }
    
    /* Mobile topic title with icon */
    #bbpress-forums .bbp-topic-title {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }
    
    #bbpress-forums .bbp-topic-title::before {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        margin-right: 0 !important;
    }
    
    #bbpress-forums .bbp-topic-title a {
        font-size: 15px !important;
    }
    
    /* Mobile meta badges */
    #bbpress-forums .bbp-topic-meta {
        width: 100% !important;
        margin-left: 0 !important;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    
    #bbpress-forums .bbp-topic-voice-count,
    #bbpress-forums .bbp-topic-reply-count,
    #bbpress-forums .bbp-topic-freshness {
        padding: 4px 8px !important;
        font-size: 11px !important;
        border-radius: 16px !important;
    }
    
    /* MOBILE SIMPLE SEARCH */
    #bbpress-forums .bbp-search-form {
        max-width: 100% !important;
    }
    
    #bbpress-forums .bbp-search-form fieldset {
        flex-direction: row !important;
        gap: 8px !important;
        align-items: center !important;
    }
    
    #bbpress-forums .bbp-search-form input[type="text"],
    #bbpress-forums .bbp-search-form input[type="search"] {
        font-size: 16px !important;
        height: 44px !important;
        padding: 12px 16px !important;
    }
    
    #bbpress-forums .bbp-search-form input[type="submit"],
    #bbpress-forums .bbp-search-form button[type="submit"] {
        height: 44px !important;
        min-width: 80px !important;
        padding: 8px 16px !important;
        order: 1 !important;
    }
    
    /* Mobile search results */
    #bbpress-forums .bbp-search-results li.bbp-body {
        margin-bottom: 12px !important;
        border-radius: 10px !important;
    }
    
    #bbpress-forums .bbp-search-results .bbp-search-title {
        padding: 16px !important;
        gap: 12px !important;
    }
    
    #bbpress-forums .bbp-search-results .bbp-search-title::before {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
    }
    
    #bbpress-forums .bbp-search-results .bbp-search-title a {
        font-size: 15px !important;
    }
    
    #bbpress-forums .bbp-search-results .bbp-search-content {
        padding: 0 16px 16px 60px !important;
        font-size: 13px !important;
    }
    
    /* MOBILE CARD DESIGN */
    #bbpress-forums li.bbp-body {
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    #bbpress-forums .bbp-reply-author,
    #bbpress-forums .bbp-topic-author {
        padding: 16px;
        gap: 12px;
        background: linear-gradient(135deg, #fafbfc 0%, #f8fafc 100%);
    }
    
    #bbpress-forums .bbp-reply-author .avatar,
    #bbpress-forums .bbp-topic-author .avatar {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    #bbpress-forums .bbp-reply-content,
    #bbpress-forums .bbp-topic-content {
        padding: 16px !important;
        border-radius: 0 0 12px 12px;
    }
    
    #bbpress-forums .bbp-topic-header,
    #bbpress-forums .bbp-reply-header {
        padding: 12px 16px;
        border-radius: 12px 12px 0 0;
    }
    
    #bbpress-forums .bbp-reply-author::after,
    #bbpress-forums .bbp-topic-author::after {
        top: 16px;
        right: 16px;
        width: 6px;
        height: 6px;
    }
    
    /* Reduce padding on forms */
    #bbpress-forums fieldset {
        padding: 16px;
    }
    
    /* Stack pagination on smaller screens */
    #bbpress-forums .bbp-pagination-links {
        gap: 2px;
    }
    
    #bbpress-forums .bbp-pagination-links a,
    #bbpress-forums .bbp-pagination-links span {
        padding: 6px 10px;
        min-width: 36px;
        font-size: 0.8rem;
    }
}

/* Mobile devices (480px and below) */
@media (max-width: 480px) {
    #bbpress-forums {
        font-size: 12px;
        margin-left: -10px;
        margin-right: -10px;
    }
    
    /* Full width on mobile */
    #bbpress-forums ul.bbp-lead-topic,
    #bbpress-forums ul.bbp-topics,
    #bbpress-forums ul.bbp-forums,
    #bbpress-forums ul.bbp-replies,
    #bbpress-forums ul.bbp-search-results {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    /* Compact headers */
    #bbpress-forums li.bbp-header {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    /* Compact topic items */
    #bbpress-forums li.bbp-body ul.topic,
    #bbpress-forums li.bbp-body ul.forum {
        padding: 10px 12px;
    }
    
    /* Smaller topic titles */
    #bbpress-forums .bbp-topic-title a {
        font-size: 0.9rem;
    }
    
    /* Compact forms */
    #bbpress-forums fieldset {
        padding: 12px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    /* Smaller buttons */
    #bbpress-forums input[type="submit"],
    #bbpress-forums button[type="submit"],
    #bbpress-forums .button {
        padding: 8px 16px;
        font-size: 13px;
        width: 100%;
        margin-top: 10px;
    }
    
    /* Compact breadcrumbs */
    #bbpress-forums .bbp-breadcrumb {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin-left: 10px;
        margin-right: 10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    /* Hide some meta on very small screens */
    #bbpress-forums .bbp-topic-voice-count {
        display: none;
    }
}

/* Very small devices (320px and below) */
@media (max-width: 320px) {
    #bbpress-forums {
        font-size: 11px;
    }
    
    /* Even more compact */
    #bbpress-forums li.bbp-header {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    #bbpress-forums li.bbp-body ul.topic,
    #bbpress-forums li.bbp-body ul.forum {
        padding: 8px 10px;
    }
    
    #bbpress-forums .bbp-topic-title a {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* Hide reply count on very small screens */
    #bbpress-forums .bbp-topic-reply-count {
        display: none;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus states */
#bbpress-forums a:focus,
#bbpress-forums input:focus,
#bbpress-forums textarea:focus,
#bbpress-forums select:focus,
#bbpress-forums button:focus {
    outline: 3px solid rgba(255, 48, 160, 0.5);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #bbpress-forums li.bbp-header {
        background: #ff30a0;
        border: 2px solid #000;
    }
    
    #bbpress-forums ul.bbp-lead-topic,
    #bbpress-forums ul.bbp-topics,
    #bbpress-forums ul.bbp-forums,
    #bbpress-forums ul.bbp-replies {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #bbpress-forums * {
        animation: none !important;
        transition: none !important;
    }
}
