/* Trending Tags Styles */

.right-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: var(--color-panel, #ffffff);
    border: 1px solid var(--color-border, #e1e8ed);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.trending, .recommended {
    padding: 20px;
    border-bottom: 1px solid var(--color-border, #e1e8ed);
}

.trending:last-child, .recommended:last-child {
    border-bottom: none;
}

.trending h3, .recommended h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text, #0f1419);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trending h3::before {
    content: "🔥";
    font-size: 16px;
}

.recommended h3::before {
    content: "👥";
    font-size: 16px;
}

/* Trending Tags Styles */
.trending-tags-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.trending-tag-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.trending-tag-item:hover {
    background: var(--color-hover, #f7f9fa);
    border-color: var(--color-accent, #1d9bf0);
    transform: translateX(2px);
}

.trending-rank {
    font-weight: 600;
    color: var(--color-accent, #1d9bf0);
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.trending-name {
    flex: 1;
    font-weight: 500;
    color: var(--color-text, #0f1419);
    font-size: 14px;
}

.trending-count {
    font-size: 12px;
    color: var(--color-text-muted, #657786);
    background: rgba(29, 155, 240, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.trending-category {
    font-size: 10px;
    color: var(--color-text-muted, #657786);
    background: var(--color-secondary, #e1e8ed);
    padding: 2px 5px;
    border-radius: 8px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.trending-updated {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border, #e1e8ed);
    text-align: center;
}

.trending-updated small {
    color: var(--color-text-muted, #657786);
    font-size: 11px;
}

/* Empty State */
.trending-empty {
    text-align: center;
    padding: 20px;
    color: var(--color-text-muted, #657786);
}

.trending-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.trending-empty p {
    margin: 8px 0 4px 0;
    font-weight: 500;
}

.trending-empty small {
    font-size: 12px;
    opacity: 0.8;
}

/* Recommended Users Styles */
.recommended-users {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recommended-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.recommended-user-item:hover {
    background: var(--color-hover, #f7f9fa);
}

.recommended-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-border, #e1e8ed);
}

.recommended-avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-secondary, #e1e8ed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted, #657786);
    font-size: 18px;
}

.recommended-user-info {
    flex: 1;
    min-width: 0;
}

.recommended-username {
    font-weight: 600;
    color: var(--color-text, #0f1419);
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommended-bio {
    font-size: 12px;
    color: var(--color-text-muted, #657786);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommended-follow-btn {
    padding: 4px 12px;
    border: 1px solid var(--color-accent, #1d9bf0);
    background: transparent;
    color: var(--color-accent, #1d9bf0);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recommended-follow-btn:hover {
    background: var(--color-accent, #1d9bf0);
    color: white;
}

.recommended-follow-btn.following {
    background: var(--color-accent, #1d9bf0);
    color: white;
}

.recommended-follow-btn.following:hover {
    background: #dc3545;
    border-color: #dc3545;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .right-panel {
        display: none;
    }
}

@media (min-width: 1401px) {
    .main-content {
        margin-right: 320px;
    }
}

/* Loading Animation */
.trending-loading {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.trending-loading::after {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border, #e1e8ed);
    border-top: 2px solid var(--color-accent, #1d9bf0);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .right-panel {
        background: #1a1a1a;
        border-color: #333;
        color: #e1e8ed;
    }
    
    .trending h3, .recommended h3 {
        color: #e1e8ed;
    }
    
    .trending-name {
        color: #e1e8ed;
    }
    
    .trending-tag-item:hover {
        background: #2a2a2a;
    }
    
    .recommended-user-item:hover {
        background: #2a2a2a;
    }
    
    .recommended-username {
        color: #e1e8ed;
    }
}
