/**
 * bbPress Additional Components CSS
 * Theme Color: #ff30a0
 * Enhanced UI Components for Forums
 */

/* ========================================
   FORUM STATISTICS & WIDGETS
   ======================================== */

/* Forum statistics widget */
.widget_display_stats,
.bbp-stats-widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget_display_stats h3,
.bbp-stats-widget h3 {
    color: #ff30a0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff30a0;
}

.widget_display_stats dl,
.bbp-stats-widget dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.widget_display_stats dt,
.bbp-stats-widget dt {
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
}

.widget_display_stats dd,
.bbp-stats-widget dd {
    color: #ff30a0;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    text-align: right;
}

/* ========================================
   RECENT TOPICS WIDGET
   ======================================== */

.widget_display_topics,
.bbp-topics-widget {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget_display_topics h3,
.bbp-topics-widget h3 {
    color: #ff30a0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ff30a0;
}

.widget_display_topics ul,
.bbp-topics-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget_display_topics li,
.bbp-topics-widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

.widget_display_topics li:hover,
.bbp-topics-widget li:hover {
    background-color: rgba(255, 48, 160, 0.02);
    padding-left: 8px;
    margin-left: -8px;
    border-radius: 4px;
}

.widget_display_topics li:last-child,
.bbp-topics-widget li:last-child {
    border-bottom: none;
}

.widget_display_topics a,
.bbp-topics-widget a {
    color: #374151;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.widget_display_topics a:hover,
.bbp-topics-widget a:hover {
    color: #ff30a0;
}

/* ========================================
   USER PROFILE ENHANCEMENTS
   ======================================== */

/* User profile sections */
#bbpress-forums .bbp-user-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#bbpress-forums .bbp-user-section h2 {
    background: linear-gradient(135deg, #ff30a0 0%, #ff6bc7 100%);
    color: white;
    padding: 12px 16px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

#bbpress-forums .bbp-user-section .bbp-user-section-content {
    padding: 16px;
}

/* User avatar */
#bbpress-forums .bbp-user-avatar img {
    border-radius: 50%;
    border: 3px solid #ff30a0;
    box-shadow: 0 2px 8px rgba(255, 48, 160, 0.2);
}

/* ========================================
   SEARCH FORM ENHANCEMENTS
   ======================================== */

/* Search form */
#bbpress-forums .bbp-search-form {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#bbpress-forums .bbp-search-form label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
}

#bbpress-forums .bbp-search-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

#bbpress-forums .bbp-search-form 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;
}

#bbpress-forums .bbp-search-form button:hover {
    background: #e91e63;
}

/* ========================================
   TOPIC TAGS STYLING
   ======================================== */

/* Topic tags */
#bbpress-forums .bbp-topic-tags {
    margin-top: 12px;
}

#bbpress-forums .bbp-topic-tags a {
    display: inline-block;
    background: rgba(255, 48, 160, 0.1);
    color: #ff30a0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    margin-right: 6px;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

#bbpress-forums .bbp-topic-tags a:hover {
    background: #ff30a0;
    color: white;
}

/* ========================================
   ADMIN LINKS STYLING
   ======================================== */

/* Admin links */
#bbpress-forums .bbp-admin-links {
    float: right;
    font-size: 0.8rem;
}

#bbpress-forums .bbp-admin-links a {
    color: #6b7280;
    text-decoration: none;
    margin-left: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

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

/* ========================================
   NOTICE MESSAGES STYLING
   ======================================== */

/* Template notices */
#bbpress-forums .bbp-template-notice {
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-left: 4px solid;
    font-size: 0.9rem;
}

#bbpress-forums .bbp-template-notice.info {
    background: #eff6ff;
    border-left-color: #3b82f6;
    color: #1e40af;
}

#bbpress-forums .bbp-template-notice.important {
    background: #fef3c7;
    border-left-color: #f59e0b;
    color: #92400e;
}

#bbpress-forums .bbp-template-notice.error {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #dc2626;
}

#bbpress-forums .bbp-template-notice.warning {
    background: #fef2f2;
    border-left-color: #f97316;
    color: #ea580c;
}

/* ========================================
   MOBILE SPECIFIC ENHANCEMENTS
   ======================================== */

@media (max-width: 768px) {
    /* Stack admin links on mobile */
    #bbpress-forums .bbp-admin-links {
        float: none;
        margin-top: 8px;
        text-align: left;
    }
    
    #bbpress-forums .bbp-admin-links a {
        display: inline-block;
        margin: 2px 4px 2px 0;
    }
    
    /* Compact widgets on mobile */
    .widget_display_stats,
    .widget_display_topics,
    .bbp-stats-widget,
    .bbp-topics-widget {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    /* Smaller user avatars on mobile */
    #bbpress-forums .bbp-user-avatar img {
        max-width: 60px;
        height: auto;
    }
}

@media (max-width: 480px) {
    /* Full width search form on mobile */
    #bbpress-forums .bbp-search-form {
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    /* Stack topic tags on mobile */
    #bbpress-forums .bbp-topic-tags a {
        display: block;
        margin-bottom: 6px;
        text-align: center;
    }
    
    /* Compact notices on mobile */
    #bbpress-forums .bbp-template-notice {
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: 4px solid;
    }
}

/* ========================================
   DARK MODE SUPPORT (OPTIONAL)
   ======================================== */

@media (prefers-color-scheme: dark) {
    .widget_display_stats,
    .widget_display_topics,
    .bbp-stats-widget,
    .bbp-topics-widget,
    #bbpress-forums .bbp-user-section,
    #bbpress-forums .bbp-search-form {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .widget_display_stats dt,
    .widget_display_topics a,
    .bbp-stats-widget dt,
    .bbp-topics-widget a {
        color: #d1d5db;
    }
    
    .widget_display_topics a:hover,
    .bbp-topics-widget a:hover {
        color: #ff30a0;
    }
}
