/**
 * TinnyTiger BuddyPress Nouveau 兼容性样式
 * 
 * 针对 BuddyPress 14.4.0 Nouveau 模板包的自定义样式
 * @version 1.4.0
 */

/* ==========================================================================
   基础覆盖 - 使用 .buddypress-wrap (Nouveau)
   ========================================================================== */

/* 隐藏默认导航 */
.buddypress-wrap .bp-navs.main-navs,
.buddypress-wrap nav.bp-navs,
.buddypress-wrap .bp-subnavs {
    display: none !important;
}

/* 隐藏默认头部 */
.buddypress-wrap #item-header,
.buddypress-wrap header.bp-profile-header {
    display: none !important;
}

/* 覆盖链接颜色 */
.buddypress-wrap a,
.buddypress-wrap .activity-meta a,
.buddypress-wrap .activity-comments a {
    color: #0095f6 !important;
    text-decoration: none !important;
}

.buddypress-wrap a:hover {
    color: #1877f2 !important;
}

/* ==========================================================================
   成员列表
   ========================================================================== */

.buddypress-wrap .members-list,
.buddypress-wrap ul.members-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 16px !important;
    padding: 16px !important;
    list-style: none !important;
}

.buddypress-wrap .members-list li {
    background: #121212 !important;
    border: 1px solid #262626 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    text-align: center !important;
}

.buddypress-wrap .members-list .item-avatar img {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    margin-bottom: 12px !important;
}

.buddypress-wrap .members-list .item-title a {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 16px !important;
}

/* ==========================================================================
   活动流
   ========================================================================== */

.buddypress-wrap .activity-list {
    background: transparent !important;
}

.buddypress-wrap .activity-item {
    background: #121212 !important;
    border: 1px solid #262626 !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    padding: 16px !important;
}

.buddypress-wrap .activity-avatar img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
}

.buddypress-wrap .activity-content {
    margin-left: 56px !important;
}

.buddypress-wrap .activity-header {
    color: #a8a8a8 !important;
    font-size: 14px !important;
    margin-bottom: 8px !important;
}

.buddypress-wrap .activity-header a {
    color: #fff !important;
    font-weight: 600 !important;
}

.buddypress-wrap .activity-inner {
    color: #fff !important;
    line-height: 1.5 !important;
    margin: 12px 0 !important;
}

/* ==========================================================================
   按钮样式
   ========================================================================== */

.buddypress-wrap .button,
.buddypress-wrap button,
.buddypress-wrap input[type="submit"] {
    background: #0095f6 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: opacity 0.2s !important;
}

.buddypress-wrap .button:hover,
.buddypress-wrap button:hover {
    opacity: 0.9 !important;
}

.buddypress-wrap .button.friendship-button {
    background: #0095f6 !important;
}

.buddypress-wrap .button.following-button {
    background: #262626 !important;
    border: 1px solid #363636 !important;
}

/* ==========================================================================
   表单样式
   ========================================================================== */

.buddypress-wrap input[type="text"],
.buddypress-wrap input[type="email"],
.buddypress-wrap input[type="password"],
.buddypress-wrap textarea,
.buddypress-wrap select {
    background: #121212 !important;
    border: 1px solid #262626 !important;
    border-radius: 8px !important;
    color: #fff !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    width: 100% !important;
}

.buddypress-wrap input:focus,
.buddypress-wrap textarea:focus {
    outline: none !important;
    border-color: #0095f6 !important;
}

.buddypress-wrap label {
    color: #a8a8a8 !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* ==========================================================================
   分页
   ========================================================================== */

.buddypress-wrap .pagination {
    margin-top: 24px !important;
    text-align: center !important;
}

.buddypress-wrap .pagination a,
.buddypress-wrap .pagination span {
    display: inline-block !important;
    padding: 8px 16px !important;
    margin: 0 4px !important;
    background: #121212 !important;
    border: 1px solid #262626 !important;
    border-radius: 8px !important;
    color: #fff !important;
}

.buddypress-wrap .pagination .current {
    background: #0095f6 !important;
    border-color: #0095f6 !important;
}

/* ==========================================================================
   响应式适配
   ========================================================================== */

@media (max-width: 768px) {
    .buddypress-wrap .members-list {
        grid-template-columns: 1fr !important;
    }
    
    .buddypress-wrap .activity-content {
        margin-left: 0 !important;
        margin-top: 12px !important;
    }
    
    .buddypress-wrap .activity-avatar {
        float: none !important;
    }
}

/* ==========================================================================
   rtMedia 在 BuddyPress 中的样式
   ========================================================================== */

.buddypress-wrap .rtmedia-container {
    max-width: 100% !important;
    margin: 0 auto !important;
}

.buddypress-wrap .rtmedia-gallery-item {
    box-sizing: border-box !important;
}

.buddypress-wrap .rtmedia-single-container {
    background: #121212 !important;
    border: 1px solid #262626 !important;
    border-radius: 12px !important;
    padding: 20px !important;
}

.buddypress-wrap .rtmedia-media-info {
    color: #a8a8a8 !important;
}

.buddypress-wrap .rtmedia-actions a {
    color: #0095f6 !important;
}

/* ==========================================================================
   TinnyTiger 用户资料页 - 好友/群组/资料样式
   与现有风格保持一致
   ========================================================================== */

/* 资料页整体布局 */
.tt-profile-wrapper {
    max-width: 935px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 头部信息区 */
.tt-profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 24px;
    background: #121212;
    border: 1px solid #262626;
    border-radius: 12px;
    margin-bottom: 24px;
}

.tt-profile-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid #262626;
    object-fit: cover;
}

.tt-profile-info {
    flex: 1;
}

.tt-profile-name {
    margin: 0 0 12px 0;
    font-size: 28px;
    color: #fff;
    font-weight: 600;
}

.tt-profile-stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.tt-profile-stats span {
    color: #a8a8a8;
    font-size: 16px;
}

.tt-profile-stats strong {
    color: #fff;
    font-weight: 600;
    margin-right: 4px;
}

/* 导航标签 */
.tt-profile-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #121212;
    border: 1px solid #262626;
    border-radius: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.tt-tab-item {
    padding: 12px 24px;
    color: #a8a8a8;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tt-tab-item:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.tt-tab-item.active {
    color: #fff;
    background: #0095f6;
}

/* 内容区域 */
.tt-profile-content {
    background: #121212;
    border: 1px solid #262626;
    border-radius: 12px;
    padding: 24px;
    min-height: 400px;
}

.tt-tab-pane {
    color: #fff;
}

.tt-tab-pane h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #fff;
}

/* 好友列表 */
.tt-friends-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.tt-friend-item {
    background: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tt-friend-item:hover {
    transform: translateY(-2px);
    border-color: #363636;
}

.tt-friend-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    color: #fff;
    text-decoration: none;
}

.tt-friend-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #262626;
}

.tt-friend-item span {
    font-size: 16px;
    font-weight: 600;
}

/* 群组列表 */
.tt-groups-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.tt-group-item {
    background: #1a1a1a;
    border: 1px solid #262626;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.tt-group-item:hover {
    transform: translateY(-2px);
    border-color: #363636;
}

.tt-group-item a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    color: #fff;
    text-decoration: none;
}

.tt-group-item img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid #262626;
}

.tt-group-item span {
    font-size: 16px;
    font-weight: 600;
}

/* 空状态 */
.tt-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a8a8a8;
}

.tt-empty-state p {
    font-size: 18px;
    margin: 0 0 20px 0;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .tt-profile-wrapper {
        padding: 16px;
    }
    
    .tt-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .tt-profile-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .tt-profile-name {
        font-size: 22px;
    }
    
    .tt-profile-stats {
        justify-content: center;
        gap: 24px;
    }
    
    .tt-profile-tabs {
        padding: 2px;
    }
    
    .tt-tab-item {
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .tt-friends-list,
    .tt-groups-list {
        grid-template-columns: 1fr;
    }
}
